STRING Class Reference

#include <strngs.h>

List of all members.

Classes

struct  STRING_HEADER

Public Member Functions

void add_str_int (const char *str, int number)
BOOL8 contains (const char c) const
bool DeSerialize (bool swap, FILE *fp)
void ensure (inT32 min_capacity)
inT32 length () const
BOOL8 operator!= (const char *string) const
BOOL8 operator!= (const STRING &string) const
STRING operator+ (const char ch) const
STRING operator+ (const STRING &string) const
STRINGoperator+= (const char ch)
STRINGoperator+= (const STRING &string)
STRINGoperator+= (const char *string)
STRINGoperator= (const STRING &string)
STRINGoperator= (const char *string)
BOOL8 operator== (const STRING &string) const
char & operator[] (inT32 index) const
bool Serialize (FILE *fp) const
inT32 size () const
void split (const char c, GenericVector< STRING > *splited)
const char * string () const
 STRING (const char *string)
 STRING (const STRING &string)
 STRING ()
void truncate_at (inT32 index)
 ~STRING ()

Private Types

typedef struct
STRING::STRING_HEADER 
STRING_HEADER

Private Member Functions

char * AllocData (int used, int capacity)
void DiscardData ()
char * ensure_cstr (inT32 min_capacity)
void FixHeader () const
const char * GetCStr () const
char * GetCStr ()
const STRING_HEADERGetHeader () const
STRING_HEADERGetHeader ()
bool InvariantOk () const

Private Attributes

STRING_HEADERdata_

Detailed Description

Definition at line 40 of file strngs.h.


Member Typedef Documentation

typedef struct STRING::STRING_HEADER STRING::STRING_HEADER [private]

Constructor & Destructor Documentation

STRING::STRING (  ) 
STRING::STRING ( const STRING string  ) 
STRING::STRING ( const char *  string  ) 
STRING::~STRING (  ) 

Member Function Documentation

void STRING::add_str_int ( const char *  str,
int  number 
)
char* STRING::AllocData ( int  used,
int  capacity 
) [private]
BOOL8 STRING::contains ( const char  c  )  const
bool STRING::DeSerialize ( bool  swap,
FILE *  fp 
)
void STRING::DiscardData (  )  [private]
void STRING::ensure ( inT32  min_capacity  )  [inline]

Definition at line 91 of file strngs.h.

char* STRING::ensure_cstr ( inT32  min_capacity  )  [private]
void STRING::FixHeader (  )  const [private]
const char* STRING::GetCStr (  )  const [inline, private]

Definition at line 131 of file strngs.h.

char* STRING::GetCStr (  )  [inline, private]

Definition at line 127 of file strngs.h.

const STRING_HEADER* STRING::GetHeader (  )  const [inline, private]

Definition at line 122 of file strngs.h.

STRING_HEADER* STRING::GetHeader (  )  [inline, private]

Definition at line 119 of file strngs.h.

bool STRING::InvariantOk (  )  const [inline, private]

Definition at line 134 of file strngs.h.

inT32 STRING::length (  )  const
BOOL8 STRING::operator!= ( const char *  string  )  const
BOOL8 STRING::operator!= ( const STRING string  )  const
STRING STRING::operator+ ( const char  ch  )  const
STRING STRING::operator+ ( const STRING string  )  const
STRING& STRING::operator+= ( const char  ch  ) 
STRING& STRING::operator+= ( const STRING string  ) 
STRING& STRING::operator+= ( const char *  string  ) 
STRING& STRING::operator= ( const STRING string  ) 
STRING& STRING::operator= ( const char *  string  ) 
BOOL8 STRING::operator== ( const STRING string  )  const
char& STRING::operator[] ( inT32  index  )  const
bool STRING::Serialize ( FILE *  fp  )  const
inT32 STRING::size (  )  const [inline]

Definition at line 56 of file strngs.h.

void STRING::split ( const char  c,
GenericVector< STRING > *  splited 
)
const char* STRING::string (  )  const
void STRING::truncate_at ( inT32  index  ) 

Member Data Documentation

Definition at line 116 of file strngs.h.


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


cob_tesseract
Author(s): Richard Bormann
autogenerated on Fri Jan 11 12:14:47 2013