 
 
	 
In file ../include/EST_String.h:
| class EST_String | 
A non-copyleft implementation of a string class to use with compilers that aren't GNU C++.
| ![[more]](icon1.gif) static   const char* | version Global version string | ||
| ![[more]](icon1.gif) static   const EST_String | Empty Constant empty string | ||
| ![[more]](icon1.gif)  | Split a string into parts. 
 | 
| ![[more]](icon1.gif)  | EST_String (void) Construct an empty string | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | EST_String (const char* s) Construct from char * | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | EST_String (const char* s, int start_or_fill, int len) Construct from part of char * or fill with given character | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | EST_String (const char* s, int s_size, int start, int len) Construct from C string | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | EST_String (const EST_String &s) Copy constructor We have to declare our own copy constructor to lie to the compier about the constness of the RHS | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | EST_String (const char c) Construct from single char. | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | ~EST_String () Destructor | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) int | length (void) const Length of string (not length of underlying chunk) | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) int | space (void) const Size of underlying chunk | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) const char* | str (void) const Get a const-pointer to the actual memory | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) char* | updatable_str (void) Get a writable pointer to the actual memory | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) static   EST_String | FromChar (const char c) Build string from a single character | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) static   EST_String | Number (int i, int base=10) Build string from an integer | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) static   EST_String | Number (long i, int base=10) Build string from a long integer | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) static   EST_String | Number (double d) Build string from a double | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) static   EST_String | Number (float f) Build string from a float | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) int | Int (bool &ok) const Convert to an integer | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) long | Long (bool &ok) const Convert to a long | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) float | Float (bool &ok) const Convert to a float | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) double | Double (bool &ok) const Convert to a double | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Before 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | At 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | After 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Search for something 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Get position of something 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Does string contain something? 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Does string exactly match? 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Global replacement 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Frequency counts 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Quoting 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Operators 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | String comparison. 
 | ||||||||||||||||||||||||||||||||
| ![[more]](icon1.gif) static   EST_String | cat (const EST_String s1, const EST_String s2 = Empty, const EST_String s3 = Empty, const EST_String s4 = Empty, const EST_String s5 = Empty, const EST_String s6 = Empty, const EST_String s7 = Empty, const EST_String s8 = Empty, const EST_String s9 = Empty ) Concatenate a number of strings. | 
| ![[more]](icon1.gif) typedef  int | EST_string_size Type of string size field | 
| ![[more]](icon1.gif) #define | MAX_STRING_SIZE (INT_MAX) Maximum string size | 
A non-copyleft implementation of a string class to use with compilers that aren't GNU C++.Strings are reference-counted and reasonably efficiant (eg you can pass them around, into and out of functions and so on without worrying too much about the cost).
The associated class EST_Regex can be used to represent regular expressions.
 static   const char* version
static   const char* version
 static   const EST_String Empty
static   const EST_String Empty
 typedef  int EST_string_size
typedef  int EST_string_size
 #define MAX_STRING_SIZE(INT_MAX)
#define MAX_STRING_SIZE(INT_MAX)
 int locate(const char* it, int len, int from, int &start, int &end) const
int locate(const char* it, int len, int from, int &start, int &end) const 
 int locate(const EST_String &s, int from, int &start, int &end) const
int locate(const EST_String &s, int from, int &start, int &end) const 
 int locate(EST_Regex &ex, int from, int &start, int &end, int* starts=NULL, int* ends=NULL) const
int locate(EST_Regex &ex, int from, int &start, int &end, int* starts=NULL, int* ends=NULL) const 
 EST_String chop_internal(const char* s, int length, int pos, EST_chop_direction directionult) const
EST_String chop_internal(const char* s, int length, int pos, EST_chop_direction directionult) const 
 EST_String chop_internal(int pos, int length, EST_chop_direction directionult) const
EST_String chop_internal(int pos, int length, EST_chop_direction directionult) const 
 EST_String chop_internal(EST_Regex &ex, int pos, EST_chop_direction directionult) const
