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