|
ClanLib
2.3.7
|
String data class for 8 bit data. More...
#include <string_data8.h>

Public Types | |
| typedef char | char_type |
| typedef const char * | const_iterator |
| typedef char * | iterator |
| typedef unsigned int | size_type |
Public Member Functions | |
| CL_StringData8 () | |
| CL_StringData8 (const char *ptr, size_type length) | |
| Constructs a StringData8. More... | |
| iterator | begin () |
| Begin. More... | |
| const_iterator | begin () const |
| Begin. More... | |
| int | compare (const CL_StringData8 &s) const |
| Compare. More... | |
| int | compare (size_type pos, size_type n, const CL_StringData8 &s) const |
| Compare. More... | |
| int | compare (size_type pos, size_type n, const CL_StringData8 &s, size_type pos1, size_type n1) const |
| Compare. More... | |
| int | compare (const char *s) const |
| Compare. More... | |
| int | compare (size_type pos, size_type n, const char *s, size_type len=npos) const |
| Compare. More... | |
| const char * | data () const |
| char * | data () |
| Data. More... | |
| bool | empty () const |
| Empty. More... | |
| iterator | end () |
| End. More... | |
| const_iterator | end () const |
| End. More... | |
| size_type | find (const CL_StringData8 &s, size_type pos=0) const |
| Find. More... | |
| size_type | find (const char *s, size_type pos, size_type n) const |
| Find. More... | |
| size_type | find (const char *s, size_type pos=0) const |
| Find. More... | |
| size_type | find (char c, size_type pos=0) const |
| Find. More... | |
| size_type | find_first_not_of (const CL_StringData8 &s, size_type pos=0) const |
| Find first not of. More... | |
| size_type | find_first_not_of (const char *s, size_type pos, size_type n) const |
| Find first not of. More... | |
| size_type | find_first_not_of (const char *s, size_type pos=0) const |
| Find first not of. More... | |
| size_type | find_first_not_of (char c, size_type pos=0) const |
| Find first not of. More... | |
| size_type | find_first_of (const CL_StringData8 &s, size_type pos=0) const |
| Find first of. More... | |
| size_type | find_first_of (const char *s, size_type pos, size_type n) const |
| Find first of. More... | |
| size_type | find_first_of (const char *s, size_type pos=0) const |
| Find first of. More... | |
| size_type | find_first_of (char c, size_type pos=0) const |
| Find first of. More... | |
| size_type | find_last_not_of (const CL_StringData8 &s, size_type pos=npos) const |
| Find last not of. More... | |
| size_type | find_last_not_of (const char *s, size_type pos, size_type n) const |
| Find last not of. More... | |
| size_type | find_last_not_of (const char *s, size_type pos=npos) const |
| Find last not of. More... | |
| size_type | find_last_not_of (char c, size_type pos=npos) const |
| Find last not of. More... | |
| size_type | find_last_of (const CL_StringData8 &s, size_type pos=npos) const |
| Find last of. More... | |
| size_type | find_last_of (const char *s, size_type pos, size_type n) const |
| Find last of. More... | |
| size_type | find_last_of (const char *s, size_type pos=npos) const |
| Find last of. More... | |
| size_type | find_last_of (char c, size_type pos=npos) const |
| Find last of. More... | |
| size_type | length () const |
| Length. More... | |
| operator CL_StringRef8 () const | |
| Convert object to a string reference. More... | |
| operator std::string () const | |
| std::string More... | |
| const char & | operator[] (size_type n) const |
| char & | operator[] (size_type n) |
| size_type | rfind (const CL_StringData8 &s, size_type pos=npos) const |
| Rfind. More... | |
| size_type | rfind (const char *s, size_type pos, size_type n) const |
| Rfind. More... | |
| size_type | rfind (const char *s, size_type pos=npos) const |
| Rfind. More... | |
| size_type | rfind (char c, size_type pos=npos) const |
| Rfind. More... | |
| size_type | size () const |
| Size. More... | |
| CL_StringRef8 | substr (size_type pos=0, size_type n=npos) const |
| Substr. More... | |
| size_type | utf8_length () const |
Static Public Attributes | |
| static const size_type | npos |
Protected Attributes | |
| size_type | data_length |
| char * | data_ptr |
String data class for 8 bit data.
| typedef char CL_StringData8::char_type |
| typedef const char* CL_StringData8::const_iterator |
| typedef char* CL_StringData8::iterator |
| typedef unsigned int CL_StringData8::size_type |
| CL_StringData8::CL_StringData8 | ( | ) |
| CL_StringData8::CL_StringData8 | ( | const char * | ptr, |
| size_type | length | ||
| ) |
Constructs a StringData8.
| ptr | = Char Type |
| length | = size_type |
|
inline |
|
inline |
Begin.
| int CL_StringData8::compare | ( | const CL_StringData8 & | s) | const |
Compare.
| s | = String Data |
| int CL_StringData8::compare | ( | size_type | pos, |
| size_type | n, | ||
| const CL_StringData8 & | s | ||
| ) | const |
Compare.
| pos | = size_type |
| n | = size_type |
| s | = String Data |
| int CL_StringData8::compare | ( | size_type | pos, |
| size_type | n, | ||
| const CL_StringData8 & | s, | ||
| size_type | pos1, | ||
| size_type | n1 | ||
| ) | const |
Compare.
| pos | = size_type |
| n | = size_type |
| s | = String Data |
| pos1 | = size_type |
| n1 | = size_type |
| int CL_StringData8::compare | ( | const char * | s) | const |
Compare.
| s | = Char Type |
| int CL_StringData8::compare | ( | size_type | pos, |
| size_type | n, | ||
| const char * | s, | ||
| size_type | len = npos |
||
| ) | const |
Compare.
| pos | = size_type |
| n | = size_type |
| s | = Char Type |
| len | = size_type |
|
inline |
Referenced by CL_String8::insert().
|
inline |
Data.
|
inline |
Empty.
|
inline |
|
inline |
End.
| size_type CL_StringData8::find | ( | const CL_StringData8 & | s, |
| size_type | pos = 0 |
||
| ) | const |
Find.
| s | = String Data |
| pos | = size_type |
Find.
| s | = Char Type |
| pos | = size_type |
| n | = size_type |
Find.
| s | = Char Type |
| pos | = size_type |
Find.
| c | = Char Type |
| pos | = size_type |
| size_type CL_StringData8::find_first_not_of | ( | const CL_StringData8 & | s, |
| size_type | pos = 0 |
||
| ) | const |
Find first not of.
| s | = String Data |
| pos | = size_type |
Find first not of.
| s | = Char Type |
| pos | = size_type |
| n | = size_type |
Find first not of.
| s | = Char Type |
| pos | = size_type |
Find first not of.
| c | = Char Type |
| pos | = size_type |
| size_type CL_StringData8::find_first_of | ( | const CL_StringData8 & | s, |
| size_type | pos = 0 |
||
| ) | const |
Find first of.
| s | = String Data |
| pos | = size_type |
Find first of.
| s | = Char Type |
| pos | = size_type |
| n | = size_type |
Find first of.
| s | = Char Type |
| pos | = size_type |
Find first of.
| c | = Char Type |
| pos | = size_type |
| size_type CL_StringData8::find_last_not_of | ( | const CL_StringData8 & | s, |
| size_type | pos = npos |
||
| ) | const |
Find last not of.
| s | = String Data |
| pos | = size_type |
Find last not of.
| s | = Char Type |
| pos | = size_type |
| n | = size_type |
Find last not of.
| s | = Char Type |
| pos | = size_type |
Find last not of.
| c | = Char Type |
| pos | = size_type |
| size_type CL_StringData8::find_last_of | ( | const CL_StringData8 & | s, |
| size_type | pos = npos |
||
| ) | const |
Find last of.
| s | = String Data |
| pos | = size_type |
Find last of.
| s | = Char Type |
| pos | = size_type |
| n | = size_type |
Find last of.
| s | = Char Type |
| pos | = size_type |
Find last of.
| c | = Char Type |
| pos | = size_type |
|
inline |
| CL_StringData8::operator CL_StringRef8 | ( | ) | const |
Convert object to a string reference.
| CL_StringData8::operator std::string | ( | ) | const |
std::string
|
inline |
|
inline |
| size_type CL_StringData8::rfind | ( | const CL_StringData8 & | s, |
| size_type | pos = npos |
||
| ) | const |
Rfind.
| s | = String Data |
| pos | = size_type |
Rfind.
| s | = Char Type |
| pos | = size_type |
| n | = size_type |
Rfind.
| s | = Char Type |
| pos | = size_type |
Rfind.
| c | = Char Type |
| pos | = size_type |
|
inline |
Size.
| CL_StringRef8 CL_StringData8::substr | ( | size_type | pos = 0, |
| size_type | n = npos |
||
| ) | const |
Substr.
| pos | = size_type |
| n | = size_type |
| size_type CL_StringData8::utf8_length | ( | ) | const |
|
mutableprotected |
|
mutableprotected |
|
static |
1.8.4