Edinburgh Speech Tools  2.1-release
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
EST_string_aux.h File Reference

Utility EST_String Functions header file. More...

#include "EST_TList.h"
#include "EST_String.h"
#include "EST_types.h"
#include "EST_rw_status.h"
Include dependency graph for EST_string_aux.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void StringtoStrList (EST_String s, EST_StrList &l, EST_String sep="")
 Convert a EST_String to a EST_StrList by separating tokens in s delimited by the separator sep. By default, the string is assumed to be delimited by whitespace. More...
 
void BracketStringtoStrList (EST_String s, EST_StrList &l, EST_String sep="")
 Convert a EST_String enclosed in a single set of brackets to a EST_StrList by separating tokens in s delimited by the separator sep. By default, the string is assumed to be delimited by whitespace.
 
EST_read_status load_StrList (EST_String filename, EST_StrList &l)
 Load tokens from a file and return them in a EST_StrList.
 
EST_write_status save_StrList (EST_String filename, EST_StrList &l, EST_String style="words")
 Save tokens from a EST_StrList. If style is set to "lines" each item is stored on a separate line, otherwise each item is separated by a single space.
 
void strip_quotes (EST_String &s, const EST_String quote_char="\"")
 remove quotes from a string
 
EST_String itoString (int n)
 Make a EST_String object from an integer.
 
EST_String ftoString (float n, int pres=3, int width=0, int l=0)
 Make a EST_String object from an float, with variable precision.
 
int Stringtoi (EST_String s)
 Make an int from a EST_String. EST_String equivalent of atoi()
 
int StrListtoIList (EST_StrList &s, EST_IList &il)
 Convert a list of strings to a list of integers.
 
int StrListtoFList (EST_StrList &s, EST_FList &il)
 Convert a list of strings to a list of floats.
 
void StrList_to_StrVector (EST_StrList &l, EST_StrVector &v)
 Convert a list of strings to a vector of strings.
 
void StrVector_to_StrList (EST_StrVector &v, EST_StrList &l)
 Convert a vector of strings to a list of strings.
 
int StrVector_index (const EST_StrVector &v, const EST_String &s)
 Search the vector and return the position of the first occurance of string s in the vector.
 
int strlist_member (const EST_StrList &l, const EST_String &s)
 Return true if s is in list l.
 
int strlist_index (const EST_StrList &l, const EST_String &s)
 Search the vector and return the position of the first occurance of string s in the list.
 
EST_String basename (EST_String full, EST_String ext="")
 This acts like the bourne shell basename command. By default, it strips any leading path from a string. If ext is defined, it strips any suffix matching this string.
 
void IList_to_IVector (EST_IList &l, EST_IVector &v)
 
void IVector_to_IList (EST_IVector &v, EST_IList &l)
 
int IVector_index (const EST_IVector &v, const int s)
 
int ilist_member (const EST_IList &l, int i)
 
int ilist_index (const EST_IList &l, int i)
 

Detailed Description

Utility EST_String Functions header file.

Definition in file EST_string_aux.h.