String container template. More...
#include <string8.h>

Public Types | |
| typedef char | char_type |
| typedef const char * | const_iterator |
| typedef char * | iterator |
| typedef unsigned int | size_type |
Public Member Functions | |
| CL_String8 () | |
| CL_String8 (const std::string &source) | |
| Constructs a StringContainer. | |
| CL_String8 (const CL_StringData8 &source) | |
| Constructs a StringContainer. | |
| CL_String8 (const wchar_t *wc_str, size_type length) | |
| Constructs a StringContainer. | |
| CL_String8 (size_type n, char c) | |
| Constructs a StringContainer. | |
| CL_String8 (const char *c_str) | |
| Constructs a StringContainer. | |
| CL_String8 (const CL_String8 &source) | |
| Constructs a StringContainer. | |
| CL_String8 (const char *c_str, size_type length) | |
| Constructs a StringContainer. | |
| CL_String8 (const wchar_t *wc_str) | |
| Constructs a StringContainer. | |
| ~CL_String8 () | |
| CL_String8 & | append (const CL_StringData8 &s, size_type pos, size_type n) |
| Append. | |
| CL_String8 & | append (const char *s) |
| CL_String8 & | append (const char *s, size_type n) |
| Append. | |
| CL_String8 & | append (const wchar_t *s) |
| Append. | |
| CL_String8 & | append (const wchar_t *s, size_type n) |
| Append. | |
| CL_String8 & | append (size_type n, char c) |
| Append. | |
| CL_String8 & | append (const CL_StringData8 &s) |
| Append. | |
| CL_String8 & | assign (const CL_StringData8 &s) |
| CL_String8 & | assign (const CL_StringData8 &s, size_type pos, size_type n) |
| Assign. | |
| CL_String8 & | assign (const char *s, size_type n) |
| Assign. | |
| CL_String8 & | assign (const char *s) |
| Assign. | |
| CL_String8 & | assign (size_type n, char c) |
| Assign. | |
| iterator | begin () |
| Begin. | |
| const_iterator | begin () const |
| Begin. | |
| const char * | c_str () const |
| size_type | capacity () const |
| Capacity. | |
| void | clear () |
| Clear. | |
| int | compare (size_type pos, size_type n, const CL_StringData8 &s, size_type pos1, size_type n1) const |
| Compare. | |
| int | compare (const CL_StringData8 &s) const |
| Compare. | |
| int | compare (size_type pos, size_type n, const CL_StringData8 &s) const |
| Compare. | |
| int | compare (const char *s) const |
| Compare. | |
| int | compare (size_type pos, size_type n, const char *s, size_type len=npos) const |
| Compare. | |
| size_type | copy (char *buf, size_type n, size_type pos=0) const |
| Copy. | |
| const char * | data () const |
| char * | data () |
| Data. | |
| bool | empty () const |
| Empty. | |
| iterator | end () |
| End. | |
| const_iterator | end () const |
| End. | |
| iterator | erase (iterator p) |
| Erase. | |
| iterator | erase (iterator first, iterator last) |
| Erase. | |
| CL_String8 & | erase (size_type pos=0, size_type n=CL_StringData8::npos) |
| Erase. | |
| size_type | find (const CL_StringData8 &s, size_type pos=0) const |
| Find. | |
| size_type | find (const char *s, size_type pos, size_type n) const |
| Find. | |
| size_type | find (const char *s, size_type pos=0) const |
| Find. | |
| size_type | find (char c, size_type pos=0) const |
| Find. | |
| size_type | find_first_not_of (const CL_StringData8 &s, size_type pos=0) const |
| Find first not of. | |
| size_type | find_first_not_of (const char *s, size_type pos, size_type n) const |
| Find first not of. | |
| size_type | find_first_not_of (const char *s, size_type pos=0) const |
| Find first not of. | |
| size_type | find_first_not_of (char c, size_type pos=0) const |
| Find first not of. | |
| size_type | find_first_of (const char *s, size_type pos=0) const |
| Find first of. | |
| size_type | find_first_of (const CL_StringData8 &s, size_type pos=0) const |
| Find first of. | |
| size_type | find_first_of (char c, size_type pos=0) const |
| Find first of. | |
| size_type | find_first_of (const char *s, size_type pos, size_type n) const |
| Find first of. | |
| size_type | find_last_not_of (const char *s, size_type pos, size_type n) const |
| Find last not of. | |
| size_type | find_last_not_of (const CL_StringData8 &s, size_type pos=npos) const |
| Find last not of. | |
| size_type | find_last_not_of (const char *s, size_type pos=npos) const |
| Find last not of. | |
| size_type | find_last_not_of (char c, size_type pos=npos) const |
| Find last not of. | |
| size_type | find_last_of (const CL_StringData8 &s, size_type pos=npos) const |
| Find last of. | |
| size_type | find_last_of (const char *s, size_type pos, size_type n) const |
| Find last of. | |
| size_type | find_last_of (const char *s, size_type pos=npos) const |
| Find last of. | |
| size_type | find_last_of (char c, size_type pos=npos) const |
| Find last of. | |
| iterator | insert (iterator pos, const char &item) |
| Insert. | |
| void | insert (iterator pos, size_type num_copies, const char &item) |
| Insert. | |
| CL_String8 & | insert (size_type pos, const CL_StringData8 &s) |
| Insert. | |
| CL_String8 & | insert (size_type pos, const CL_StringData8 &s, size_type pos1, size_type length) |
| Insert. | |
| CL_String8 & | insert (size_type pos, const char *s) |
| Insert. | |
| CL_String8 & | insert (size_type pos, const char *s, size_type s_length) |
| Insert. | |
| CL_String8 & | insert (size_type pos, size_type n, char c) |
| Insert. | |
| size_type | length () const |
| Length. | |
| size_type | max_size () const |
| Max size. | |
| operator CL_StringRef8 () const | |
| std::string | |
| operator std::string () const | |
| std::string | |
| CL_String8 & | operator+= (const CL_StringData8 &s) |
| CL_String8 & | operator+= (const wchar_t *c_str) |
| CL_String8 & | operator+= (const char *c_str) |
| CL_String8 & | operator+= (char c) |
| CL_String8 & | operator= (const CL_String8 &source) |
| CL_String8 & | operator= (const CL_StringData8 &source) |
| CL_String8 & | operator= (const char *c_str) |
| CL_String8 & | operator= (const wchar_t *c_str) |
| const char & | operator[] (size_type n) const |
| char & | operator[] (size_type n) |
| void | push_back (char c) |
| Push back. | |
| CL_String8 & | replace (iterator first, iterator last, const CL_StringData8 &s) |
| Replace. | |
| CL_String8 & | replace (iterator first, iterator last, const char *s) |
| Replace. | |
| CL_String8 & | replace (size_type pos, size_type n, const char *s, size_type n1) |
| Replace. | |
| CL_String8 & | replace (iterator first, iterator last, size_type n, char c) |
| Replace. | |
| CL_String8 & | replace (iterator first, iterator last, const char *s, size_type n) |
| Replace. | |
| CL_String8 & | replace (size_type pos, size_type n, size_type n1, char c) |
| Replace. | |
| CL_String8 & | replace (size_type pos, size_type n, const CL_StringData8 &s, size_type pos1, size_type n1) |
| Replace. | |
| CL_String8 & | replace (size_type pos, size_type n, const CL_StringData8 &s) |
| Replace. | |
| CL_String8 & | replace (size_type pos, size_type n, const char *s) |
| Replace. | |
| void | reserve (size_type size) |
| Reserve. | |
| void | resize (size_type n) |
| Resize. | |
| void | resize (size_type n, char c) |
| Resize. | |
| size_type | rfind (const char *s, size_type pos, size_type n) const |
| Rfind. | |
| size_type | rfind (const CL_StringData8 &s, size_type pos=npos) const |
| Rfind. | |
| size_type | rfind (const char *s, size_type pos=npos) const |
| Rfind. | |
| size_type | rfind (char c, size_type pos=npos) const |
| Rfind. | |
| size_type | size () const |
| Size. | |
| CL_StringRef8 | substr (size_type pos=0, size_type n=npos) const |
| Substr. | |
| size_type | utf8_length () const |
Static Public Attributes | |
| static const size_type | npos |
Protected Attributes | |
| size_type | data_length |
| char * | data_ptr |
String container template.
Basic string container. Extends StringData with operations that work on string data.
typedef char CL_StringData8::char_type [inherited] |
typedef const char* CL_StringData8::const_iterator [inherited] |
typedef char* CL_StringData8::iterator [inherited] |
typedef unsigned int CL_StringData8::size_type [inherited] |
| CL_String8::CL_String8 | ( | ) |
| CL_String8::CL_String8 | ( | const std::string & | source | ) |
Constructs a StringContainer.
| source | = Std String |
| CL_String8::CL_String8 | ( | const CL_String8 & | source | ) |
Constructs a StringContainer.
| source | = String Container |
| CL_String8::CL_String8 | ( | const CL_StringData8 & | source | ) |
Constructs a StringContainer.
| CL_String8::CL_String8 | ( | const char * | c_str | ) |
Constructs a StringContainer.
| c_str | = char |
| CL_String8::CL_String8 | ( | const char * | c_str, | |
| size_type | length | |||
| ) |
Constructs a StringContainer.
| c_str | = char | |
| length | = size_type |
| CL_String8::CL_String8 | ( | const wchar_t * | wc_str | ) |
Constructs a StringContainer.
| wc_str | = wchar_t |
| CL_String8::CL_String8 | ( | const wchar_t * | wc_str, | |
| size_type | length | |||
| ) |
Constructs a StringContainer.
| wc_str | = wchar_t | |
| length | = size_type |
| CL_String8::CL_String8 | ( | size_type | n, | |
| char | c | |||
| ) |
Constructs a StringContainer.
| n | = size_type | |
| c | = Char Type |
| CL_String8::~CL_String8 | ( | ) |
| CL_String8& CL_String8::append | ( | const CL_StringData8 & | s | ) |
Append.
| s | = String Data |
| CL_String8& CL_String8::append | ( | const CL_StringData8 & | s, | |
| size_type | pos, | |||
| size_type | n | |||
| ) |
Append.
| s | = String Data | |
| pos | = size_type | |
| n | = size_type |
| CL_String8& CL_String8::append | ( | const char * | s | ) |
| CL_String8& CL_String8::append | ( | const char * | s, | |
| size_type | n | |||
| ) |
Append.
| s | = char | |
| n | = size_type |
| CL_String8& CL_String8::append | ( | const wchar_t * | s | ) |
Append.
| s | = wchar_t |
| CL_String8& CL_String8::append | ( | const wchar_t * | s, | |
| size_type | n | |||
| ) |
Append.
| s | = wchar_t | |
| n | = size_type |
| CL_String8& CL_String8::append | ( | size_type | n, | |
| char | c | |||
| ) |
Append.
| n | = size_type | |
| c | = Char Type |
| CL_String8& CL_String8::assign | ( | const char * | s, | |
| size_type | n | |||
| ) |
Assign.
| s | = String data | |
| n | = size_type |
| CL_String8& CL_String8::assign | ( | const CL_StringData8 & | s | ) |
| CL_String8& CL_String8::assign | ( | const CL_StringData8 & | s, | |
| size_type | pos, | |||
| size_type | n | |||
| ) |
Assign.
| s | = String Data | |
| pos | = size_type | |
| n | = size_type |
| CL_String8& CL_String8::assign | ( | const char * | s | ) |
Assign.
| s | = Char Type |
| CL_String8& CL_String8::assign | ( | size_type | n, | |
| char | c | |||
| ) |
Assign.
| n | = size_type | |
| c | = Char Type |
| iterator CL_StringData8::begin | ( | ) | [inline, inherited] |
| const_iterator CL_StringData8::begin | ( | ) | const [inline, inherited] |
Begin.
| const char* CL_String8::c_str | ( | ) | const |
Referenced by std::hash< CL_String >::operator()().
| size_type CL_String8::capacity | ( | ) | const [inline] |
Capacity.
| void CL_String8::clear | ( | ) |
Clear.
| int CL_StringData8::compare | ( | const CL_StringData8 & | s | ) | const [inherited] |
Compare.
| s | = String Data |
| int CL_StringData8::compare | ( | size_type | pos, | |
| size_type | n, | |||
| const CL_StringData8 & | s | |||
| ) | const [inherited] |
Compare.
| pos | = size_type | |
| n | = size_type | |
| s | = String Data |
| int CL_StringData8::compare | ( | const char * | s | ) | const [inherited] |
Compare.
| s | = Char Type |
| int CL_StringData8::compare | ( | size_type | pos, | |
| size_type | n, | |||
| const char * | s, | |||
| size_type | len = npos | |||
| ) | const [inherited] |
Compare.
| pos | = size_type | |
| n | = size_type | |
| s | = Char Type | |
| len | = size_type |
| int CL_StringData8::compare | ( | size_type | pos, | |
| size_type | n, | |||
| const CL_StringData8 & | s, | |||
| size_type | pos1, | |||
| size_type | n1 | |||
| ) | const [inherited] |
Compare.
| pos | = size_type | |
| n | = size_type | |
| s | = String Data | |
| pos1 | = size_type | |
| n1 | = size_type |
Copy.
| buf | = Char Type | |
| n | = size_type | |
| pos | = size_type |
| const char* CL_StringData8::data | ( | ) | const [inline, inherited] |
Referenced by insert().
| char* CL_StringData8::data | ( | ) | [inline, inherited] |
Data.
| bool CL_StringData8::empty | ( | ) | const [inline, inherited] |
Empty.
| const_iterator CL_StringData8::end | ( | ) | const [inline, inherited] |
End.
Erase.
| first | = iterator | |
| last | = iterator |
References CL_StringData8::begin(), and CL_StringData8::end().
| CL_String8& CL_String8::erase | ( | size_type | pos = 0, |
|
| size_type | n = CL_StringData8::npos | |||
| ) |
Erase.
| 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 | ( | const CL_StringData8 & | s, | |
| size_type | pos = 0 | |||
| ) | const [inherited] |
Find.
| s | = String Data | |
| pos | = size_type |
Find.
| s | = Char Type | |
| pos | = size_type | |
| n | = size_type |
| size_type CL_StringData8::find_first_not_of | ( | const CL_StringData8 & | s, | |
| size_type | pos = 0 | |||
| ) | const [inherited] |
Find first not of.
| s | = String Data | |
| pos | = size_type |
| size_type CL_StringData8::find_first_not_of | ( | const char * | s, | |
| size_type | pos, | |||
| size_type | n | |||
| ) | const [inherited] |
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 [inherited] |
Find first of.
| s | = String Data | |
| pos | = size_type |
| size_type CL_StringData8::find_first_of | ( | const char * | s, | |
| size_type | pos, | |||
| size_type | n | |||
| ) | const [inherited] |
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 [inherited] |
Find last not of.
| s | = String Data | |
| pos | = size_type |
| size_type CL_StringData8::find_last_not_of | ( | const char * | s, | |
| size_type | pos = npos | |||
| ) | const [inherited] |
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_not_of | ( | const char * | s, | |
| size_type | pos, | |||
| size_type | n | |||
| ) | const [inherited] |
Find last not of.
| s | = Char Type | |
| pos | = size_type | |
| n | = size_type |
| size_type CL_StringData8::find_last_of | ( | const char * | s, | |
| size_type | pos, | |||
| size_type | n | |||
| ) | const [inherited] |
Find last of.
| s | = Char Type | |
| pos | = size_type | |
| n | = size_type |
| size_type CL_StringData8::find_last_of | ( | const CL_StringData8 & | s, | |
| size_type | pos = npos | |||
| ) | const [inherited] |
Find last of.
| s | = String Data | |
| pos | = size_type |
Find last of.
| s | = Char Type | |
| pos | = size_type |
Find last of.
| c | = Char Type | |
| pos | = size_type |
| CL_String8& CL_String8::insert | ( | size_type | pos, | |
| const CL_StringData8 & | s | |||
| ) |
Insert.
| pos | = size_type | |
| s | = String Data |
| CL_String8& CL_String8::insert | ( | size_type | pos, | |
| const CL_StringData8 & | s, | |||
| size_type | pos1, | |||
| size_type | length | |||
| ) |
Insert.
| pos | = size_type | |
| s | = String Data | |
| pos1 | = size_type | |
| length | = size_type |
| CL_String8& CL_String8::insert | ( | size_type | pos, | |
| const char * | s | |||
| ) |
Insert.
| pos | = size_type | |
| s | = Char Type |
| CL_String8& CL_String8::insert | ( | size_type | pos, | |
| const char * | s, | |||
| size_type | s_length | |||
| ) |
Insert.
| pos | = size_type | |
| s | = Char Type | |
| s_length | = size_type |
| CL_String8& CL_String8::insert | ( | size_type | pos, | |
| size_type | n, | |||
| char | c | |||
| ) |
Insert.
| pos | = size_type | |
| n | = size_type | |
| c | = Char Type |
Insert.
| pos | = iterator | |
| item | = Char Type |
References CL_StringData8::begin(), CL_StringData8::data(), and CL_StringData8::length().
Insert.
| pos | = iterator | |
| num_copies | = size_type | |
| item | = Char Type |
| size_type CL_StringData8::length | ( | ) | const [inline, inherited] |
| size_type CL_String8::max_size | ( | ) | const [inline] |
Max size.
| CL_String8::operator CL_StringRef8 | ( | ) | const |
| CL_StringData8::operator std::string | ( | ) | const [inherited] |
std::string
| CL_String8& CL_String8::operator+= | ( | char | c | ) |
| CL_String8& CL_String8::operator+= | ( | const CL_StringData8 & | s | ) |
| CL_String8& CL_String8::operator+= | ( | const char * | c_str | ) |
| CL_String8& CL_String8::operator+= | ( | const wchar_t * | c_str | ) |
| CL_String8& CL_String8::operator= | ( | const CL_String8 & | source | ) |
| CL_String8& CL_String8::operator= | ( | const char * | c_str | ) |
| CL_String8& CL_String8::operator= | ( | const CL_StringData8 & | source | ) |
| CL_String8& CL_String8::operator= | ( | const wchar_t * | c_str | ) |
| char& CL_StringData8::operator[] | ( | size_type | n | ) | [inline, inherited] |
| const char& CL_StringData8::operator[] | ( | size_type | n | ) | const [inline, inherited] |
| void CL_String8::push_back | ( | char | c | ) |
Push back.
| c | = Char Type |
| CL_String8& CL_String8::replace | ( | iterator | first, | |
| iterator | last, | |||
| const char * | s | |||
| ) |
Replace.
| first | = iterator | |
| last | = iterator | |
| s | = Char Type |
| CL_String8& CL_String8::replace | ( | size_type | pos, | |
| size_type | n, | |||
| const char * | s | |||
| ) |
Replace.
| pos | = size_type | |
| n | = size_type | |
| s | = Char Type |
| CL_String8& CL_String8::replace | ( | size_type | pos, | |
| size_type | n, | |||
| const CL_StringData8 & | s, | |||
| size_type | pos1, | |||
| size_type | n1 | |||
| ) |
Replace.
| pos | = size_type | |
| n | = size_type | |
| s | = String Data | |
| pos1 | = size_type | |
| n1 | = size_type |
| CL_String8& CL_String8::replace | ( | iterator | first, | |
| iterator | last, | |||
| const char * | s, | |||
| size_type | n | |||
| ) |
Replace.
| first | = iterator | |
| last | = iterator | |
| s | = Char Type | |
| n | = size_type |
| CL_String8& CL_String8::replace | ( | size_type | pos, | |
| size_type | n, | |||
| size_type | n1, | |||
| char | c | |||
| ) |
Replace.
| pos | = size_type | |
| n | = size_type | |
| n1 | = size_type | |
| c | = Char Type |
| CL_String8& CL_String8::replace | ( | size_type | pos, | |
| size_type | n, | |||
| const CL_StringData8 & | s | |||
| ) |
Replace.
| pos | = size_type | |
| n | = size_type | |
| s | = String Data |
| CL_String8& CL_String8::replace | ( | iterator | first, | |
| iterator | last, | |||
| const CL_StringData8 & | s | |||
| ) |
Replace.
| first | = iterator | |
| last | = iterator | |
| s | = String Data |
| CL_String8& CL_String8::replace | ( | iterator | first, | |
| iterator | last, | |||
| size_type | n, | |||
| char | c | |||
| ) |
Replace.
| first | = iterator | |
| last | = iterator | |
| n | = size_type | |
| c | = Char Type |
| CL_String8& CL_String8::replace | ( | size_type | pos, | |
| size_type | n, | |||
| const char * | s, | |||
| size_type | n1 | |||
| ) |
Replace.
| pos | = size_type | |
| n | = size_type | |
| s | = Char Type | |
| n1 | = size_type |
| void CL_String8::reserve | ( | size_type | size | ) |
Reserve.
| size | = size_type |
| void CL_String8::resize | ( | size_type | n, | |
| char | c | |||
| ) |
Resize.
| n | = size_type | |
| c | = Char Type |
| void CL_String8::resize | ( | size_type | n | ) |
Resize.
| n | = size_type |
Rfind.
| c | = Char Type | |
| pos | = size_type |
| size_type CL_StringData8::rfind | ( | const CL_StringData8 & | s, | |
| size_type | pos = npos | |||
| ) | const [inherited] |
Rfind.
| s | = String Data | |
| pos | = size_type |
Rfind.
| s | = Char Type | |
| pos | = size_type | |
| n | = size_type |
Rfind.
| s | = Char Type | |
| pos | = size_type |
| size_type CL_StringData8::size | ( | ) | const [inline, inherited] |
Size.
| CL_StringRef8 CL_StringData8::substr | ( | size_type | pos = 0, |
|
| size_type | n = npos | |||
| ) | const [inherited] |
Substr.
| pos | = size_type | |
| n | = size_type |
| size_type CL_StringData8::utf8_length | ( | ) | const [inherited] |
size_type CL_StringData8::data_length [mutable, protected, inherited] |
char* CL_StringData8::data_ptr [mutable, protected, inherited] |
const size_type CL_StringData8::npos [static, inherited] |
1.7.1