Public Member Functions | |
StringT () | |
~StringT () | |
StringT (const StringT &src) | |
StringT (const XCHAR *src, int length=0) | |
bool | IsEmpty () const |
XCHAR | operator[] (int offset) const |
const XCHAR * | GetString () const |
const XCHAR * | c_str () const |
XCHAR * | GetBuffer (int length=0) |
int | GetLength () const |
void | SetLength (int length) |
void | Append (const StringT &src) |
void | Append (const XCHAR *src) |
int | Compare (const StringT &src) const |
int | Compare (const XCHAR *src) const |
int | CompareNoCase (const StringT &src) const |
int | CompareNoCase (const XCHAR *src) const |
void | Format (const XCHAR *pszFormat,...) |
void | FormatV (const XCHAR *pszFormat, va_list args) |
void | ReleaseBuffer () |
int | Replace (XCHAR chOld, XCHAR chNew) |
int | Replace (const XCHAR *pszOld, const XCHAR *pszNew) |
StringT & | MakeUpper () |
StringT & | MakeLower () |
bool | operator== (const StringT &src) const |
bool | operator< (const StringT &src) const |
bool | operator!= (const StringT &src) const |
bool | operator== (const XCHAR *src) const |
bool | operator!= (const XCHAR *src) const |
StringT & | operator+= (const StringT &src) |
StringT & | operator+= (const XCHAR *src) |
StringT & | operator= (const StringT &src) |
StringT & | operator= (const XCHAR *src) |
int | Find (XCHAR ch, int iStart=0) const throw () |
int | FindFromLast (XCHAR ch) const throw () |
int | Find (const XCHAR *pszSub, int iStart=0) const throw () |
StringT | Mid (int iFirst) const |
StringT | Mid (int iFirst, int nCount) const |
StringT | Right (int nCount) const |
StringT | Left (int nCount) const |
StringT | Tokenize (const XCHAR *pszTokens, int &iStart) const |
StringT & | TrimRight () |
StringT & | TrimLeft () |
StringT & | Trim () |
StringT & | Trim (XCHAR chTarget) |
StringT & | Trim (const XCHAR *pszTargets) |
StringT & | TrimRight (XCHAR chTarget) |
StringT & | TrimRight (const XCHAR *pszTargets) |
StringT & | TrimLeft (XCHAR chTarget) |
StringT & | TrimLeft (const XCHAR *pszTargets) |
operator std::string () const | |
StringT (const std::string &src) | |
operator std::wstring () const | |
StringT (const std::wstring &src) | |
Static Public Member Functions | |
static StringT | NewFormat (const XCHAR *pszFormat,...) |
Text string class
|
inline |
Constructor
|
inline |
Destructor
|
inline |
Gets string that pointed by src
|
inline |
Gets a string
|
inline |
Adds another text string after text string
|
inline |
Adds another text string to text string
|
inline |
Compare this objective’s string to string that src indicates. If this objective’s string is smaller than src, negative number will be returned (if same, 0 will be returned & if it is bigger than src, positive number will be returned).
|
inline |
Compare this objective’s string to string that src indicates. If this objective’s string is smaller than src, negative number will be returned (if same, 0 will be returned & if it is bigger than src, positive number will be returned).
|
inline |
Compare this objective’s string to string that src indicates. If this objective’s string is smaller than src, negative number will be returned (if same, 0 will be returned & if it is bigger than src, positive number will be returned). But, not classify capital and small letter.
|
inline |
Compare this objective’s string to string that src indicates. If this objective’s string is smaller than src, negative number will be returned (if same, 0 will be returned & if it is bigger than src, positive number will be returned). But, not classify capital and small letter.
|
inline |
Finds the location of the character that is pointed by ch through searching from 'iStart'th character of text string. Returns -1 when not found.
|
inline |
Finds the location of the character that is pointed by pszSub through searching from 'iStart'th character of text string. Returns -1 when not found.
|
inline |
문자열의 끝에서부터 원하는 글자를 찾습니다.
ch | 찾을 글자 |
|
inline |
Creates text string as printf (Please refer Creating a string(format))
|
inline |
Creates text string as printf (Please refer Creating a string(format))
|
inline |
Method used to access string pointer to read from and write to string data.
After using this method, it must be ended by calling ReleaseBuffer(). To use this easily, use Proud::StrBufA or Proud::StrBufW.
Usage example
Better usage example
Example for read-only access
|
inline |
Gets length of string.
|
inline |
Let's read text string data
|
inline |
Is it an empty string ?
|
inline |
Returns the text stings that are collected from LHS to the point where the amount of characters become nCount in text string.
|
inline |
De-capitalize text string
|
inline |
Capitalizes text string
|
inline |
Returns the characters collected from the location where pointed by iFirst to the end in text string.
|
inline |
Returns the characters collected from the location where pointed by iFirst to the point where the amount of characters become nCount in text string.
|
inlinestatic |
It performs the same function as the Format method, but it is a static method and returns a new object.
|
inline |
Comparison operator
|
inline |
Comparison operator
|
inline |
Text string adding operator
|
inline |
Text string adding operator
|
inline |
String copy assignment operator
|
inline |
String copy assignment operator
|
inline |
Comparison operator
|
inline |
Comparison operator
|
inline |
Once GetBuffer is called then this must end to finalize. Otherwise, the exact length of text string may not be acquired. Please refer GetBuffer description
|
inline |
Among text strings, replace the character pointed by chOld with the character pointed by chNew.
|
inline |
Among text strings, replace the character pointed by pszOld with the character pointed by pszNew.
|
inline |
Returns the text stings that are collected from RHS to the point where the amount of characters become nCount in text string.
|
inline |
Re-modifies the length of text string
length | Number of characters if wchar_t is used, number of bytes if char is used, regardless of multibyte or unicode encoding. |
|
inline |
Collects the text strings distinguished by distinguishers pointed by ofpszToken one by one then returns them one by one.
Example:
|
inline |
Cuts off the empty characters are left at RHS end and at LHS end of text string
|
inline |
Cuts off the characters pointed by chTarget and are left at RHS end and at LHS end of text string
|
inline |
Cuts off the characters pointed by pszTargets and are left at RHS end and at LHS end of text string
|
inline |
Cuts off the empty characters are left at LHS end of text string
|
inline |
Cuts off the characters pointed by chTarget and are left at LHS end of text string
|
inline |
Cuts off the characters pointed by pszTargets and are left at RHS end of text string
|
inline |
Cuts off the empty characters are left at RHS end of text string
|
inline |
Cuts off the characters pointed by chTarget and are left at RHS end of text string
|
inline |
uts off the characters pointed by pszTargets and are left at RHS end of text string