#include <CTBcstring.hxx>
Public Methods | |
CTBcstring () | |
CTBcstring (const char *c_src) | |
CTBcstring (const char *c_src, CTBint i_length) | |
CTBcstring (const CTBcstring< DIM > &rhs) | |
CTBint | Size () const |
CTBint | Length () const |
void | Copy (const char *c_src, CTBint i_offset=0, CTBint i_length=DIM-1) |
void | Append (const char *c_src, CTBint i_offset=0, CTBint i_length=DIM-1) |
void | Trim () |
void | Toupper () |
void | Tolower () |
bool | Get (long &i_val, int i_base=0) const |
bool | Get (unsigned long &i_val, int i_base=0) const |
bool | Get (int &i_val, int i_base=0) const |
bool | Get (unsigned int &i_val, int i_base=0) const |
bool | Get (double &d_val) const |
bool | Get (float &f_val) const |
CTBint | Locate (char c_char) const |
int | NField (const char *c_delim=0) const |
bool | CopyField (const char *c_src, CTBint i_ind=0, const char *c_delim=0) |
bool | GetLine (istream &is) |
bool | FromStream (istream &is) |
char & | operator[] (CTBint i_ind) |
const char & | operator[] (CTBint i_ind) const |
operator char * () | |
operator const char * () const | |
bool | operator== (const char *rhs) const |
CTBcstring< DIM > & | operator= (const char *rhs) |
CTBcstring< DIM > & | operator+= (const char *rhs) |
Protected Attributes | |
char | m_data [DIM] |
Related Functions | |
(Note that these are not member functions.) | |
ostream & | operator<< (ostream &os, const CTBcstring< DIM > &obj) |
istream & | operator>> (istream &is, CTBcstring< DIM > &obj) |
Definition at line 17 of file CTBcstring.hxx.
|
Default constructor.
Definition at line 29 of file CTBcstring.icc. |
|
Construct from string.
Definition at line 38 of file CTBcstring.icc. |
|
Construct from substring.
Definition at line 47 of file CTBcstring.icc. |
|
Copy constructor.
Definition at line 56 of file CTBcstring.icc. |
|
Returns size of string.
Definition at line 65 of file CTBcstring.icc. |
|
Returns length of string.
Definition at line 74 of file CTBcstring.icc. Referenced by CTBsystem::ExpandFilename().
|
|
Copy string.
Definition at line 83 of file CTBcstring.icc. Referenced by operator=().
|
|
Append string.
Definition at line 94 of file CTBcstring.icc. Referenced by operator+=().
|
|
Trim leading and trailing white space.
Definition at line 105 of file CTBcstring.icc. |
|
Convert all characters to uppercase.
Definition at line 115 of file CTBcstring.icc. |
|
Convert all characters to lowercase.
Definition at line 125 of file CTBcstring.icc. |
|
Convert string to
Definition at line 135 of file CTBcstring.icc. |
|
Convert string to
Definition at line 144 of file CTBcstring.icc. |
|
Convert string to
Definition at line 153 of file CTBcstring.icc. |
|
Convert string to
Definition at line 162 of file CTBcstring.icc. |
|
Convert string to
Definition at line 171 of file CTBcstring.icc. |
|
Convert string to
Definition at line 180 of file CTBcstring.icc. |
|
Locate character.
Definition at line 189 of file CTBcstring.icc. |
|
Returns number of fields.
Definition at line 198 of file CTBcstring.icc. |
|
Copy a field.
Definition at line 207 of file CTBcstring.icc. Referenced by CTBsystem::ExpandFilename().
|
|
Read line from stream.
Definition at line 217 of file CTBcstring.icc. |
|
Read from stream.
Definition at line 226 of file CTBcstring.icc. |
|
Access character.
Definition at line 235 of file CTBcstring.icc. |
|
Constant access character.
Definition at line 244 of file CTBcstring.icc. |
|
Convert to pointer.
Definition at line 253 of file CTBcstring.icc. |
|
Constant convert to pointer.
Definition at line 261 of file CTBcstring.icc. |
|
Returns
Definition at line 270 of file CTBcstring.icc. |
|
Copy string.
Definition at line 279 of file CTBcstring.icc. |
|
Append string.
Definition at line 289 of file CTBcstring.icc. |
|
ostream insertion.
Definition at line 302 of file CTBcstring.icc. |
|
istream extraction.
Definition at line 315 of file CTBcstring.icc. |
|
Definition at line 69 of file CTBcstring.hxx. |