#include <UMString.h>
Public Member Functions | |
UMString () | |
Default Constructor for the UMString-Class. | |
UMString (const UMString &tmp_umstring) | |
Constructor for the UMString-Class which takes a UMString object as init-value. | |
UMString (const char *tmp_mb_string) | |
UMString Class Constructor for a Multibyte string passed at creation of an UMString Object. | |
UMString (const wstring tmp_uc_string) | |
UMString Class Constructor for Unicode string (wstring) passed at creation. | |
UMString (const wchar_t *tmp_uc_string) | |
UMString Class Constructor for Unicode string passed at creation. | |
UMString (const string tmp_stlstring) | |
UMString Class Constructor for STL-String passed at creation. | |
~UMString () | |
Destructor for UMString Class. | |
UINT | GetLengthUC () const |
Indexed array access to the stored Unicode-string Reads out the number of characters in the stored Unicode string. | |
UINT | GetLengthMB () const |
Reads out the number of characters in the stored Multibyte string. | |
wchar_t * | PushString (const wchar_t *tmp_uc_string) |
Loads a Unicode string into the UMString object. | |
char * | PushString (const char *tmp_mb_string) |
Loads a Multibyte string into the UMString object. | |
wchar_t * | GetStringUC () const |
Returns the Unicode string to the calling function. | |
char * | GetStringMB () const |
Returns the Multibyte string to the calling function. | |
void | Clear () |
Clears all stored string data in the object. | |
bool | ReplaceSubstring (const UINT First, const UINT Last, const UMString NewString) |
Replaces the substring beginning at character "First" up to character "Last". | |
bool | SI_Set (const UINT x) |
Sets the "sliding index" by passing an absolute position. | |
UINT | SI_Get () const |
Gets the "sliding index"-position (0-based). | |
UINT | SI_Forward () |
Sets the sliding index to next character. | |
UINT | SI_Backward () |
Sets the sliding index to previous character. | |
bool | SI_NextHira () |
Sets the "sliding index" to the next hiragana-character in the string after the current "sliding index"-position. | |
bool | SI_NextKata () |
Sets the "sliding index" to the next katakana-character in the string after the current "sliding index"-position. | |
bool | SI_NextKanji () |
Sets the "sliding index" to the next kanji-character in the string after the current "sliding index"-position. | |
bool | SI_NextDifferent () |
Sets the "sliding index" to the next character, which is of different CHARTYPE compared to the current. | |
bool | SI_PrevHira () |
Sets the "sliding index" to the previous hiragana-character in the string before the current "sliding index"-position. | |
bool | SI_PrevKata () |
Sets the "sliding index" to the previous katakana-character in the string before the current "sliding index"-position. | |
bool | SI_PrevKanji () |
Sets the "sliding index" to the previous kanji-character in the string before the current "sliding index"-position. | |
bool | SI_PrevDifferent () |
Sets the "sliding index" to the next left character, which is of different CHARTYPE compared to the current. | |
bool | SI_TokenStart () |
Sets the sliding index pointer to the beginning of the current token. | |
bool | SI_TokenEnd () |
Sets the sliding index pointer to the end of the current token. | |
const UMString | SI_GetToken () |
Gets the next token consisting of characters like the one the sliding index points to. | |
const UMString | SI_GetTokenPosAfter () |
gets the next token | |
const UMString | SI_GetRemaining () const |
Gets the string remaining after the "sliding index" position. | |
const UMString | SI_GetSizedString (const UINT first, const UINT last) const |
gets a slice of the string | |
const wchar_t | SI_GetChar () const |
Returns the Unicode-Character at the sliding index position. | |
const wchar_t | SI_GetCharNext () const |
Returns the Unicode-Character after the sliding index position. | |
void | SI_SetChar (const wchar_t tmp_uc_char) |
Replaces the Unicode-Character at the sliding index position. | |
int | SI_GetPosChar (wchar_t &ucchar, UINT offset=0) |
searches for a char in string, starting at an offset position | |
bool | SI_SetPosChar (wchar_t &ucchar) |
sets the sliding index to the next occurance of uuchar | |
bool | SI_SplitUMString (UMString &, UMString &, const UINT) |
splits the UMString into two at position x | |
const UMString & | operator= (const UMString &right) |
Copy-Constructor for the UMString Class. | |
bool | operator== (const UMString &right) |
Comparison operator for UMString class. | |
const UMString | operator+ (const UMString &right) |
Concatenation operator for UMString class. | |
operator const char * () const | |
casting to const char | |
operator const wchar_t * () const | |
casting to const wchar_t | |
operator const string () const | |
casting to const string | |
operator char * () | |
casting to char | |
operator wchar_t * () | |
casting to w_char | |
operator string () | |
casting to string | |
Private Member Functions | |
void | MB2UC () |
Synchronizes the MultiByte and the Unicode string. | |
void | UC2MB () |
Synchronizes the MultiByte and the Unicode string. | |
Private Attributes | |
wchar_t * | uc_string |
char * | mb_string |
UINT | si |
CPP-File for the UMString library. This library provides a new class "UMString". The UMString type can be used to store Unicode and Multibyte strings. All Multibyte string loaded into an UMString are automatically available as Unicode strings and vice versa. his class also provides various function for Unicode and Multibyte string manipulation like easy concatenation, searching, regular expressions, ...
|
Default Constructor for the UMString-Class. Unicode and Multibyte char arrays are initialized with an array size of 1 char/wchar_t and a '' in element [0] |
|
Constructor for the UMString-Class which takes a UMString object as init-value.
|
|
UMString Class Constructor for a Multibyte string passed at creation of an UMString Object.
|
|
UMString Class Constructor for Unicode string (wstring) passed at creation.
|
|
UMString Class Constructor for Unicode string passed at creation.
|
|
UMString Class Constructor for STL-String passed at creation.
|
|
Destructor for UMString Class.
|
|
Clears all stored string data in the object.
|
|
Reads out the number of characters in the stored Multibyte string.
|
|
Indexed array access to the stored Unicode-string Reads out the number of characters in the stored Unicode string.
|
|
Returns the Multibyte string to the calling function.
|
|
Returns the Unicode string to the calling function.
|
|
Synchronizes the MultiByte and the Unicode string. Synchronizes the MultiByte and the Unicode string in the UMString-object by taking the MultiByte string as the original pattern. This routine is only used internally and is private to this class
|
|
casting to char
|
|
casting to const char
|
|
casting to const string
|
|
casting to const wchar_t
|
|
casting to string
|
|
casting to w_char
|
|
Concatenation operator for UMString class.
|
|
Copy-Constructor for the UMString Class.
|
|
Comparison operator for UMString class.
|
|
Loads a Multibyte string into the UMString object.
|
|
Loads a Unicode string into the UMString object.
|
|
Replaces the substring beginning at character "First" up to character "Last".
|
|
Sets the sliding index to previous character.
|
|
Sets the sliding index to next character.
|
|
Gets the "sliding index"-position (0-based).
|
|
Returns the Unicode-Character at the sliding index position.
|
|
Returns the Unicode-Character after the sliding index position.
|
|
searches for a char in string, starting at an offset position
|
|
Gets the string remaining after the "sliding index" position.
|
|
gets a slice of the string Returns a new string object which is copied out of the original string, beginning at position first (0-based) stretching to last (also 0-based).
|
|
Gets the next token consisting of characters like the one the sliding index points to.
|
|
gets the next token Gets the next tokenconsisting of characters like the one the sliding index points to. After that the sliding index is positioned after the read out token
|
|
Sets the "sliding index" to the next character, which is of different CHARTYPE compared to the current.
|
|
Sets the "sliding index" to the next hiragana-character in the string after the current "sliding index"-position.
|
|
Sets the "sliding index" to the next kanji-character in the string after the current "sliding index"-position.
|
|
Sets the "sliding index" to the next katakana-character in the string after the current "sliding index"-position.
|
|
Sets the "sliding index" to the next left character, which is of different CHARTYPE compared to the current.
|
|
Sets the "sliding index" to the previous hiragana-character in the string before the current "sliding index"-position.
|
|
Sets the "sliding index" to the previous kanji-character in the string before the current "sliding index"-position.
|
|
Sets the "sliding index" to the previous katakana-character in the string before the current "sliding index"-position.
|
|
Sets the "sliding index" by passing an absolute position.
|
|
Replaces the Unicode-Character at the sliding index position.
|
|
sets the sliding index to the next occurance of uuchar
|
|
splits the UMString into two at position x
|
|
Sets the sliding index pointer to the end of the current token.
|
|
Sets the sliding index pointer to the beginning of the current token.
|
|
Synchronizes the MultiByte and the Unicode string. Synchronizes the MultiByte and the Unicode string in the UMString-object by taking the Unicode string as the original pattern. This routine is only used internally and is private to this class
|
|
The stored MultiByte-String |
|
The "sliding index"-Pointer |
|
The stored UNICODE-String |