Cstring Class Reference

#include <cstring.h>

Public Member Functions

 Cstring (int i, char *use_me)
 Cstring ()
 Cstring (const char *copy_me)
 Cstring (const Cstring &S)
 ~Cstring ()
void destroy ()
CS_BOOL extend (const char *)
CS_BOOL extend (Cstring &S)
Cstring operator+ (const Cstring &S) const
Cstring operator+ (const char *s) const
Cstringoperator= (const Cstring &S)
Cstringoperator= (const char *c)
CS_BOOL operator== (const Cstring &S) const
CS_BOOL operator== (const char *s) const
CS_BOOL operator< (const char *s) const
CS_BOOL operator< (const Cstring &S) const
CS_BOOL operator> (const char *s) const
CS_BOOL operator> (const Cstring &S) const
const char * get () const
char * get_copy () const
int getLen () const
void set (const Cstring &S)
void set (const char *s)
void use (char *s)
int invariant ()
int empty ()

Protected Member Functions

int prefix_compare (const char *s, int &slen) const
int prefix_compare (const Cstring &S, int &slen) const

Protected Attributes

int len
char * str

Friends

ostream & operator<< (ostream &os, const Cstring &S)

Detailed Description

Definition at line 64 of file cstring.h.


Constructor & Destructor Documentation

Cstring::Cstring ( int  i,
char *  use_me 
) [inline]

Definition at line 78 of file cstring.h.

References use().

Cstring::Cstring (  )  [inline]

Definition at line 79 of file cstring.h.

Cstring::Cstring ( const char *  copy_me  )  [inline]

Definition at line 80 of file cstring.h.

Cstring::Cstring ( const Cstring S  )  [inline]

Definition at line 81 of file cstring.h.

Cstring::~Cstring (  )  [inline]

Definition at line 82 of file cstring.h.

References destroy().


Member Function Documentation

void Cstring::destroy (  )  [inline]

Definition at line 83 of file cstring.h.

References len, and str.

Referenced by ~Cstring().

int Cstring::empty (  )  [inline]

Definition at line 111 of file cstring.h.

References len.

CS_BOOL Cstring::extend ( Cstring S  )  [inline]

Definition at line 86 of file cstring.h.

References extend(), and str.

Referenced by extend().

CS_BOOL Cstring::extend ( const char *   ) 
const char* Cstring::get (  )  const [inline]

Definition at line 98 of file cstring.h.

References str.

char* Cstring::get_copy (  )  const
int Cstring::getLen (  )  const [inline]

Definition at line 100 of file cstring.h.

References len.

int Cstring::invariant (  )  [inline]

Definition at line 108 of file cstring.h.

References len, and str.

Referenced by set().

Cstring Cstring::operator+ ( const char *  s  )  const
Cstring Cstring::operator+ ( const Cstring S  )  const
CS_BOOL Cstring::operator< ( const Cstring S  )  const [inline]

Definition at line 94 of file cstring.h.

References str.

CS_BOOL Cstring::operator< ( const char *  s  )  const
Cstring& Cstring::operator= ( const char *  c  ) 
Cstring& Cstring::operator= ( const Cstring S  ) 
int Cstring::operator== ( const char *  s  )  const

Definition at line 173 of file cstring.h.

References CS_TRUE, len, and str.

CS_BOOL Cstring::operator== ( const Cstring S  )  const [inline]

Definition at line 91 of file cstring.h.

References str.

CS_BOOL Cstring::operator> ( const Cstring S  )  const [inline]

Definition at line 96 of file cstring.h.

References str.

CS_BOOL Cstring::operator> ( const char *  s  )  const
int Cstring::prefix_compare ( const Cstring S,
int &  slen 
) const [inline, protected]

Definition at line 117 of file cstring.h.

References prefix_compare(), and str.

Referenced by prefix_compare().

int Cstring::prefix_compare ( const char *  s,
int &  slen 
) const [protected]

Definition at line 186 of file cstring.h.

References len, and str.

void Cstring::set ( const char *  s  ) 

Definition at line 149 of file cstring.h.

References invariant(), len, str, and VALID.

void Cstring::set ( const Cstring S  ) 

Definition at line 143 of file cstring.h.

References str.

void Cstring::use ( char *  s  ) 

Definition at line 122 of file cstring.h.

References len, and str.

Referenced by Cstring().


Friends And Related Function Documentation

ostream& operator<< ( ostream &  os,
const Cstring S 
) [friend]

Definition at line 67 of file cstring.h.


Field Documentation

int Cstring::len [protected]

Definition at line 114 of file cstring.h.

Referenced by destroy(), empty(), getLen(), invariant(), operator==(), prefix_compare(), set(), and use().

char* Cstring::str [protected]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1