Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBcstringBase Class Reference

Generic string handling functions. **. More...

#include "CTBcstringBase.hxx"

List of all members.

Static Public Methods

void Copy (char *c_dst, CTBint i_size, const char *c_src)
void Copy (char *c_dst, CTBint i_size, const char *c_src, CTBint i_offset, CTBint i_length)
void Append (char *c_dst, CTBint i_size, const char *c_src)
void Append (char *c_dst, CTBint i_size, const char *c_src, CTBint i_offset=0, CTBint i_length=-1)
void Trim (char *c_dst, CTBint i_size)
void Toupper (char *c_dst, CTBint i_size)
void Tolower (char *c_dst, CTBint i_size)
bool Get (const char *c_src, CTBint i_size, long &i_val, int i_base=0)
bool Get (const char *c_src, CTBint i_size, unsigned long &i_val, int i_base=0)
bool Get (const char *c_src, CTBint i_size, int &i_val, int i_base=0)
bool Get (const char *c_src, CTBint i_size, unsigned int &i_val, int i_base=0)
bool Get (const char *c_src, CTBint i_size, double &d_val)
bool Get (const char *c_src, CTBint i_size, float &f_val)
CTBint Locate (const char *c_src, CTBint i_size, char c_char)
int NField (const char *c_src, CTBint i_size, const char *c_delim)
bool LocateField (const char *c_src, CTBint i_size, CTBint &i_foffset, CTBint &i_flength, CTBint i_ind, const char *c_delim)
bool CopyField (char *c_dst, CTBint i_size, const char *c_src, CTBint i_ind, const char *c_delim)
bool InSet (char c, const char *c_set)
bool GetLine (char *c_dst, CTBint i_size, istream &is)
bool FromStream (char *c_dst, CTBint i_size, istream &is)


Detailed Description

Generic string handling functions. **.

Definition at line 16 of file CTBcstringBase.hxx.


Member Function Documentation

void CTBcstringBase::Copy char * c_dst,
CTBint i_size,
const char * c_src
[static]
 

Copy string.

Definition at line 34 of file CTBcstringBase.cxx.

Referenced by CTBcstring::CTBcstring(), CTBcstring::Copy(), CopyField(), and CTBsystem::ExpandFilename().

void CTBcstringBase::Copy char * c_dst,
CTBint i_size,
const char * c_src,
CTBint i_offset,
CTBint i_length
[static]
 

Copy substring.

Definition at line 51 of file CTBcstringBase.cxx.

void CTBcstringBase::Append char * c_dst,
CTBint i_size,
const char * c_src
[static]
 

Append string.

Definition at line 69 of file CTBcstringBase.cxx.

Referenced by CTBcstring::Append().

void CTBcstringBase::Append char * c_dst,
CTBint i_size,
const char * c_src,
CTBint i_offset = 0,
CTBint i_length = -1
[static]
 

Append substring.

Definition at line 85 of file CTBcstringBase.cxx.

void CTBcstringBase::Trim char * c_dst,
CTBint i_size
[static]
 

Trim string.

Definition at line 105 of file CTBcstringBase.cxx.

Referenced by CTBcstring::Trim().

void CTBcstringBase::Toupper char * c_dst,
CTBint i_size
[static]
 

Convert all characters to uppercase.

Definition at line 144 of file CTBcstringBase.cxx.

Referenced by CTBcstring::Toupper().

void CTBcstringBase::Tolower char * c_dst,
CTBint i_size
[static]
 

Convert all characters to lowercase.

Definition at line 159 of file CTBcstringBase.cxx.

Referenced by CTBcstring::Tolower().

bool CTBcstringBase::Get const char * c_src,
CTBint i_size,
long & i_val,
int i_base = 0
[static]
 

Convert string to long integer.

The string starting at c_src is converted to a long integer according to the base i_base. If i_size is < 0 it is assumed that c_src points to a zero-terminated string. If i_size >=0 only the substring with i_size characters starting at c_src is considered.

If the conversion succeeds the result is stored in i_val and a true is returned. If it fails, i_val is unchanged and a false is returned.
Note, that a null (c_src = 0) or an empty (i_size = 0) string converts successfully an results into a value of 0.

Definition at line 222 of file CTBcstringBase.cxx.

Referenced by CTBstring::Get(), Get(), and CTBcstring::Get().

bool CTBcstringBase::Get const char * c_src,
CTBint i_size,
unsigned long & i_val,
int i_base = 0
[static]
 

Convert string to unsigned long integer.

Definition at line 257 of file CTBcstringBase.cxx.

bool CTBcstringBase::Get const char * c_src,
CTBint i_size,
int & i_val,
int i_base = 0
[static]
 

Convert string to int integer.

Definition at line 292 of file CTBcstringBase.cxx.

bool CTBcstringBase::Get const char * c_src,
CTBint i_size,
unsigned int & i_val,
int i_base = 0
[static]
 

Convert string to unsigned int integer.

Definition at line 309 of file CTBcstringBase.cxx.

bool CTBcstringBase::Get const char * c_src,
CTBint i_size,
double & d_val
[static]
 

Convert string to double floating point number.

Definition at line 326 of file CTBcstringBase.cxx.

bool CTBcstringBase::Get const char * c_src,
CTBint i_size,
float & f_val
[static]
 

Convert string to float floating point number.

Definition at line 360 of file CTBcstringBase.cxx.

CTBint CTBcstringBase::Locate const char * c_src,
CTBint i_size,
char c_char
[static]
 

Locate character.

Definition at line 376 of file CTBcstringBase.cxx.

Referenced by CTBcstring::Locate().

int CTBcstringBase::NField const char * c_src,
CTBint i_size,
const char * c_delim
[static]
 

Number of fields in string.

Definition at line 389 of file CTBcstringBase.cxx.

Referenced by CTBsystem::ExpandFilename(), and CTBcstring::NField().

bool CTBcstringBase::LocateField const char * c_src,
CTBint i_size,
CTBint & i_foffset,
CTBint & i_flength,
CTBint i_ind,
const char * c_delim
[static]
 

Locate field.

Definition at line 448 of file CTBcstringBase.cxx.

Referenced by CopyField().

bool CTBcstringBase::CopyField char * c_dst,
CTBint i_size,
const char * c_src,
CTBint i_ind,
const char * c_delim
[static]
 

Copy field.

Definition at line 541 of file CTBcstringBase.cxx.

Referenced by CTBcstring::CopyField().

bool CTBcstringBase::InSet char c,
const char * c_set
[inline, static]
 

Returns true if character c is in set c_set.

Definition at line 17 of file CTBcstringBase.icc.

bool CTBcstringBase::GetLine char * c_dst,
CTBint i_size,
istream & is
[static]
 

Read line from stream.

Definition at line 561 of file CTBcstringBase.cxx.

Referenced by CTBcstring::GetLine().

bool CTBcstringBase::FromStream char * c_dst,
CTBint i_size,
istream & is
[static]
 

Read from stream.

Definition at line 576 of file CTBcstringBase.cxx.

Referenced by CTBcstring::FromStream().


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:13:35 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001