 
 
	 
In file ../include/EST_Pathname.h:
| class EST_Pathname | 
Class representing pathnames.
 static   const char* version
static   const char* version
 static   const EST_String Empty
static   const EST_String Empty
Split a string into parts.
![[more]](icon1.gif) int max
int max
 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
![[more]](icon1.gif) EST_String before(int pos, int len=0) const
EST_String before(int pos, int len=0) const 
![[more]](icon1.gif) EST_String before(const char* s, int pos=0) const
EST_String before(const char* s, int pos=0) const 
![[more]](icon1.gif) EST_String before(const EST_String &s, int pos=0) const
EST_String before(const EST_String &s, int pos=0) const 
![[more]](icon1.gif) EST_String before(EST_Regex &e, int pos=0) const
EST_String before(EST_Regex &e, int pos=0) const 
At
![[more]](icon1.gif) EST_String at(int from, int len=0) const
EST_String at(int from, int len=0) const 
![[more]](icon1.gif) EST_String at(const char* s, int pos=0) const
EST_String at(const char* s, int pos=0) const 
![[more]](icon1.gif) EST_String at(const EST_String &s, int pos=0) const
EST_String at(const EST_String &s, int pos=0) const 
![[more]](icon1.gif) EST_String at(EST_Regex &e, int pos=0) const
EST_String at(EST_Regex &e, int pos=0) const 
After
![[more]](icon1.gif) EST_String after(int pos, int len=1) const
EST_String after(int pos, int len=1) const 
![[more]](icon1.gif) EST_String after(const char* s, int pos=0) const
EST_String after(const char* s, int pos=0) const 
![[more]](icon1.gif) EST_String after(const EST_String &s, int pos=0) const
EST_String after(const EST_String &s, int pos=0) const 
![[more]](icon1.gif) EST_String after(EST_Regex &e, int pos=0) const
EST_String after(EST_Regex &e, int pos=0) const 
Search for something
![[more]](icon1.gif) 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 
![[more]](icon1.gif) int search(const EST_String s, int &mlen, int pos=0) const
int search(const EST_String s, int &mlen, int pos=0) const 
![[more]](icon1.gif) 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
![[more]](icon1.gif) int index(const char* s, int pos=0) const
int index(const char* s, int pos=0) const 
![[more]](icon1.gif) int index(const EST_String &s, int pos=0) const
int index(const EST_String &s, int pos=0) const 
![[more]](icon1.gif) int index(EST_Regex &ex, int pos=0) const
int index(EST_Regex &ex, int pos=0) const 
Does string contain something?
![[more]](icon1.gif) int contains(const char* s, int pos=-1) const
int contains(const char* s, int pos=-1) const 
![[more]](icon1.gif) int contains(const EST_String &s, int pos=-1) const
int contains(const EST_String &s, int pos=-1) const 
![[more]](icon1.gif) int contains(const char c, int pos=-1) const
int contains(const char c, int pos=-1) const 
![[more]](icon1.gif) int contains(EST_Regex &ex, int pos=-1) const
int contains(EST_Regex &ex, int pos=-1) const 
Does string exactly match?
![[more]](icon1.gif) int matches(const char* e, int pos=0) const
int matches(const char* e, int pos=0) const 
![[more]](icon1.gif) int matches(const EST_String &e, int pos=0) const
int matches(const EST_String &e, int pos=0) const 
![[more]](icon1.gif) 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
![[more]](icon1.gif) int gsub(const char* os, const EST_String &s)
int gsub(const char* os, const EST_String &s)
![[more]](icon1.gif) int gsub(const char* os, const char* s)
int gsub(const char* os, const char* s)
![[more]](icon1.gif) int gsub(const EST_String &os, const EST_String &s)
int gsub(const EST_String &os, const EST_String &s)
![[more]](icon1.gif) int gsub(const EST_String &os, const char* s)
int gsub(const EST_String &os, const char* s)
![[more]](icon1.gif) int gsub(EST_Regex &ex, const EST_String &s)
int gsub(EST_Regex &ex, const EST_String &s)
![[more]](icon1.gif) int gsub(EST_Regex &ex, const char* s)
int gsub(EST_Regex &ex, const char* s)
![[more]](icon1.gif) int gsub(EST_Regex &ex, int bracket_num)
int gsub(EST_Regex &ex, int bracket_num)
![[more]](icon1.gif) 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
![[more]](icon1.gif) int freq(const char* s) const
int freq(const char* s) const 
![[more]](icon1.gif) int freq(const EST_String &s) const
int freq(const EST_String &s) const 
![[more]](icon1.gif) int freq(EST_Regex &s) const
int freq(EST_Regex &s) const 
Quoting
![[more]](icon1.gif) EST_String quote(const char quotec) const
EST_String quote(const char quotec) const 
![[more]](icon1.gif) EST_String quote_if_needed(const char quotec) const
EST_String quote_if_needed(const char quotec) const 
![[more]](icon1.gif) EST_String unquote(const char quotec) const
EST_String unquote(const char quotec) const 
![[more]](icon1.gif) EST_String unquote_if_needed(const char quotec) const
EST_String unquote_if_needed(const char quotec) const 
Operators
![[more]](icon1.gif) const char operator () (int i) const
const char operator () (int i) const 
![[more]](icon1.gif) char& operator [] (int i)
char& operator [] (int i)
![[more]](icon1.gif) operator const char*() const
 operator const char*() const 
![[more]](icon1.gif) operator char*()
 operator char*()
![[more]](icon1.gif) Add to end of string.
 Add to end of string. 
![[more]](icon1.gif) EST_String& operator += (const char* b)
EST_String& operator += (const char* b)
![[more]](icon1.gif) EST_String& operator += (const EST_String b)
EST_String& operator += (const EST_String b)
![[more]](icon1.gif) Asignment
 Asignment 
![[more]](icon1.gif) EST_String& operator = (const char* str)
EST_String& operator = (const char* str)
![[more]](icon1.gif) EST_String& operator = (const char c)
EST_String& operator = (const char c)
![[more]](icon1.gif) EST_String& operator = (const EST_String &s)
EST_String& operator = (const EST_String &s)
![[more]](icon1.gif) Concatenation
 Concatenation 
![[more]](icon1.gif) relational operators
 relational operators 
![[more]](icon1.gif) return b
return b
![[more]](icon1.gif) return(a==b)
 return(a==b)
![[more]](icon1.gif) return compare(a, b)
return compare(a, b)
String comparison.
![[more]](icon1.gif) return compare(b, a)
return compare(b, a)
![[more]](icon1.gif) Case folded comparison.
 Case folded comparison.
![[more]](icon1.gif) 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)
 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 )
 typedef  int EST_string_size
typedef  int EST_string_size
 #define MAX_STRING_SIZE(INT_MAX)
#define MAX_STRING_SIZE(INT_MAX)
Class representing pathnames. Makes common filename manipulations available as methods. Different implementations are provided for different systems.
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