Represents ASCII string. More...
#include <B2BITS_String.h>
Inheritance diagram for Engine::BasicString< CharType >:
Collaboration diagram for Engine::BasicString< CharType >:Public Types | |
| typedef BasicString< value_type > | MyT |
| typedef CharType | value_type |
| Provides access to the template parameter. | |
Public Member Functions | |
| BasicString () | |
| Default constructor. | |
| BasicString (const value_type *aData, size_t aSize) | |
| Constructor Constructs instance from address to memory and size. | |
| BasicString (value_type const *aData) | |
| Constructor Constructs instance from ANSI string. | |
| BasicString (std::basic_string< CharType > const &str) | |
| Constructor Constructs instance from std::basic_string. | |
| int | compareTo (BasicString rv) const |
| bool | equals (BasicString rv) const |
| std::basic_string< value_type > | toStdString () const |
| Converts AsciiString to std::string. | |
| std::basic_string< value_type > | toString () const |
| Converts AsciiString to std::string This method creates copy of the stored buffer and returns it as std::string. | |
Static Public Member Functions | |
| template<int N> | |
| static MyT | fromStr (value_type const (&data)[N]) |
| Constructor Creates instance from array of char. | |
Represents ASCII string.
Definition at line 134 of file B2BITS_String.h.
| typedef BasicString<value_type> Engine::BasicString< CharType >::MyT |
Definition at line 139 of file B2BITS_String.h.
| typedef CharType Engine::BasicString< CharType >::value_type |
Provides access to the template parameter.
Reimplemented from Engine::MemBlock< CharType >.
Definition at line 138 of file B2BITS_String.h.
| Engine::BasicString< CharType >::BasicString | ( | ) | [inline] |
Default constructor.
Definition at line 142 of file B2BITS_String.h.
| Engine::BasicString< CharType >::BasicString | ( | const value_type * | aData, |
| size_t | aSize | ||
| ) | [inline] |
Constructor Constructs instance from address to memory and size.
| data | address to the block |
| size | size of the block |
Definition at line 149 of file B2BITS_String.h.
| Engine::BasicString< CharType >::BasicString | ( | std::basic_string< CharType > const & | str ) | [inline] |
Constructor Constructs instance from std::basic_string.
| str | Source string |
Definition at line 157 of file B2BITS_String.h.
| Engine::BasicString< CharType >::BasicString | ( | value_type const * | aData ) | [inline] |
Constructor Constructs instance from ANSI string.
| data | address to the ASCII string |
Definition at line 165 of file B2BITS_String.h.
| int Engine::BasicString< CharType >::compareTo | ( | BasicString< CharType > | rv ) | const [inline] |
Definition at line 185 of file B2BITS_String.h.
References Engine::MemBlock< T >::data(), Engine::MemBlock< CharType >::data(), Engine::MemBlock< T >::size(), and Engine::MemBlock< CharType >::size().
Referenced by Engine::BasicString< CharType >::equals(), Engine::operator!=(), Engine::operator<(), Engine::operator==(), and Engine::operator>().
| bool Engine::BasicString< CharType >::equals | ( | BasicString< CharType > | rv ) | const [inline] |
Definition at line 211 of file B2BITS_String.h.
References Engine::BasicString< CharType >::compareTo().
| static MyT Engine::BasicString< CharType >::fromStr | ( | value_type const (&) | data[N] ) | [inline, static] |
Constructor Creates instance from array of char.
Creates instance from array of char
Definition at line 180 of file B2BITS_String.h.
References Engine::MemBlock< CharType >::data().
| std::basic_string<value_type> Engine::BasicString< CharType >::toStdString | ( | ) | const [inline] |
Converts AsciiString to std::string.
This method creates copy of the stored buffer and returns it as std::string.
Definition at line 218 of file B2BITS_String.h.
References Engine::MemBlock< CharType >::data(), and Engine::MemBlock< CharType >::size().
| std::basic_string<value_type> Engine::BasicString< CharType >::toString | ( | ) | const [inline] |
Converts AsciiString to std::string This method creates copy of the stored buffer and returns it as std::string.
Use AsciiString::toStdString instead
Definition at line 223 of file B2BITS_String.h.
References Engine::MemBlock< CharType >::data(), and Engine::MemBlock< CharType >::size().
1.7.2