Public Types | Public Member Functions | Static Public Attributes | Protected Attributes

CL_StringData8 Class Reference
[clanCore Text]

String data class for 8 bit data. More...

#include <string_data8.h>

Inheritance diagram for CL_StringData8:
Inheritance graph
[legend]

List of all members.

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.
const_iterator begin () const
 Begin.
iterator begin ()
 Begin.
int compare (const CL_StringData8 &s) const
 Compare.
int compare (size_type pos, size_type n, const CL_StringData8 &s) const
 Compare.
int compare (size_type pos, size_type n, const CL_StringData8 &s, size_type pos1, size_type n1) 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.
const char * data () const
char * data ()
 Data.
bool empty () const
 Empty.
iterator end ()
 End.
const_iterator end () const
 End.
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 (char c, size_type pos=0) const
 Find first not of.
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_of (const CL_StringData8 &s, 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_first_of (const char *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_last_not_of (const char *s, size_type pos, size_type n) 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_not_of (const char *s, size_type pos=npos) 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_of (const CL_StringData8 &s, size_type pos=npos) const
 Find last of.
size_type find_last_of (char c, 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 length () const
 Length.
 operator CL_StringRef8 () const
 Convert object to a string reference.
 operator std::string () const
 std::string
const char & operator[] (size_type n) const
char & operator[] (size_type n)
size_type rfind (const char *s, size_type pos, size_type n) const
 Rfind.
size_type rfind (const char *s, size_type pos=npos) const
 Rfind.
size_type rfind (const CL_StringData8 &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

Detailed Description

String data class for 8 bit data.


Member Typedef Documentation

typedef const char* CL_StringData8::const_iterator
typedef char* CL_StringData8::iterator
typedef unsigned int CL_StringData8::size_type

Constructor & Destructor Documentation

CL_StringData8::CL_StringData8 (  ) 
CL_StringData8::CL_StringData8 ( const char *  ptr,
size_type  length 
)

Constructs a StringData8.

Parameters:
ptr = Char Type
length = size_type

Member Function Documentation

iterator CL_StringData8::begin (  )  [inline]

Begin.

Returns:
iterator

Referenced by CL_String8::erase(), and CL_String8::insert().

const_iterator CL_StringData8::begin (  )  const [inline]

Begin.

Returns:
const_iterator
int CL_StringData8::compare ( size_type  pos,
size_type  n,
const char *  s,
size_type  len = npos 
) const

Compare.

Parameters:
pos = size_type
n = size_type
s = Char Type
len = size_type
Returns:
int
int CL_StringData8::compare ( const CL_StringData8 s  )  const

Compare.

Parameters:
s = String Data
Returns:
int
int CL_StringData8::compare ( size_type  pos,
size_type  n,
const CL_StringData8 s 
) const

Compare.

Parameters:
pos = size_type
n = size_type
s = String Data
Returns:
int
int CL_StringData8::compare ( size_type  pos,
size_type  n,
const CL_StringData8 s,
size_type  pos1,
size_type  n1 
) const

Compare.

Parameters:
pos = size_type
n = size_type
s = String Data
pos1 = size_type
n1 = size_type
Returns:
int
int CL_StringData8::compare ( const char *  s  )  const

Compare.

Parameters:
s = Char Type
Returns:
int
char* CL_StringData8::data (  )  [inline]

Data.

Returns:
Char Type
const char* CL_StringData8::data (  )  const [inline]

Referenced by CL_String8::insert().

bool CL_StringData8::empty (  )  const [inline]

Empty.

Returns:
bool
const_iterator CL_StringData8::end (  )  const [inline]

End.

Returns:
const_iterator
iterator CL_StringData8::end (  )  [inline]

End.

Returns:
iterator

Referenced by CL_String8::erase().

size_type CL_StringData8::find ( const char *  s,
size_type  pos = 0 
) const

Find.

Parameters:
s = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find ( char  c,
size_type  pos = 0 
) const

Find.

Parameters:
c = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find ( const CL_StringData8 s,
size_type  pos = 0 
) const

Find.

Parameters:
s = String Data
pos = size_type
Returns:
size_type
size_type CL_StringData8::find ( const char *  s,
size_type  pos,
size_type  n 
) const

Find.

Parameters:
s = Char Type
pos = size_type
n = size_type
Returns:
size_type
size_type CL_StringData8::find_first_not_of ( const CL_StringData8 s,
size_type  pos = 0 
) const

Find first not of.

Parameters:
s = String Data
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_first_not_of ( const char *  s,
size_type  pos,
size_type  n 
) const

Find first not of.

Parameters:
s = Char Type
pos = size_type
n = size_type
Returns:
size_type
size_type CL_StringData8::find_first_not_of ( const char *  s,
size_type  pos = 0 
) const

Find first not of.

Parameters:
s = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_first_not_of ( char  c,
size_type  pos = 0 
) const

Find first not of.

Parameters:
c = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_first_of ( const CL_StringData8 s,
size_type  pos = 0 
) const

Find first of.

Parameters:
s = String Data
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_first_of ( const char *  s,
size_type  pos,
size_type  n 
) const

Find first of.

Parameters:
s = Char Type
pos = size_type
n = size_type
Returns:
size_type
size_type CL_StringData8::find_first_of ( const char *  s,
size_type  pos = 0 
) const

Find first of.

Parameters:
s = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_first_of ( char  c,
size_type  pos = 0 
) const

Find first of.

Parameters:
c = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_last_not_of ( const CL_StringData8 s,
size_type  pos = npos 
) const

Find last not of.

Parameters:
s = String Data
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_last_not_of ( const char *  s,
size_type  pos,
size_type  n 
) const

Find last not of.

Parameters:
s = Char Type
pos = size_type
n = size_type
Returns:
size_type
size_type CL_StringData8::find_last_not_of ( char  c,
size_type  pos = npos 
) const

Find last not of.

Parameters:
c = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_last_not_of ( const char *  s,
size_type  pos = npos 
) const

Find last not of.

Parameters:
s = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_last_of ( const char *  s,
size_type  pos = npos 
) const

Find last of.

Parameters:
s = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_last_of ( char  c,
size_type  pos = npos 
) const

Find last of.

Parameters:
c = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::find_last_of ( const char *  s,
size_type  pos,
size_type  n 
) const

Find last of.

Parameters:
s = Char Type
pos = size_type
n = size_type
Returns:
size_type
size_type CL_StringData8::find_last_of ( const CL_StringData8 s,
size_type  pos = npos 
) const

Find last of.

Parameters:
s = String Data
pos = size_type
Returns:
size_type
size_type CL_StringData8::length (  )  const [inline]

Length.

Returns:
size_type

Referenced by CL_String8::insert().

CL_StringData8::operator CL_StringRef8 (  )  const

Convert object to a string reference.

Returns:
operator

Reimplemented in CL_String8.

CL_StringData8::operator std::string (  )  const

std::string

Returns:
operator
char& CL_StringData8::operator[] ( size_type  n  )  [inline]
const char& CL_StringData8::operator[] ( size_type  n  )  const [inline]
size_type CL_StringData8::rfind ( char  c,
size_type  pos = npos 
) const

Rfind.

Parameters:
c = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::rfind ( const CL_StringData8 s,
size_type  pos = npos 
) const

Rfind.

Parameters:
s = String Data
pos = size_type
Returns:
size_type
size_type CL_StringData8::rfind ( const char *  s,
size_type  pos = npos 
) const

Rfind.

Parameters:
s = Char Type
pos = size_type
Returns:
size_type
size_type CL_StringData8::rfind ( const char *  s,
size_type  pos,
size_type  n 
) const

Rfind.

Parameters:
s = Char Type
pos = size_type
n = size_type
Returns:
size_type
size_type CL_StringData8::size (  )  const [inline]

Size.

Returns:
size_type
CL_StringRef8 CL_StringData8::substr ( size_type  pos = 0,
size_type  n = npos 
) const

Substr.

Parameters:
pos = size_type
n = size_type
Returns:
Reference Class
size_type CL_StringData8::utf8_length (  )  const

Member Data Documentation

size_type CL_StringData8::data_length [mutable, protected]
char* CL_StringData8::data_ptr [mutable, protected]

The documentation for this class was generated from the following file: