25 #include <csutil/csstring.h> 34 #define XML_CASE_INSENSITIVE true 35 #define XML_CASE_SENSITIVE false 42 psString(
const csStringBase& str) : csString(str) {}
43 psString(
const csString& str) : csString(str) {}
48 bool FindNumber(
unsigned int & pos,
unsigned int & end)
const;
49 bool FindString(
const char *border,
unsigned int & pos,
unsigned int & end)
const;
59 void GetLine(
size_t start,csString& line)
const;
64 {
return strcmp(GetData(),other.GetData())==0; }
67 {
return strcmp(GetData(),other.GetData())<0; }
70 {
return strcmp(GetData() ? GetData() :
"",other ? other :
"") == 0;}
73 {
return strncmp(GetData(),other.GetData(),other.Length()); }
80 void Split(csStringArray& result,
char delim=
'|');
bool ReplaceSubString(const char *what, const char *with)
void Split(csStringArray &result, char delim='|')
Turn the last word of the string into an English plural.
A specific MathEnvironment to be used in a MathScript.
psString(const csString &str)
psString(const csStringBase &str)
int PartialEquals(const psString &other) const
bool operator<(const psString &other) const
int FindSubStringReverse(psString &sub, size_t start, bool caseInsense=XML_CASE_SENSITIVE)
bool operator==(const char *other) const
#define XML_CASE_SENSITIVE
int FindSubString(const char *sub, size_t start=0, bool caseInsense=XML_CASE_SENSITIVE, bool wholeWord=false) const
void GetWord(size_t pos, psString &buff, bool wantPunct=INCLUDE_PUNCT) const
bool FindNumber(unsigned int &pos, unsigned int &end) const
psString & Plural()
Check if a character is a vowel.
psString(const char *str)
void GetWordNumber(int which, psString &buff) const
bool operator==(const psString &other) const
void GetLine(size_t start, csString &line) const
size_t FindCommonLength(const psString &other) const
bool FindString(const char *border, unsigned int &pos, unsigned int &end) const
void GetSubString(psString &str, size_t from, size_t to) const