#include <mi32/mistring.h>
Inheritance diagram for MISTRING:

Public Types | |
| enum | FLOATFMT { FLOATFMT_General = 0, FLOATFMT_Fixed = 1, FLOATFMT_Scientific = 2 } |
| enum | LINETERM { LINETERM_LF = 0, LINETERM_CR = 1, LINETERM_CRLF = 2 } |
Public Member Functions | |
| void | Append (const MISTRING &str, int start=0, int end=INT32_MAX) |
| void | Assign (const void *str, CHAR_ENCODING encoding) |
| void | Assign (const UNICODE *str, int start=0, int end=INT32_MAX) |
| void | Assign (const MISTRING &str, int start=0, int end=INT32_MAX) |
| bool | CheckLineTermination (LINETERM lineterm) const |
| void | Clear () |
| int | Compare (int SrcStart, const MISTRING &str, int OtherStart, int len) const |
| int | Compare (const MISTRING &str, int len) const |
| int | Compare (const MISTRING &str) const |
| int | CompareNoCase (int SrcStart, const MISTRING &str, int OtherStart, int len) const |
| int | CompareNoCase (const MISTRING &str, int len) const |
| int | CompareNoCase (const MISTRING &str) const |
| double | ConvertToDouble () const |
| int | FindNextInSet (const MISTRING &chars, int start=0) const |
| int | FindNextNotInSet (const MISTRING &chars, int start=0) const |
| int | FindNextOf (UNICODE c, int start=0) const |
| int | FindNextOf (const MISTRING &str, int start=0) const |
| int | FindPrevInSet (const MISTRING &chars, int start=INT32_MAX) const |
| int | FindPrevNotInSet (const MISTRING &chars, int start=INT32_MAX) const |
| int | FindPrevOf (UNICODE c, int start=INT32_MAX) const |
| void | FmtEnableSubstitution (bool enable=true) |
| void | FmtSetBase (int base) |
| void | FmtSetFill (UNICODE fill) |
| void | FmtSetFloat (FLOATFMT floatmode) |
| void | FmtSetPrecision (int precision) |
| void | FmtSetSign (bool sign) |
| void | FmtSetWidth (int width) |
| void * | GetEncoded (CHAR_ENCODING encoding) const |
| int | GetLength () const |
| const UNICODE * | GetReference () const |
| UNICODE * | GetString () const |
| MISTRING | GetSubString (int start, int end) const |
| MISTRING | GetSubString (int start) const |
| bool | IniRead (INIHANDLE handle, const char *group, const char *field) |
| bool | IniReadML (INIHANDLE handle, const char *group, const char *field) |
| void | IniWrite (INIHANDLE handle, const char *group, const char *field) const |
| void | IniWriteML (INIHANDLE handle, const char *group, const char *field) const |
| void | Insert (int start, const MISTRING &str, int strstart=0, int strend=INT32_MAX) |
| bool | IsEmpty () const |
| void | Join (const MILIST< MISTRING > &list, const char *sep="") |
| void | Join (const MILIST< MISTRING > &list, const UNICODE *sep) |
| MISTRING (double value) | |
| MISTRING (unsigned int value) | |
| MISTRING (int value) | |
| MISTRING (const void *str, CHAR_ENCODING encoding) | |
| DEPRECATED | MISTRING (const char *msggroup, const char *msgkey) |
| MISTRING (TEXTID textid) | |
| MISTRING (const STRUTF8 &rhs) | |
| MISTRING (const char *str) | |
| MISTRING (const UNICODE *ustr) | |
| MISTRING (const MISTRING &rhs) | |
| MISTRING () | |
| operator const UNICODE * () const | |
| MISTRING & | operator+= (UNICODE c) |
| MISTRING & | operator+= (const char *rhs) |
| MISTRING & | operator+= (const UNICODE *rhs) |
| MISTRING & | operator+= (const MISTRING &rhs) |
| MISTRING & | operator<< (TEXTID textid) |
| MISTRING & | operator<< (const UNICODE *s) |
| MISTRING & | operator<< (const char *s) |
| MISTRING & | operator<< (double f) |
| MISTRING & | operator<< (float f) |
| MISTRING & | operator<< (UINT64 n) |
| MISTRING & | operator<< (unsigned long n) |
| MISTRING & | operator<< (unsigned int n) |
| MISTRING & | operator<< (unsigned short n) |
| MISTRING & | operator<< (INT64 n) |
| MISTRING & | operator<< (long n) |
| MISTRING & | operator<< (int n) |
| MISTRING & | operator<< (short n) |
| MISTRING & | operator<< (unsigned char n) |
| MISTRING & | operator<< (signed char n) |
| MISTRING & | operator<< (char c) |
| MISTRING & | operator<< (bool b) |
| MISTRING & | operator<< (STR_OP op) |
| MISTRING & | operator= (const char *rhs) |
| MISTRING & | operator= (const UNICODE *rhs) |
| MISTRING & | operator= (TEXTID textid) |
| MISTRING & | operator= (const STRUTF8 &rhs) |
| MISTRING & | operator= (const MISTRING &rhs) |
| const UNICODE & | operator[] (int idx) const |
| void | Pad (UNICODE c, int numchars) |
| void | PadToLength (UNICODE c, int length) |
| void | Remove (int start, int end) |
| void | Replace (int start, int end, const MISTRING &str, int strstart=0, int strend=INT32_MAX) |
| void | Replace (int index, UNICODE c) |
| ERRVALUE | Reserve (int numchars) |
| bool | Search (const UCREGEXP ®ex, UINT32 &MatchStart, UINT32 &MatchEnd, UINT32 Start=0) const |
| bool | Search (const UNICODE *str, UINT32 &MatchStart, UINT32 &MatchEnd, bool bIgnoreCase=false, UINT32 Start=0) const |
| bool | SetLineTermination (LINETERM lineterm) |
| void | SetLowerCase (int start=0) |
| void | SetUpperCase (int start=0) |
| int | Split (const UNICODE *regexp, MILIST< MISTRING > &list, int maxitems=0) const |
| int | Split (UNICODE ch, MILIST< MISTRING > &list, int maxitems=0) const |
| void | Truncate (int length) |
| ~MISTRING () | |
Static Public Member Functions | |
| const MISTRING & | GetEmpty () |
Supports internationalization, Unicode and various character set encodings.
MISTRING supports use of '<<' to 'put' values into the string similar to iostream. When using '<<' the current MISTRING is first searched for a formatting code or a substitution placeholder. Formatting codes in the form d, s, f, etc. are searched for first. The first code compatible with the value being put into the string will be used. Thus, if a number is being put then any d, u, f, etc code will be used. These formatting codes can also specify the width and precision if desired. Thus, '%.8f' may be used to specify 8 decimal places of precision. These settings only apply to the current value being put into the string. If no width, precision, etc is specified then any previously set formatting state settings will apply. If no -style formatting code is found then a search is made for substitution placeholders in the form $1, $2, etc. The lowest numbered placeholder will be replaced with the value being put into the string. Finally, if no placeholder is found then the value being put will be appended to the end of the string.
Definition at line 285 of file mistring.h.
|
|
Definition at line 288 of file mistring.h. |
|
|
Definition at line 294 of file mistring.h. |
|
|
Default constructor.
|
|
|
Copy constructor.
|
|
|
Construct from UNICODE* string (implicit).
|
|
|
Construct from char* string.
|
|
|
Construct from STRUTF8 string (implicit).
|
|
|
Construct from TEXTID (implicit).
|
|
||||||||||||
|
Construct from message file group and key. Deprecated, use TEXTID instead.
|
|
||||||||||||
|
Construct from string in specified encoding.
|
|
|
Construct from integer with default formatting.
|
|
|
Construct from unsigned integer with default formatting.
|
|
|
Construct from floating-point with default formatting.
|
|
|
|
|
||||||||||||||||
|
Append from MISTRING.
|
|
||||||||||||
|
Assign from string in specified encoding. Assign from partial char string is not supported due to character encoding
|
|
||||||||||||||||
|
Assign from UNICODE string.
|
|
||||||||||||||||
|
Assign from MISTRING.
|
|
|
Determine if string consistently uses specified line termination.
|
|
|
Clear the string.
|
|
||||||||||||||||||||
|
Case-sensitive comparison, length limited (similar to strncmp).
|
|
||||||||||||
|
Case-sensitive comparison, length limited (similar to strncmp).
|
|
|
Case-sensitive comparison (similar to strcmp).
|
|
||||||||||||||||||||
|
Case-insensitive comparison, length limited (similar to strnicmp).
|
|
||||||||||||
|
Case-insensitive comparison, length limited (similar to strnicmp).
|
|
|
Case-insensitive comparison (similar to stricmp).
|
|
|
Convert string to double-precision numeric value.
|
|
||||||||||||
|
Find next occurrence in given set of characters (similar to strpbrk).
|
|
||||||||||||
|
Find next occurrence not in given set of characters.
|
|
||||||||||||
|
Find next occurrence of given character (similar to strchr).
|
|
||||||||||||
|
Find next occurrence of given string (similar to strstr).
|
|
||||||||||||
|
Find previous occurrence in given set of characters.
|
|
||||||||||||
|
Find previous occurrence not in given set of characters.
|
|
||||||||||||
|
Find previous occurrence of given character (similar to strrchr).
|
|
|
Enable substitution during formatting. Initial default is enabled.
|
|
|
Set integer base.
|
|
|
Set fill character for padding.
|
|
|
Set floating point formatting mode.
|
|
|
Set precision (number of decimal places) for floating-point output.
|
|
|
Set whether to shown sign for positive numbers. Sign is only shown if integer base is 10.
|
|
|
Set minimum width for next formatted value. Note that at width setting only applies to one value after which time it will reset to 0 (minimum).
|
|
|
Get reference to empty string.
|
|
|
Get string in specified encoding.
|
|
|
Get length in characters.
|
|
|
Get string reference. Used to avoid static_cast<const UNICODE*>(MISTRING).
|
|
|
Get allocated string.
|
|
||||||||||||
|
Retrieve sub-string.
|
|
|
Retrieve sub-string.
|
|
||||||||||||||||
|
Read string from .ini file.
|
|
||||||||||||||||
|
Read multi-line string from .ini file.
|
|
||||||||||||||||
|
Write string to .ini file.
|
|
||||||||||||||||
|
Write multi-line string to .ini file.
|
|
||||||||||||||||||||
|
Insert all or part of another string at specified position.
|
|
|
Determine if string is empty.
|
|
||||||||||||
|
Join all the strings in an MISTRINGLIST into one string The char* variant of this function exists because most often, you want to join the strings together with simple whitespace or commas.
|
|
||||||||||||
|
Join all the strings in an MISTRINGLIST into one string.
|
|
|
Cast to (const UNICODE *). Cast to non-const is not supported as destruction cannot be enforced for temporaries. Cast to UINT8* or char* is not permitted as encoding cannot be specified. |
|
|
Append single character (Unicode or ASCII).
|
|
|
Concatenation from char* (ASCII/ISO-Latin1).
|
|
|
Concatenation from UNICODE* string.
|
|
|
Concatenation from MISTRING.
|
|
|
Format and text from TEXTID put into string.
|
|
|
Format and put UNICODE string into string.
|
|
|
Format and put ASCII string into string.
|
|
|
Format and put (double) value into string.
|
|
|
Format and put (float) value into string.
|
|
|
Format and put (UINT64) value into string.
|
|
|
Format and put (unsigned long) value into string.
|
|
|
Format and put UINT32 (unsigned int) value into string.
|
|
|
Format and put UINT16 (unsigned short) value into string. Warning, use of UNICODE will result in numeric value being put into string. |
|
|
Format and put (INT64) value into string.
|
|
|
Format and put (long) value into string.
|
|
|
Format and put INT32 (int) value into string.
|
|
|
Format and put INT16 (short) value into string.
|
|
|
Format and put UINT8 (unsigned char) numeric value into string.
|
|
|
Format and put INT8 (signed char) numeric value into string.
|
|
|
Format and put single character into string.
|
|
|
Format and put 'bool' value into string.
|
|
|
Perform operation on string.
|
|
|
Systems where wchar_t is not same as UINT16(UNICODE).
|
|
|
Assignment from UNICODE* string.
|
|
|
Assignment from TEXTID.
|
|
|
Assignment from STRUTF8.
|
|
|
Assignment from MISTRING.
|
|
|
Read array element.
|
| ||||||||||||