EST_String chop_internal(EST_Regex &ex, int pos, EST_chop_direction directionult) const 
 EST_String(void)
 EST_String(void)
 EST_String(const char* s)
 EST_String(const char* s)
 EST_String(const char* s, int start_or_fill, int len)
 EST_String(const char* s, int start_or_fill, int len)
 EST_String(const char* s, int s_size, int start, int len)
 EST_String(const char* s, int s_size, int start, int len)
 EST_String(const EST_String &s)
 EST_String(const EST_String &s)
 EST_String(const char c)
 EST_String(const char c)
 ~EST_String()
 ~EST_String()
 int length(void) const
int length(void) const 
 int space(void) const
int space(void) const 
 const char* str(void) const
const char* str(void) const 
 char* updatable_str(void)
char* updatable_str(void)
 static   EST_String FromChar(const char c)
static   EST_String FromChar(const char c)
 static   EST_String Number(int i, int base=10)
static   EST_String Number(int i, int base=10)
 static   EST_String Number(long i, int base=10)
static   EST_String Number(long i, int base=10)
 static   EST_String Number(double d)
static   EST_String Number(double d)
 static   EST_String Number(float f)
static   EST_String Number(float f)
 int Int(bool &ok) const
int Int(bool &ok) const 
 long Long(bool &ok) const
long Long(bool &ok) const 
 float Float(bool &ok) const
float Float(bool &ok) const 
 double Double(bool &ok) const
double Double(bool &ok) const 
 Before
 Before 
 EST_String before(int pos, int len=0) const
EST_String before(int pos, int len=0) const 
 EST_String before(const char* s, int pos=0) const
EST_String before(const char* s, int pos=0) const 
 EST_String before(const EST_String &s, int pos=0) const
EST_String before(const EST_String &s, int pos=0) const 
 EST_String before(EST_Regex &e, int pos=0) const
EST_String before(EST_Regex &e, int pos=0) const 
 At
 At 
 EST_String at(int from, int len=0) const
EST_String at(int from, int len=0) const 
 EST_String at(const char* s, int pos=0) const
EST_String at(const char* s, int pos=0) const 
 EST_String at(const EST_String &s, int pos=0) const
EST_String at(const EST_String &s, int pos=0) const 
 EST_String at(EST_Regex &e, int pos=0) const
EST_String at(EST_Regex &e, int pos=0) const 
 After
 After 
 EST_String after(int pos, int len=1) const
EST_String after(int pos, int len=1) const 
 EST_String after(const char* s, int pos=0) const
EST_String after(const char* s, int pos=0) const 
 EST_String after(const EST_String &s, int pos=0) const
EST_String after(const EST_String &s, int pos=0) const 
 EST_String after(EST_Regex &e, int pos=0) const
EST_String after(EST_Regex &e, int pos=0) const 
 Search for something
 Search for something 
 int search(const char* s, int len, int &mlen, int pos=0) const
int search(const char* s, int len, int &mlen, int pos=0) const 
 int search(const EST_String s, int &mlen, int pos=0) const
int search(const EST_String s, int &mlen, int pos=0) const 
 int search(EST_Regex &re, int &mlen, int pos=0, int* starts=NULL, int* ends=NULL) const
int search(EST_Regex &re, int &mlen, int pos=0, int* starts=NULL, int* ends=NULL) const 
 Get position of something
 Get position of something 
 int index(const char* s, int pos=0) const
int index(const char* s, int pos=0) const 
 int index(const EST_String &s, int pos=0) const
int index(const EST_String &s, int pos=0) const 
 int index(EST_Regex &ex, int pos=0) const
int index(EST_Regex &ex, int pos=0) const 
 Does string contain something?
 Does string contain something? 
 int contains(const char* s, int pos=-1) const
int contains(const char* s, int pos=-1) const 
 int contains(const EST_String &s, int pos=-1) const
int contains(const EST_String &s, int pos=-1) const 
 int contains(const char c, int pos=-1) const
int contains(const char c, int pos=-1) const 
 int contains(EST_Regex &ex, int pos=-1) const
int contains(EST_Regex &ex, int pos=-1) const 
 Does string exactly match?
 Does string exactly match? 
 int matches(const char* e, int pos=0) const
int matches(const char* e, int pos=0) const 
 int matches(const EST_String &e, int pos=0) const
