#include <strngs.h>
Public Member Functions | |
STRING () | |
STRING (const STRING &string) | |
STRING (const char *string) | |
STRING (const char *data, int length) | |
~STRING () | |
bool | Serialize (FILE *fp) const |
bool | DeSerialize (bool swap, FILE *fp) |
bool | Serialize (tesseract::TFile *fp) const |
bool | DeSerialize (bool swap, tesseract::TFile *fp) |
BOOL8 | contains (const char c) const |
inT32 | length () const |
inT32 | size () const |
const char * | string () const |
const char * | c_str () const |
char * | strdup () const |
char & | operator[] (inT32 index) const |
void | split (const char c, GenericVector< STRING > *splited) |
void | truncate_at (inT32 index) |
BOOL8 | operator== (const STRING &string) const |
BOOL8 | operator!= (const STRING &string) const |
BOOL8 | operator!= (const char *string) const |
STRING & | operator= (const char *string) |
STRING & | operator= (const STRING &string) |
STRING | operator+ (const STRING &string) const |
STRING | operator+ (const char ch) const |
STRING & | operator+= (const char *string) |
STRING & | operator+= (const STRING &string) |
STRING & | operator+= (const char ch) |
void | assign (const char *cstr, int len) |
void | add_str_int (const char *str, int number) |
void | add_str_double (const char *str, double number) |
void | ensure (inT32 min_capacity) |
STRING::STRING | ( | ) |
Definition at line 105 of file strngs.cpp.
STRING::STRING | ( | const STRING & | string | ) |
Definition at line 110 of file strngs.cpp.
STRING::STRING | ( | const char * | string | ) |
Definition at line 119 of file strngs.cpp.
STRING::STRING | ( | const char * | data, |
int | length | ||
) |
Definition at line 131 of file strngs.cpp.
STRING::~STRING | ( | ) |
Definition at line 142 of file strngs.cpp.
void STRING::add_str_double | ( | const char * | str, |
double | number | ||
) |
Definition at line 386 of file strngs.cpp.
void STRING::add_str_int | ( | const char * | str, |
int | number | ||
) |
Definition at line 376 of file strngs.cpp.
void STRING::assign | ( | const char * | cstr, |
int | len | ||
) |
Definition at line 417 of file strngs.cpp.
const char * STRING::c_str | ( | ) | const |
Definition at line 204 of file strngs.cpp.
BOOL8 STRING::contains | ( | const char | c | ) | const |
Definition at line 184 of file strngs.cpp.
bool STRING::DeSerialize | ( | bool | swap, |
FILE * | fp | ||
) |
Definition at line 163 of file strngs.cpp.
bool STRING::DeSerialize | ( | bool | swap, |
tesseract::TFile * | fp | ||
) |
Definition at line 174 of file strngs.cpp.
|
inline |
inT32 STRING::length | ( | ) | const |
Definition at line 188 of file strngs.cpp.
BOOL8 STRING::operator!= | ( | const STRING & | string | ) | const |
Definition at line 312 of file strngs.cpp.
BOOL8 STRING::operator!= | ( | const char * | string | ) | const |
Definition at line 324 of file strngs.cpp.
Definition at line 430 of file strngs.cpp.
STRING STRING::operator+ | ( | const char | ch | ) | const |
Definition at line 439 of file strngs.cpp.
STRING & STRING::operator+= | ( | const char * | string | ) |
Definition at line 459 of file strngs.cpp.
Definition at line 353 of file strngs.cpp.
STRING & STRING::operator+= | ( | const char | ch | ) |
Definition at line 484 of file strngs.cpp.
STRING & STRING::operator= | ( | const char * | string | ) |
Definition at line 396 of file strngs.cpp.
Definition at line 337 of file strngs.cpp.
Definition at line 300 of file strngs.cpp.
char & STRING::operator[] | ( | inT32 | index | ) | const |
Definition at line 273 of file strngs.cpp.
bool STRING::Serialize | ( | FILE * | fp | ) | const |
Definition at line 148 of file strngs.cpp.
bool STRING::Serialize | ( | tesseract::TFile * | fp | ) | const |
Definition at line 155 of file strngs.cpp.
void STRING::split | ( | const char | c, |
GenericVector< STRING > * | splited | ||
) |
Definition at line 281 of file strngs.cpp.
const char * STRING::string | ( | ) | const |
Definition at line 193 of file strngs.cpp.
void STRING::truncate_at | ( | inT32 | index | ) |
Definition at line 264 of file strngs.cpp.