Edinburgh Speech Tools  2.1-release
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. More...
 
EST_read_status load_StrList (EST_String filename, EST_StrList &l)
 Load tokens from a file and return them in a EST_StrList. More...
 
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. More...
 
void strip_quotes (EST_String &s, const EST_String quote_char="\"")
 remove quotes from a string More...
 
EST_String itoString (int n)
 Make a EST_String object from an integer. More...
 
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. More...
 
int Stringtoi (EST_String s)
 Make an int from a EST_String. EST_String equivalent of atoi() More...
 
int StrListtoIList (EST_StrList &s, EST_IList &il)
 Convert a list of strings to a list of integers. More...
 
int StrListtoFList (EST_StrList &s, EST_FList &il)
 Convert a list of strings to a list of floats. More...
 
void StrList_to_StrVector (EST_StrList &l, EST_StrVector &v)
 Convert a list of strings to a vector of strings. More...
 
void StrVector_to_StrList (EST_StrVector &v, EST_StrList &l)
 Convert a vector of strings to a list of strings. More...
 
long 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. More...
 
int strlist_member (const EST_StrList &l, const EST_String &s)
 Return true if s is in list l. More...
 
long 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. More...
 
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. More...
 
void IList_to_IVector (EST_IList &l, EST_IVector &v)
 
void IVector_to_IList (EST_IVector &v, EST_IList &l)
 
long int IVector_index (const EST_IVector &v, const int s)
 
int ilist_member (const EST_IList &l, int i)
 
long int ilist_index (const EST_IList &l, int i)
 

Detailed Description

Utility EST_String Functions header file.

Definition in file EST_string_aux.h.

Function Documentation

void IList_to_IVector ( EST_IList l,
EST_IVector v 
)

Definition at line 78 of file EST_ilist_aux.cc.

void IVector_to_IList ( EST_IVector v,
EST_IList l 
)

Definition at line 92 of file EST_ilist_aux.cc.

long int IVector_index ( const EST_IVector v,
const int  s 
)

Definition at line 101 of file EST_ilist_aux.cc.

int ilist_member ( const EST_IList l,
int  i 
)

Definition at line 53 of file EST_ilist_aux.cc.

long int ilist_index ( const EST_IList l,
int  i 
)

Definition at line 63 of file EST_ilist_aux.cc.