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++.
![]() | version Global version string | ||
![]() | Empty Constant empty string | ||
![]() | Split a string into parts.
|
![]() | EST_String (void) Construct an empty string | ||||||||||||||||||||||||||||||||
![]() | EST_String (const char* s) Construct from char * | ||||||||||||||||||||||||||||||||
![]() | EST_String (const char* s, int start_or_fill, int len) Construct from part of char * or fill with given character | ||||||||||||||||||||||||||||||||
![]() | EST_String (const char* s, int s_size, int start, int len) Construct from C string | ||||||||||||||||||||||||||||||||
![]() | 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 | ||||||||||||||||||||||||||||||||
![]() | EST_String (const char c) Construct from single char. | ||||||||||||||||||||||||||||||||
![]() | ~EST_String () Destructor | ||||||||||||||||||||||||||||||||
![]() | length (void) const Length of string (not length of underlying chunk) | ||||||||||||||||||||||||||||||||
![]() | space (void) const Size of underlying chunk | ||||||||||||||||||||||||||||||||
![]() | str (void) const Get a const-pointer to the actual memory | ||||||||||||||||||||||||||||||||
![]() | updatable_str (void) Get a writable pointer to the actual memory | ||||||||||||||||||||||||||||||||
![]() | FromChar (const char c) Build string from a single character | ||||||||||||||||||||||||||||||||
![]() | Number (int i, int base=10) Build string from an integer | ||||||||||||||||||||||||||||||||
![]() | Number (long i, int base=10) Build string from a long integer | ||||||||||||||||||||||||||||||||
![]() | Number (double d) Build string from a double | ||||||||||||||||||||||||||||||||
![]() | Number (float f) Build string from a float | ||||||||||||||||||||||||||||||||
![]() | Int (bool &ok) const Convert to an integer | ||||||||||||||||||||||||||||||||
![]() | Long (bool &ok) const Convert to a long | ||||||||||||||||||||||||||||||||
![]() | Float (bool &ok) const Convert to a float | ||||||||||||||||||||||||||||||||
![]() | Double (bool &ok) const Convert to a double | ||||||||||||||||||||||||||||||||
![]() | Before
| ||||||||||||||||||||||||||||||||
![]() | At
| ||||||||||||||||||||||||||||||||
![]() | After
| ||||||||||||||||||||||||||||||||
![]() | Search for something
| ||||||||||||||||||||||||||||||||
![]() | Get position of something
| ||||||||||||||||||||||||||||||||
![]() | Does string contain something?
| ||||||||||||||||||||||||||||||||
![]() | Does string exactly match?
| ||||||||||||||||||||||||||||||||
![]() | Global replacement
| ||||||||||||||||||||||||||||||||
![]() | Frequency counts
| ||||||||||||||||||||||||||||||||
![]() | Quoting
| ||||||||||||||||||||||||||||||||
![]() | Operators
| ||||||||||||||||||||||||||||||||
![]() | String comparison.
| ||||||||||||||||||||||||||||||||
![]() | 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. |
![]() | EST_string_size Type of string size field |
![]() | 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.
The table argument can defined how upper and lower case characters correspond. The default works for ASCII.
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