class ReflectExport( reflect ) Fragment
A Fragment is the most basic string type in the reflect string suite.
It consists of a pointer and a length. It does not own its data. It can and should provide any const std::string functions we need that do not require a NUL terminator.
Fragment | A Fragment is the most basic string type in the reflect string suite. |
Functions | |
Fragment | Constructs a piece string from a character pointer to NUL terminated data. |
find_first_of | Finds any of a set of characters in the string. |
rfind | Finds a string in the string, in reverse. |
rfind | Finds a string in the string, in reverse. |
find_last_of | Finds a character in the string, in reverse. |
find_last_of | Finds any of a set of characters in the string, in reverse. |
substr | Makes a substr fragment from this one. |
empty | |
compare |
A Fragment is the most basic string type in the reflect string suite.
class ReflectExport( reflect ) Fragment
Constructs a piece string from a character pointer to NUL terminated data.
Fragment( const char * s )
Finds any of a set of characters in the string.
size_type find_first_of( const Fragment & , size_type pos = 0 ) const
Finds a string in the string, in reverse.
size_type rfind( const char * s, size_type pos = npos, size_type length = npos ) const
Finds a character in the string, in reverse.
size_type find_last_of( char ch, size_type pos = npos ) const
Makes a substr fragment from this one.
Fragment substr( size_type index, size_type amount = npos ) const
bool empty() const
int compare( const Fragment & other ) const