int matches(const EST_String &e, int pos=0) const 
 int matches(EST_Regex &e, int pos=0, int* starts=NULL, int* ends=NULL) const
int matches(EST_Regex &e, int pos=0, int* starts=NULL, int* ends=NULL) const 
 Global replacement
 Global replacement 
 int gsub(const char* os, const EST_String &s)
int gsub(const char* os, const EST_String &s)
 int gsub(const char* os, const char* s)
int gsub(const char* os, const char* s)
 int gsub(const EST_String &os, const EST_String &s)
int gsub(const EST_String &os, const EST_String &s)
 int gsub(const EST_String &os, const char* s)
int gsub(const EST_String &os, const char* s)
 int gsub(EST_Regex &ex, const EST_String &s)
int gsub(EST_Regex &ex, const EST_String &s)
 int gsub(EST_Regex &ex, const char* s)
int gsub(EST_Regex &ex, const char* s)
 int gsub(EST_Regex &ex, int bracket_num)
int gsub(EST_Regex &ex, int bracket_num)
 int subst(EST_String source, int (&starts)[EST_Regex_max_subexpressions], int (&ends)[EST_Regex_max_subexpressions])
int subst(EST_String source, int (&starts)[EST_Regex_max_subexpressions], int (&ends)[EST_Regex_max_subexpressions])
 Frequency counts
 Frequency counts 
 int freq(const char* s) const
int freq(const char* s) const 
 int freq(const EST_String &s) const
int freq(const EST_String &s) const 
 int freq(EST_Regex &s) const
int freq(EST_Regex &s) const 
 Quoting
 Quoting 
 EST_String quote(const char quotec) const
EST_String quote(const char quotec) const 
 EST_String quote_if_needed(const char quotec) const
EST_String quote_if_needed(const char quotec) const 
 EST_String unquote(const char quotec) const
EST_String unquote(const char quotec) const 
 EST_String unquote_if_needed(const char quotec) const
EST_String unquote_if_needed(const char quotec) const 
 Operators
 Operators 
 const char operator () (int i) const
const char operator () (int i) const 
 char& operator [] (int i)
char& operator [] (int i)
 operator const char*() const
 operator const char*() const 
 operator char*()
 operator char*()
 Add to end of string.
 Add to end of string. 
 EST_String& operator += (const char* b)
EST_String& operator += (const char* b)
 EST_String& operator += (const EST_String b)
EST_String& operator += (const EST_String b)
 Asignment
 Asignment 
 EST_String& operator = (const char* str)
EST_String& operator = (const char* str)
 EST_String& operator = (const char c)
EST_String& operator = (const char c)
 EST_String& operator = (const EST_String &s)
EST_String& operator = (const EST_String &s)
 Concatenation
 Concatenation 
 relational operators
 relational operators 
 String comparison.
 String comparison.
 return compare(b, a)
return compare(b, a)
 Case folded comparison.
 Case folded comparison.
The table argument can defined how upper and lower case characters correspond. The default works for ASCII.
 const EST_String& table return fcompare(a, b, (const unsigned char* )(const char* )table)
const EST_String& table return fcompare(a, b, (const unsigned char* )(const char* )table)
 Split a string into parts.
 Split a string into parts.
 int max
int max
 static   EST_String cat(const EST_String s1, const EST_String s2 = Empty, const EST_String s3 = Empty, const EST_String s4 = Empty, const EST_String s5 = Empty, const EST_String s6 = Empty, const EST_String s7 = Empty, const EST_String s8 = Empty, const EST_String s9 = Empty )
static   EST_String cat(const EST_String s1, const EST_String s2 = Empty, const EST_String s3 = Empty, const EST_String s4 = Empty, const EST_String s5 = Empty, const EST_String s6 = Empty, const EST_String s7 = Empty, const EST_String s8 = Empty, const EST_String s9 = Empty )
 
Alphabetic index HTML hierarchy of classes or Java
 
This page is part of the 
Edinburgh Speech Tools Library documentation
Copyright  University of Edinburgh 1997
Contact:  
         speech_tools@cstr.ed.ac.uk