ClanLib
2.3.7
|
String reference template. More...
#include <string_ref16.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_StringRef16 () | |
CL_StringRef16 (const std::wstring &source) | |
Constructs a StringReference. More... | |
CL_StringRef16 (const CL_StringRef16 &source) | |
Constructs a StringReference. More... | |
CL_StringRef16 (const CL_StringData16 &source) | |
Constructs a StringReference. More... | |
CL_StringRef16 (const char *c_str) | |
Constructs a StringReference. More... | |
CL_StringRef16 (const char *c_str, size_type length, bool null_terminated) | |
Constructs a StringReference. More... | |
CL_StringRef16 (const wchar_t *wc_str) | |
Constructs a StringReference. More... | |
CL_StringRef16 (const wchar_t *wc_str, size_type length, bool null_terminated) | |
Constructs a StringReference. More... | |
~CL_StringRef16 () | |
iterator | begin () |
Begin. More... | |
const_iterator | begin () const |
Begin. More... | |
const wchar_t * | c_str () const |
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... | |
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... | |
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... | |
size_type | length () const |
Length. More... | |
operator CL_StringRef16 () const | |
Convert object to a string reference. More... | |
operator std::wstring () const | |
std::wstring More... | |
CL_StringRef16 & | operator= (const CL_StringRef16 &source) |
CL_StringRef16 & | operator= (const CL_StringData16 &source) |
CL_StringRef16 & | operator= (const char *c_str) |
CL_StringRef16 & | operator= (const wchar_t *c_str) |
const wchar_t & | operator[] (size_type n) const |
wchar_t & | operator[] (size_type n) |
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... | |
void | set_length (size_type length) |
Set length. 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 Member Functions | |
void | clear () const |
Clear. More... | |
void | create_temp (const wchar_t *data, size_type length) const |
Create temp. More... | |
Protected Attributes | |
size_type | data_length |
wchar_t * | data_ptr |
bool | null_terminated |
bool | temporary |
String reference template.
Reference to string data. Extends the basic CL_StringData16 with container functionality required when converting to or from C strings.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
CL_StringRef16::CL_StringRef16 | ( | ) |
CL_StringRef16::CL_StringRef16 | ( | const std::wstring & | source) |
Constructs a StringReference.
source | = Std String |
CL_StringRef16::CL_StringRef16 | ( | const CL_StringRef16 & | source) |
Constructs a StringReference.
source | = String Reference |
CL_StringRef16::CL_StringRef16 | ( | const CL_StringData16 & | source) |
Constructs a StringReference.
CL_StringRef16::CL_StringRef16 | ( | const char * | c_str) |
Constructs a StringReference.
c_str | = char |
CL_StringRef16::CL_StringRef16 | ( | const char * | c_str, |
size_type | length, | ||
bool | null_terminated | ||
) |
Constructs a StringReference.
c_str | = char |
length | = size_type |
null_terminated | = bool |
CL_StringRef16::CL_StringRef16 | ( | const wchar_t * | wc_str) |
Constructs a StringReference.
wc_str | = wchar_t |
CL_StringRef16::CL_StringRef16 | ( | const wchar_t * | wc_str, |
size_type | length, | ||
bool | null_terminated | ||
) |
Constructs a StringReference.
wc_str | = wchar_t |
length | = size_type |
null_terminated | = bool |
CL_StringRef16::~CL_StringRef16 | ( | ) |
|
inlineinherited |
|
inlineinherited |
Begin.
const wchar_t* CL_StringRef16::c_str | ( | ) | const |
|
protected |
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 |
|
protected |
Create temp.
data | = Char Type |
length | = size_type |
|
inlineinherited |
Referenced by CL_String16::insert().
|
inlineinherited |
Data.
|
inlineinherited |
Empty.
|
inlineinherited |
|
inlineinherited |
End.
|
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 |
|
inlineinherited |
|
inherited |
Convert object to a string reference.
|
inherited |
std::wstring
CL_StringRef16& CL_StringRef16::operator= | ( | const CL_StringRef16 & | source) |
CL_StringRef16& CL_StringRef16::operator= | ( | const CL_StringData16 & | source) |
CL_StringRef16& CL_StringRef16::operator= | ( | const char * | c_str) |
CL_StringRef16& CL_StringRef16::operator= | ( | const wchar_t * | c_str) |
|
inlineinherited |
|
inlineinherited |
|
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 |
void CL_StringRef16::set_length | ( | size_type | length) |
Set length.
length | = size_type |
|
inlineinherited |
Size.
|
inherited |
Substr.
pos | = size_type |
n | = size_type |
|
mutableprotectedinherited |
|
mutableprotectedinherited |
|
staticinherited |
|
mutableprotected |
|
mutableprotected |