Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

StrConst Class Reference

#include <String.h>

List of all members.


Public Members

 StrConst ()
 StrConst (const Char *s)
 operator const Char * () const
Bool operator== (StrConst s) const
Bool operator!= (StrConst s) const
Bool operator== (const Char *sc) const
Bool operator!= (const Char *sc) const
Bool IsNull () const
Int FindChar (Char c) const
find first occurrence of c.

Int FindCharLast (Char c) const
find last occurrence of c.

String SubString (Int start, Int length)
return substring of 'length' at 'start'.

String Prefix (Int length)
return prefix of 'length'.

String Suffix (Int length)
return suffix of 'length'.

Int Length () const
const CharCString () const

Protected Members

const ChartheString


Detailed Description

Definition at line 24 of file String.h.


Constructor & Destructor Documentation

StrConst::StrConst ()

Definition at line 27 of file String.h.

StrConst::StrConst (const Char * s)

Definition at line 29 of file String.h.


Member Function Documentation

const Char * StrConst::CString () const [inline]

Definition at line 59 of file String.h.

Int StrConst::FindChar (Char c) const

find first occurrence of c.

Definition at line 71 of file String.cc.

Int StrConst::FindCharLast (Char c) const

find last occurrence of c.

Definition at line 81 of file String.cc.

Bool StrConst::IsNull () const [inline]

Definition at line 44 of file String.h.

Int StrConst::Length () const [inline]

Definition at line 57 of file String.h.

String StrConst::Prefix (Int length)

return prefix of 'length'.

Definition at line 113 of file String.cc.

String StrConst::SubString (Int start, Int length)

return substring of 'length' at 'start'.

Definition at line 91 of file String.cc.

String StrConst::Suffix (Int length)

return suffix of 'length'.

Definition at line 130 of file String.cc.

StrConst::operator const Char * () const [inline]

Definition at line 31 of file String.h.

Bool StrConst::operator!= (const Char * sc) const [inline]

Definition at line 41 of file String.h.

Bool StrConst::operator!= (StrConst s) const [inline]

Definition at line 36 of file String.h.

Bool StrConst::operator== (const Char * sc) const [inline]

Definition at line 39 of file String.h.

Bool StrConst::operator== (StrConst s) const [inline]

Definition at line 34 of file String.h.


Member Data Documentation

const Char * StrConst::theString [protected]

Definition at line 63 of file String.h.


The documentation for this class was generated from the following files:
Generated at Sat Aug 5 00:16:34 2000 for Class Library by doxygen 1.1.0 written by Dimitri van Heesch, © 1997-2000