CLI classes toolkit.
More...
#include <tk_stl.h>
|
static const tk::String | Concat (const unsigned int UI_MaxLength, const char *const STR_1, const char *const STR_2) |
| Concatenation. More...
|
|
static const tk::String | Concat (const unsigned int UI_MaxLength, const char *const STR_1, const char *const STR_2, const char *const STR_3) |
| Concatenation. More...
|
|
static const tk::String | Concat (const unsigned int UI_MaxLength, const char *const STR_1, const char *const STR_2, const char *const STR_3, const char *const STR_4) |
| Concatenation. More...
|
|
static const tk::String | Concat (const unsigned int UI_MaxLength, const char *const STR_1, const char *const STR_2, const char *const STR_3, const char *const STR_4, const char *const STR_5) |
| Concatenation. More...
|
|
CLI classes toolkit.
Basic string object.
Definition at line 51 of file tk_stl.h.
◆ String() [1/3]
String::String |
( |
const unsigned int |
UI_MaxLen | ) |
|
|
inlineexplicit |
◆ String() [2/3]
String::String |
( |
const unsigned int |
UI_MaxLen, |
|
|
const char *const |
STR_String |
|
) |
| |
|
inlineexplicit |
Initial value constructor.
- Warning
- Maximum length inherits the initial string value. Objects initialized by this constructor might be constants in general.
- Parameters
-
UI_MaxLen | Maximum string length. |
STR_String | Initial value. |
Definition at line 130 of file tk_stl.h.
References UnusedParameter().
◆ String() [3/3]
String::String |
( |
const String & |
TK_String | ) |
|
|
inline |
Copy constructor.
- Parameters
-
Definition at line 140 of file tk_stl.h.
◆ ~String()
virtual String::~String |
( |
void |
| ) |
|
|
inlinevirtual |
◆ Append() [1/2]
const bool String::Append |
( |
const char *const |
STR_String | ) |
|
|
inline |
String appending.
- Returns
- true when success, false otherwise.
- Parameters
-
Definition at line 279 of file tk_stl.h.
◆ Append() [2/2]
const bool String::Append |
( |
const char |
C_Character | ) |
|
|
inline |
String appending.
- Returns
- true when success, false otherwise.
- Parameters
-
C_Character | Character to append. |
Definition at line 289 of file tk_stl.h.
◆ Concat() [1/4]
static const tk::String String::Concat |
( |
const unsigned int |
UI_MaxLength, |
|
|
const char *const |
STR_1, |
|
|
const char *const |
STR_2 |
|
) |
| |
|
inlinestatic |
Concatenation.
- Returns
- Result string.
- Parameters
-
UI_MaxLength | Maximum length. |
STR_1 | First string. |
STR_2 | Second string. |
Definition at line 56 of file tk_stl.h.
◆ Concat() [2/4]
static const tk::String String::Concat |
( |
const unsigned int |
UI_MaxLength, |
|
|
const char *const |
STR_1, |
|
|
const char *const |
STR_2, |
|
|
const char *const |
STR_3 |
|
) |
| |
|
inlinestatic |
Concatenation.
- Returns
- Result string.
- Parameters
-
UI_MaxLength | Maximum length. |
STR_1 | First string. |
STR_2 | Second string. |
STR_3 | Third string. |
Definition at line 70 of file tk_stl.h.
◆ Concat() [3/4]
static const tk::String String::Concat |
( |
const unsigned int |
UI_MaxLength, |
|
|
const char *const |
STR_1, |
|
|
const char *const |
STR_2, |
|
|
const char *const |
STR_3, |
|
|
const char *const |
STR_4 |
|
) |
| |
|
inlinestatic |
Concatenation.
- Returns
- Result string.
- Parameters
-
UI_MaxLength | Maximum length. |
STR_1 | First string. |
STR_2 | Second string. |
STR_3 | Third string. |
STR_4 | Fourth string. |
Definition at line 84 of file tk_stl.h.
◆ Concat() [4/4]
static const tk::String String::Concat |
( |
const unsigned int |
UI_MaxLength, |
|
|
const char *const |
STR_1, |
|
|
const char *const |
STR_2, |
|
|
const char *const |
STR_3, |
|
|
const char *const |
STR_4, |
|
|
const char *const |
STR_5 |
|
) |
| |
|
inlinestatic |
Concatenation.
- Returns
- Result string.
- Parameters
-
UI_MaxLength | Maximum length. |
STR_1 | First string. |
STR_2 | Second string. |
STR_3 | Third string. |
STR_4 | Fourth string. |
STR_5 | Fifth string. |
Definition at line 99 of file tk_stl.h.
◆ GetChar()
const char String::GetChar |
( |
const unsigned int |
UI_Pos | ) |
const |
|
inline |
Single character accessor.
- Returns
- Character at the given position. Null character when the position is out of bounds.
- Parameters
-
UI_Pos | Character position from the beginning of the string. |
Definition at line 175 of file tk_stl.h.
◆ GetLength()
const unsigned int String::GetLength |
( |
void |
| ) |
const |
|
inline |
◆ IsEmpty()
const bool String::IsEmpty |
( |
void |
| ) |
const |
|
inline |
Checks whether the string is empty or not.
- Returns
- true for an empty string, false otherwise.
Definition at line 162 of file tk_stl.h.
◆ operator const char *const()
String::operator const char *const |
( |
void |
| ) |
const |
|
inline |
Conversion operator.
Definition at line 168 of file tk_stl.h.
◆ operator=()
tk::String& String::operator= |
( |
const tk::String & |
STR_String | ) |
|
|
inline |
Assignment operator.
- Returns
- The string just assigned itself.
- Warning
- Prefer Set() method since this method does not indicate failures.
- Parameters
-
STR_String | Source string used for assignment. |
Definition at line 300 of file tk_stl.h.
◆ Reset()
const bool String::Reset |
( |
void |
| ) |
|
|
inline |
String resetting.
- Returns
- true when success, false otherwise.
Definition at line 261 of file tk_stl.h.
◆ Set()
const bool String::Set |
( |
const char *const |
STR_String | ) |
|
|
inline |
String setting.
- Returns
- true when success, false otherwise.
- Parameters
-
Definition at line 269 of file tk_stl.h.
◆ SubString()
const tk::String String::SubString |
( |
const unsigned int |
UI_FirstCharacter, |
|
|
const int |
I_SubStringLength |
|
) |
| const |
|
inline |
Sub-string computation.
- Returns
- Computed sub-string.
- Parameters
-
UI_FirstCharacter | First character position. |
I_SubStringLength | Sub-string length. negative values mean 0. |
Definition at line 189 of file tk_stl.h.
◆ ToLower()
const String String::ToLower |
( |
void |
| ) |
const |
|
inline |
Lower string transformation.
- Returns
- Lower string computed.
Definition at line 236 of file tk_stl.h.
◆ ToUpper()
const String String::ToUpper |
( |
void |
| ) |
const |
|
inline |
Upper string transformation.
- Returns
- Upper string computed.
Definition at line 213 of file tk_stl.h.
The documentation for this class was generated from the following file: