class ReflectExport( reflect ) ConstString
A ConstString is a reflected string type which doesn’t own its data. Usually this is a better type to pass around than to store.
ConstString | A ConstString is a reflected string type which doesn’t own its data. |
Functions | |
ConstString | constructs a const string wrapping a c string. |
ConstString (default) | constructs an empty (“”) const string. |
c_str | returns the string as a nul-terminated pointer to const char. |
data | same as c_str, but the data method isn’t guaranteed to return nul-terminated data in the other reflect string classes. |
length | the number of non-nul chars in this string. |
size | same as length, for compatibility with std::string. |
A ConstString is a reflected string type which doesn’t own its data.
class ReflectExport( reflect ) ConstString
constructs a const string wrapping a c string.
ConstString( const char * s )
constructs an empty (“”) const string.
ConstString()
returns the string as a nul-terminated pointer to const char.
const char *c_str() const
same as c_str, but the data method isn’t guaranteed to return nul-terminated data in the other reflect string classes.
const char *data() const
the number of non-nul chars in this string.
size_type length() const
same as length, for compatibility with std::string.
size_type size() const
A Fragment is the most basic string type in the reflect string suite.
class ReflectExport( reflect ) Fragment