EPAM B2BITS C++ Bovespa MarketData handler
1.27.1
|
String reference type. More...
#include <b2bits/types/String.h>
Public Types | |
typedef char | value_type |
Provides access to the template parameter. More... | |
typedef StringRef | MyT |
Public Types inherited from B2bits::MemBlock | |
typedef char | value_type |
Provides access to the template parameter. More... | |
Public Member Functions | |
StringRef () noexcept | |
Default constructor. More... | |
StringRef (const value_type *aData, size_t aSize) noexcept | |
template<typename Iterator > | |
StringRef (Iterator aBegin, Iterator aEnd) noexcept | |
StringRef (std::string const &str) noexcept | |
StringRef (value_type const *aData) noexcept | |
int | compareTo (StringRef rv) const noexcept |
bool | equals (StringRef rv) const noexcept |
std::basic_string< value_type > | toStdString () const |
bool | isEmpty () const noexcept |
Returns true if given string is empty (e.g. size equal to 0) More... | |
bool | isNull () const noexcept |
Returns true if given string is NULL. More... | |
StringRef | substr (std::size_t offset, std::size_t size) const noexcept |
Returns part of the string by given offset and size. More... | |
StringRef | substr (std::size_t offset) const noexcept |
Returns part of the string by given offset till end of string. More... | |
int | toInt () const noexcept |
Converts string value to int. More... | |
i16 | toInt16 () const noexcept |
Converts string value to int. More... | |
i32 | toInt32 () const noexcept |
Converts string value to int. More... | |
i64 | toInt64 () const noexcept |
Converts string value to int. More... | |
unsigned int | toUInt () const noexcept |
Converts string value to int. More... | |
u16 | toUInt16 () const noexcept |
Converts string value to int. More... | |
u32 | toUInt32 () const noexcept |
Converts string value to int. More... | |
u64 | toUInt64 () const noexcept |
Converts string value to int. More... | |
MyT | normalize () const noexcept |
Calculates size of string and returns new object of StringRef. More... | |
Public Member Functions inherited from B2bits::MemBlock | |
value_type const * | data () const noexcept |
std::size_t | size () const noexcept |
Returns size of the block. More... | |
value_type const * | end () const noexcept |
Returns pointer to the next after last character. More... | |
value_type const * | begin () const noexcept |
Returns pointer to first character. More... | |
value_type const & | operator[] (std::size_t index) const noexcept |
Indexer. More... | |
int | compareTo (MemBlock rv) const noexcept |
MemBlock (const value_type *aData, size_t aSize) noexcept | |
template<typename Iterator > | |
MemBlock (Iterator aBegin, Iterator aEnd) noexcept | |
MemBlock () noexcept | |
Default constructor. More... | |
Static Public Member Functions | |
template<int N> | |
static MyT | fromStr (value_type const (&aData)[N]) noexcept |
static int | cmpAsFixedSizeStr (MyT v1, MyT v2) noexcept |
String reference type.
typedef StringRef B2bits::StringRef::MyT |
typedef char B2bits::StringRef::value_type |
Provides access to the template parameter.
|
inlinenoexcept |
Default constructor.
|
inlinenoexcept |
Constructor Constructs instance from address to memory and size
aData | address to the block |
aSize | size of the block |
|
inlinenoexcept |
Constructor Constructs instance from address to memory and size
aBegin | address to the first byte of the block |
aEnd | address of the byte after last byte of the block |
|
inlinenoexcept |
Constructor Constructs instance from std::basic_string.
str | Source std::string |
|
inlinenoexcept |
Constructor Constructs instance from ANSI std::string
aData | address to the ASCII std::string |
Compares two strings with known memory size but unknown actual data size. Fox example "abc\0\0\0\0" and "abc\0" Usefull for fixed size strings.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
Creates instance from array of char
aData | Array of chars |
|
inlinenoexcept |
Returns true if given string is empty (e.g. size equal to 0)
|
inlinenoexcept |
Returns true if given string is NULL.
|
noexcept |
Calculates size of string and returns new object of StringRef.
|
inlinenoexcept |
Returns part of the string by given offset and size.
|
inlinenoexcept |
Returns part of the string by given offset till end of string.
|
noexcept |
Converts string value to int.
|
noexcept |
Converts string value to int.
|
noexcept |
Converts string value to int.
|
noexcept |
Converts string value to int.
|
inline |
Converts AsciiString to std::string. This method creates copy of the stored buffer and returns it as std::string.
|
noexcept |
Converts string value to int.
|
noexcept |
Converts string value to int.
|
noexcept |
Converts string value to int.
|
noexcept |
Converts string value to int.