ARB
Public Member Functions | List of all members
TextRef Class Reference

Public Member Functions

 TextRef ()
 
 TextRef (const char *data_, int length_)
 
 TextRef (const char *zeroTerminated)
 
bool defined () const
 
const charget_data () const
 
int get_length () const
 
const charget_following () const
 
int compare (const char *str) const
 
int icompare (const char *str) const
 
charcopy () const
 
char head () const
 
char tail () const
 
TextRef headTrimmed () const
 
TextRef tailTrimmed () const
 
TextRef trimmed () const
 
TextRef partBefore (const TextRef &subref) const
 
TextRef partBehind (const TextRef &subref) const
 
bool is_part_of (const TextRef &other) const
 
const charfind (char c) const
 

Detailed Description

Definition at line 403 of file adstring.cxx.

Constructor & Destructor Documentation

TextRef::TextRef ( )
inline

Definition at line 408 of file adstring.cxx.

Referenced by headTrimmed(), partBefore(), partBehind(), and tailTrimmed().

TextRef::TextRef ( const char data_,
int  length_ 
)
inline

Definition at line 409 of file adstring.cxx.

TextRef::TextRef ( const char zeroTerminated)
inlineexplicit

Definition at line 410 of file adstring.cxx.

Member Function Documentation

bool TextRef::defined ( ) const
inline
const char* TextRef::get_data ( ) const
inline

Definition at line 413 of file adstring.cxx.

Referenced by compare(), copy(), find(), icompare(), is_part_of(), partBefore(), and textBetween().

int TextRef::get_length ( ) const
inline

Definition at line 414 of file adstring.cxx.

Referenced by compare(), copy(), find(), and icompare().

const char* TextRef::get_following ( ) const
inline

Definition at line 416 of file adstring.cxx.

References NULp.

Referenced by is_part_of(), partBehind(), and textBetween().

int TextRef::compare ( const char str) const
inline

Definition at line 418 of file adstring.cxx.

References cmp, defined(), gb_assert, get_data(), and get_length().

int TextRef::icompare ( const char str) const
inline

Definition at line 428 of file adstring.cxx.

References cmp, defined(), gb_assert, get_data(), and get_length().

Referenced by GB_read_as_tagged_string().

char* TextRef::copy ( ) const
inline
char TextRef::head ( ) const
inline

Definition at line 440 of file adstring.cxx.

References defined().

char TextRef::tail ( ) const
inline

Definition at line 441 of file adstring.cxx.

References defined().

TextRef TextRef::headTrimmed ( ) const
inline

Definition at line 443 of file adstring.cxx.

References defined(), s, and TextRef().

Referenced by trimmed().

TextRef TextRef::tailTrimmed ( ) const
inline

Definition at line 453 of file adstring.cxx.

References defined(), s, and TextRef().

Referenced by trimmed().

TextRef TextRef::trimmed ( ) const
inline

Definition at line 464 of file adstring.cxx.

References headTrimmed(), and tailTrimmed().

TextRef TextRef::partBefore ( const TextRef subref) const
inline

Definition at line 489 of file adstring.cxx.

References gb_assert, get_data(), is_part_of(), textBetween(), and TextRef().

TextRef TextRef::partBehind ( const TextRef subref) const
inline

Definition at line 493 of file adstring.cxx.

References gb_assert, get_following(), is_part_of(), and TextRef().

bool TextRef::is_part_of ( const TextRef other) const
inline

Definition at line 471 of file adstring.cxx.

References defined(), gb_assert, get_data(), and get_following().

Referenced by partBefore(), and partBehind().

const char* TextRef::find ( char  c) const
inline

Definition at line 476 of file adstring.cxx.

References get_data(), and get_length().


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