FIXEDSTRCHAR< _CT > Class Template Reference
Fixed-size array-based 'char' string.
More...
#include <mi32/fixedstrchar.h>
List of all members.
Detailed Description
template<int _CT>
class FIXEDSTRCHAR< _CT >
Fixed-size array-based 'char' string.
This class is designed to replace fixed size 'char' 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.
Constructor & Destructor Documentation
Default constructor, clears the string.
Construct from char string.
Member Function Documentation
template<int _CT>
| void FIXEDSTRCHAR< _CT >::Assign |
( |
const char * |
name, |
|
|
int |
len | |
|
) |
| | [inline] |
Assign from char string with a max length given.
- Parameters:
-
| name | char string to assign from |
template<int _CT>
| void FIXEDSTRCHAR< _CT >::Assign |
( |
const char * |
name |
) |
[inline] |
Assign from character string.
- Parameters:
-
| name | Character string to assign from |
template<int _CT>
| int FIXEDSTRCHAR< _CT >::Compare |
( |
const char * |
str |
) |
const [inline] |
Case-sensitive comparison, (similar to strcmp).
- Returns:
- 0 if strings equal, -1 if this < str, 1 if this > str.
- Parameters:
-
Case-sensitive comparison, similar to strcmp.
- Returns:
- 0 if strings equal, -1 if this < str, 1 if this > str.
- Parameters:
-
template<int _CT>
| int FIXEDSTRCHAR< _CT >::CompareNoCase |
( |
const char * |
str |
) |
const [inline] |
Case-insensitive comparison (similar to stricmp).
- Returns:
- 0 if strings equal, -1 if this < str, 1 if this > str.
- Parameters:
-
Case-insensitive comparison (similar to stricmp).
- Returns:
- 0 if strings equal, -1 if this < str, 1 if this > str.
- Parameters:
-
Return length of string, not including terminator.
Return maximum string size, not including terminator.
template<int _CT>
| const char* FIXEDSTRCHAR< _CT >::GetTail |
( |
int |
maxlen |
) |
const [inline] |
Get tail of string having up to specified number of characters.
template<int _CT>
| bool FIXEDSTRCHAR< _CT >::IniRead |
( |
INIHANDLE |
inih, |
|
|
const char * |
group, |
|
|
const char *const |
field | |
|
) |
| | [inline] |
Set the string according to values in ini file.
- Returns:
- : 'true' if entry found and information read, false if empty field or field does not exist
template<int _CT>
| void FIXEDSTRCHAR< _CT >::IniWrite |
( |
INIHANDLE |
inih, |
|
|
const char * |
group, |
|
|
const char *const |
field | |
|
) |
| | [inline] |
Save the string to values in ini file.
Find out if the string is empty.
template<int _CT>
| FIXEDSTRCHAR< _CT >::operator const char * |
( |
|
) |
const [inline] |
template<int _CT>
| bool FIXEDSTRCHAR< _CT >::operator!= |
( |
const char * |
rhs |
) |
const [inline] |
Concatenate from char string.
- Parameters:
-
| rhs | String to concatinate from |
Concatenate operator.
- Parameters:
-
| rhs | String to concatinate from |
template<int _CT>
| bool FIXEDSTRCHAR< _CT >::operator< |
( |
const char * |
rhs |
) |
const [inline] |
template<int _CT>
| bool FIXEDSTRCHAR< _CT >::operator<= |
( |
const char * |
rhs |
) |
const [inline] |
Assign from char string.
- Parameters:
-
| rhs | String to assign from |
Assignment operator.
- Parameters:
-
| rhs | String to assign from |
template<int _CT>
| bool FIXEDSTRCHAR< _CT >::operator== |
( |
const char * |
rhs |
) |
const [inline] |
template<int _CT>
| bool FIXEDSTRCHAR< _CT >::operator> |
( |
const char * |
rhs |
) |
const [inline] |
template<int _CT>
| bool FIXEDSTRCHAR< _CT >::operator>= |
( |
const char * |
rhs |
) |
const [inline] |
Greater Than or Equal to.
Greater Than or Equal to.
Pad the string with a char to the end of the buffer.
Set the string to lower case letters.
Set the string to upper case letters.
Force termination of string at the end.
template<int _CT>
| void FIXEDSTRCHAR< _CT >::Truncate |
( |
int |
NewLength |
) |
[inline] |
Truncate the string, has no effect if the string is shorter than NewLength.
The documentation for this class was generated from the following file: