Planeshift
Public Types | Public Member Functions

psString Class Reference

#include <psstring.h>

List of all members.

Public Types

enum  { NO_PUNCT = 0, INCLUDE_PUNCT = 1 }

Public Member Functions

size_t FindCommonLength (const psString &other) const
bool FindNumber (unsigned int &pos, unsigned int &end) const
bool FindString (const char *border, unsigned int &pos, unsigned int &end) const
int FindSubString (const char *sub, size_t start=0, bool caseInsense=XML_CASE_SENSITIVE, bool wholeWord=false) const
int FindSubStringReverse (psString &sub, size_t start, bool caseInsense=XML_CASE_SENSITIVE)
void GetLine (size_t start, csString &line) const
void GetSubString (psString &str, size_t from, size_t to) const
void GetWord (size_t pos, psString &buff, bool wantPunct=INCLUDE_PUNCT) const
void GetWordNumber (int which, psString &buff) const
bool IsVowel (size_t pos)
bool operator< (const psString &other) const
bool operator== (const char *other) const
bool operator== (const psString &other) const
int PartialEquals (const psString &other) const
psStringPlural ()
 Check if a character is a vowel.
 psString (const csStringBase &str)
 psString (const csString &str)
 psString (const char *str)
 psString ()
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.

Detailed Description

Definition at line 37 of file psstring.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
NO_PUNCT 
INCLUDE_PUNCT 

Definition at line 51 of file psstring.h.


Constructor & Destructor Documentation

psString::psString ( ) [inline]

Definition at line 40 of file psstring.h.

psString::psString ( const char *  str) [inline]

Definition at line 41 of file psstring.h.

psString::psString ( const csStringBase &  str) [inline]

Definition at line 42 of file psstring.h.

psString::psString ( const csString &  str) [inline]

Definition at line 43 of file psstring.h.


Member Function Documentation

size_t psString::FindCommonLength ( const psString other) const
bool psString::FindNumber ( unsigned int pos,
unsigned int end 
) const
bool psString::FindString ( const char *  border,
unsigned int pos,
unsigned int end 
) const
int psString::FindSubString ( const char *  sub,
size_t  start = 0,
bool  caseInsense = XML_CASE_SENSITIVE,
bool  wholeWord = false 
) const
int psString::FindSubStringReverse ( psString sub,
size_t  start,
bool  caseInsense = XML_CASE_SENSITIVE 
)
void psString::GetLine ( size_t  start,
csString &  line 
) const
void psString::GetSubString ( psString str,
size_t  from,
size_t  to 
) const
void psString::GetWord ( size_t  pos,
psString buff,
bool  wantPunct = INCLUDE_PUNCT 
) const
void psString::GetWordNumber ( int  which,
psString buff 
) const
bool psString::IsVowel ( size_t  pos)
bool psString::operator< ( const psString other) const [inline]

Definition at line 66 of file psstring.h.

bool psString::operator== ( const psString other) const [inline]

Definition at line 63 of file psstring.h.

bool psString::operator== ( const char *  other) const [inline]

Definition at line 69 of file psstring.h.

int psString::PartialEquals ( const psString other) const [inline]

Definition at line 72 of file psstring.h.

psString& psString::Plural ( )

Check if a character is a vowel.

bool psString::ReplaceSubString ( const char *  what,
const char *  with 
)
void psString::Split ( csStringArray &  result,
char  delim = '|' 
)

Turn the last word of the string into an English plural.


The documentation for this class was generated from the following file: