#include <mi32/fixedstr.h>
Inheritance diagram for FIXEDSTRING< _CT >:

Public Member Functions | |
| void | Append (const char *name) |
| void | Assign (const MIUNICODE *name, int len) |
| void | Assign (const char *name, CHAR_ENCODING encoding) |
| void | Assign (const char *name, int len) |
| void | Assign (const char *name) |
| void | Clear () |
| int | Compare (const MIUNICODE *str) const |
| int | Compare (const FIXEDSTRING &str) const |
| int | CompareNoCase (const MIUNICODE *str) const |
| int | CompareNoCase (const FIXEDSTRING &str) const |
| FIXEDSTRING (TEXTID textid) | |
| FIXEDSTRING (const MISTRING &string) | |
| FIXEDSTRING (const MIUNICODE *string) | |
| template<int _T2> | |
| FIXEDSTRING (const FIXEDSTRING< _T2 > &rhs) | |
| FIXEDSTRING (const FIXEDSTRING &rhs) | |
| FIXEDSTRING () | |
| ERRVALUE | GenerateUniqueName (UNIQUENAMEFILTER &FilterInst) |
| ERRVALUE | GenerateUniqueName (FastDelegate< int(const FIXEDSTRING< _CT > &)> delegate) |
| void * | GetEncoded (CHAR_ENCODING encoding) const |
| int | GetLength () const |
| const MIUNICODE * | GetReference () const |
| const MIUNICODE * | GetTail (int maxlen) const |
| bool | IniRead (INIHANDLE inih, const char *group, const char *const field) |
| void | IniWrite (INIHANDLE inih, const char *group, const char *const field) const |
| bool | IsEmpty () const |
| bool | IsValidName (FastDelegate< bool(MIUNICODE)> delegate=FastDelegate< bool(MIUNICODE)>(DftValidNameChar)) const |
| void | MakeValidName (FastDelegate< bool(MIUNICODE)> delegate=FastDelegate< bool(MIUNICODE)>(DftValidNameChar)) |
| operator const MIUNICODE * () const | |
| bool | operator!= (const MIUNICODE *rhs) const |
| bool | operator!= (const FIXEDSTRING &rhs) const |
| FIXEDSTRING & | operator+= (const MIUNICODE *rhs) |
| template<int _T2> | |
| FIXEDSTRING< _CT > & | operator+= (const FIXEDSTRING< _T2 > &rhs) |
| bool | operator< (const MIUNICODE *rhs) const |
| bool | operator< (const FIXEDSTRING &rhs) const |
| bool | operator<= (const MIUNICODE *rhs) const |
| bool | operator<= (const FIXEDSTRING &rhs) const |
| FIXEDSTRING & | operator= (TEXTID textid) |
| FIXEDSTRING & | operator= (const MISTRING &rhs) |
| FIXEDSTRING & | operator= (const MIUNICODE *rhs) |
| template<int _T2> | |
| FIXEDSTRING< _CT > & | operator= (const FIXEDSTRING< _T2 > &rhs) |
| FIXEDSTRING & | operator= (const FIXEDSTRING &rhs) |
| bool | operator== (const MIUNICODE *rhs) const |
| bool | operator== (const FIXEDSTRING &rhs) const |
| bool | operator> (const MIUNICODE *rhs) const |
| bool | operator> (const FIXEDSTRING &rhs) const |
| bool | operator>= (const MIUNICODE *rhs) const |
| bool | operator>= (const FIXEDSTRING &rhs) const |
| void | PadToEnd (char item) |
| void | SetLowerCase () |
| void | SetUpperCase () |
| void | SwapBytes () |
| void | Terminate () |
| void | Truncate (int NewLength) |
| ~FIXEDSTRING () | |
Static Public Member Functions | |
| static int | GetMaxSize () |
Classes | |
| class | UNIQUENAMEFILTER |
| Unique name filter class to determine if the name given is unique. More... | |
This class is designed to replace fixed size MIUNICODE array string constructs in other classes and structures. It is not meant as a STRING class implementation. Therefore, the class cannot have virtual methods nor any other members except for the string storage itself.
Definition at line 190 of file fixedstr.h.
| FIXEDSTRING< _CT >::FIXEDSTRING | ( | ) | [inline] |
| FIXEDSTRING< _CT >::FIXEDSTRING | ( | const FIXEDSTRING< _CT > & | rhs | ) | [inline] |
| FIXEDSTRING< _CT >::FIXEDSTRING | ( | const FIXEDSTRING< _T2 > & | rhs | ) | [inline] |
Copy constructor.
| rhs | String to concatinate from |
Definition at line 204 of file fixedstr.h.
| FIXEDSTRING< _CT >::FIXEDSTRING | ( | const MIUNICODE * | string | ) | [inline] |
| FIXEDSTRING< _CT >::FIXEDSTRING | ( | const MISTRING & | string | ) | [inline] |
| FIXEDSTRING< _CT >::FIXEDSTRING | ( | TEXTID | textid | ) | [inline] |
| FIXEDSTRING< _CT >::~FIXEDSTRING | ( | ) | [inline] |
| void FIXEDSTRING< _CT >::Append | ( | const char * | name | ) | [inline] |
Append from character string, not a constructor so that it is locatable in code.
| name | Character string to append from |
Definition at line 367 of file fixedstr.h.
| void FIXEDSTRING< _CT >::Assign | ( | const MIUNICODE * | name, | |
| int | len | |||
| ) | [inline] |
Assign from MIUNICODE string with a max length given.
| name | MIUNICODE string to assign from |
Definition at line 402 of file fixedstr.h.
| void FIXEDSTRING< _CT >::Assign | ( | const char * | name, | |
| CHAR_ENCODING | encoding | |||
| ) | [inline] |
Assign from character string, not a constructor so that it is locatable in code.
| name | Character string to assign from |
| encoding | Encoding to use |
Definition at line 387 of file fixedstr.h.
| void FIXEDSTRING< _CT >::Assign | ( | const char * | name, | |
| int | len | |||
| ) | [inline] |
Assign from character string, not a constructor so that it is locatable in code.
| name | Character string to assign from |
Definition at line 381 of file fixedstr.h.
| void FIXEDSTRING< _CT >::Assign | ( | const char * | name | ) | [inline] |
Assign from character string, not a constructor so that it is locatable in code.
| name | Character string to assign from |
Definition at line 376 of file fixedstr.h.
| void FIXEDSTRING< _CT >::Clear | ( | ) | [inline] |
| int FIXEDSTRING< _CT >::Compare | ( | const MIUNICODE * | str | ) | const [inline] |
Case-sensitive comparison, length limited (similar to strncmp).
| str | String to compare to |
Definition at line 419 of file fixedstr.h.
| int FIXEDSTRING< _CT >::Compare | ( | const FIXEDSTRING< _CT > & | str | ) | const [inline] |
Case-sensitive comparison, length limited (similar to strncmp).
| str | String to compare to |
Definition at line 413 of file fixedstr.h.
| int FIXEDSTRING< _CT >::CompareNoCase | ( | const MIUNICODE * | str | ) | const [inline] |
Case-insensitive comparison (similar to stricmp).
| str | String to compare to |
Definition at line 431 of file fixedstr.h.
| int FIXEDSTRING< _CT >::CompareNoCase | ( | const FIXEDSTRING< _CT > & | str | ) | const [inline] |
Case-insensitive comparison (similar to stricmp).
| str | String to compare to |
Definition at line 425 of file fixedstr.h.
| ERRVALUE FIXEDSTRING< _CT >::GenerateUniqueName | ( | UNIQUENAMEFILTER & | FilterInst | ) | [inline] |
| ERRVALUE FIXEDSTRING< _CT >::GenerateUniqueName | ( | FastDelegate< int(const FIXEDSTRING< _CT > &)> | delegate | ) | [inline] |
Generate an unique name based on the filter passed in.
String is already unique
Initialize string and pointer for character replacement
Make sure rest of m_String is set to 0
Reset system and increment where
Reality check, if need to increase, it can be. 37 ^ 4 tried!
As far out a possible, retreat until a match is not found
Out of 37 ^ (_CT-1) possible combinations, none found
Definition at line 448 of file fixedstr.h.
| void* FIXEDSTRING< _CT >::GetEncoded | ( | CHAR_ENCODING | encoding | ) | const [inline] |
Get string in specified encoding.
| encoding | Encoding |
Definition at line 507 of file fixedstr.h.
| int FIXEDSTRING< _CT >::GetLength | ( | ) | const [inline] |
| static int FIXEDSTRING< _CT >::GetMaxSize | ( | ) | [inline, static] |
| const MIUNICODE* FIXEDSTRING< _CT >::GetReference | ( | ) | const [inline] |
Return const string pointer, used for sprintf type parameters.
Definition at line 523 of file fixedstr.h.
| const MIUNICODE* FIXEDSTRING< _CT >::GetTail | ( | int | maxlen | ) | const [inline] |
Get tail of string having up to specified number of characters.
Definition at line 527 of file fixedstr.h.
| bool FIXEDSTRING< _CT >::IniRead | ( | INIHANDLE | inih, | |
| const char * | group, | |||
| const char *const | field | |||
| ) | [inline] |
Set the string according to values in ini file.
Definition at line 537 of file fixedstr.h.
| void FIXEDSTRING< _CT >::IniWrite | ( | INIHANDLE | inih, | |
| const char * | group, | |||
| const char *const | field | |||
| ) | const [inline] |
| bool FIXEDSTRING< _CT >::IsEmpty | ( | ) | const [inline] |
| bool FIXEDSTRING< _CT >::IsValidName | ( | FastDelegate< bool(MIUNICODE)> | delegate = FastDelegate<bool(MIUNICODE)>(DftValidNameChar) |
) | const [inline] |
Definition at line 550 of file fixedstr.h.
| void FIXEDSTRING< _CT >::MakeValidName | ( | FastDelegate< bool(MIUNICODE)> | delegate = FastDelegate<bool(MIUNICODE)>(DftValidNameChar) |
) | [inline] |
Definition at line 562 of file fixedstr.h.
| FIXEDSTRING< _CT >::operator const MIUNICODE * | ( | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator!= | ( | const MIUNICODE * | rhs | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator!= | ( | const FIXEDSTRING< _CT > & | rhs | ) | const [inline] |
| FIXEDSTRING& FIXEDSTRING< _CT >::operator+= | ( | const MIUNICODE * | rhs | ) | [inline] |
Concatenate from MIUNICODE string.
| rhs | String to concatinate from |
Definition at line 291 of file fixedstr.h.
| FIXEDSTRING<_CT>& FIXEDSTRING< _CT >::operator+= | ( | const FIXEDSTRING< _T2 > & | rhs | ) | [inline] |
Concatenate operator.
| rhs | String to concatinate from |
Definition at line 283 of file fixedstr.h.
| bool FIXEDSTRING< _CT >::operator< | ( | const MIUNICODE * | rhs | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator< | ( | const FIXEDSTRING< _CT > & | rhs | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator<= | ( | const MIUNICODE * | rhs | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator<= | ( | const FIXEDSTRING< _CT > & | rhs | ) | const [inline] |
| FIXEDSTRING& FIXEDSTRING< _CT >::operator= | ( | TEXTID | textid | ) | [inline] |
| FIXEDSTRING& FIXEDSTRING< _CT >::operator= | ( | const MISTRING & | rhs | ) | [inline] |
Assign from MISTRING string.
| rhs | String to assign from |
Definition at line 268 of file fixedstr.h.
| FIXEDSTRING& FIXEDSTRING< _CT >::operator= | ( | const MIUNICODE * | rhs | ) | [inline] |
Assign from MIUNICODE string.
| rhs | String to assign from |
Definition at line 257 of file fixedstr.h.
| FIXEDSTRING<_CT>& FIXEDSTRING< _CT >::operator= | ( | const FIXEDSTRING< _T2 > & | rhs | ) | [inline] |
Assignment operator.
| rhs | String to concatinate from |
Definition at line 248 of file fixedstr.h.
| FIXEDSTRING& FIXEDSTRING< _CT >::operator= | ( | const FIXEDSTRING< _CT > & | rhs | ) | [inline] |
Assignment operator.
| rhs | String to assign from |
Definition at line 237 of file fixedstr.h.
| bool FIXEDSTRING< _CT >::operator== | ( | const MIUNICODE * | rhs | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator== | ( | const FIXEDSTRING< _CT > & | rhs | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator> | ( | const MIUNICODE * | rhs | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator> | ( | const FIXEDSTRING< _CT > & | rhs | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator>= | ( | const MIUNICODE * | rhs | ) | const [inline] |
| bool FIXEDSTRING< _CT >::operator>= | ( | const FIXEDSTRING< _CT > & | rhs | ) | const [inline] |
| void FIXEDSTRING< _CT >::PadToEnd | ( | char | item | ) | [inline] |
| void FIXEDSTRING< _CT >::SetLowerCase | ( | ) | [inline] |
| void FIXEDSTRING< _CT >::SetUpperCase | ( | ) | [inline] |
| void FIXEDSTRING< _CT >::SwapBytes | ( | ) | [inline] |
| void FIXEDSTRING< _CT >::Terminate | ( | ) | [inline] |
| void FIXEDSTRING< _CT >::Truncate | ( | int | NewLength | ) | [inline] |
Truncate the string, has no effect if the string is shorter than NewLength.
Definition at line 615 of file fixedstr.h.
1.5.2