ResourceString class.
More...
#include <resource_string.h>
|
static const tk::String | Concat (const char *const STR_1, const char *const STR_2) |
| String concatenation in the aim of a resource definition. More...
|
|
static const tk::String | Concat (const char *const STR_1, const char *const STR_2, const char *const STR_3) |
| String concatenation in the aim of a resource definition. More...
|
|
static const tk::String | Concat (const char *const STR_1, const char *const STR_2, const char *const STR_3, const char *const STR_4) |
| String concatenation in the aim of a resource definition. More...
|
|
static const tk::String | Concat (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) |
| String concatenation in the aim of a resource definition. More...
|
|
|
| Object (void) |
| Default constructor only available to sub-classes. More...
|
|
ResourceString class.
Objects of this class permits string definition of different languages.
Definition at line 45 of file resource_string.h.
◆ LANG
Languages identifiers.
Enumerator |
---|
LANG_EN | English.
|
LANG_FR | French.
|
LANG_COUNT | Languages count.
|
Definition at line 68 of file resource_string.h.
◆ ResourceString() [1/2]
ResourceString::ResourceString |
( |
void |
| ) |
|
|
explicit |
◆ ResourceString() [2/2]
Copy constructor.
- Parameters
-
CLI_String | Source string object. |
◆ ~ResourceString()
virtual ResourceString::~ResourceString |
( |
void |
| ) |
|
|
virtual |
◆ Concat() [1/4]
static const tk::String ResourceString::Concat |
( |
const char *const |
STR_1, |
|
|
const char *const |
STR_2 |
|
) |
| |
|
static |
String concatenation in the aim of a resource definition.
- Returns
- The concatenation of the string arguments.
- Parameters
-
STR_1 | First string. |
STR_2 | Second string. |
◆ Concat() [2/4]
static const tk::String ResourceString::Concat |
( |
const char *const |
STR_1, |
|
|
const char *const |
STR_2, |
|
|
const char *const |
STR_3 |
|
) |
| |
|
static |
String concatenation in the aim of a resource definition.
- Returns
- The concatenation of the string arguments.
- Parameters
-
STR_1 | First string. |
STR_2 | Second string. |
STR_3 | Third string. |
◆ Concat() [3/4]
static const tk::String ResourceString::Concat |
( |
const char *const |
STR_1, |
|
|
const char *const |
STR_2, |
|
|
const char *const |
STR_3, |
|
|
const char *const |
STR_4 |
|
) |
| |
|
static |
String concatenation in the aim of a resource definition.
- Returns
- The concatenation of the string arguments.
- Parameters
-
STR_1 | First string. |
STR_2 | Second string. |
STR_3 | Third string. |
STR_4 | Fourth string. |
◆ Concat() [4/4]
static const tk::String ResourceString::Concat |
( |
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 |
|
) |
| |
|
static |
String concatenation in the aim of a resource definition.
- Returns
- The concatenation of the string arguments.
- Parameters
-
STR_1 | First string. |
STR_2 | Second string. |
STR_3 | Third string. |
STR_4 | Fourth string. |
STR_5 | Fifth string. |
◆ GetString()
const tk::String ResourceString::GetString |
( |
const LANG |
E_Lang | ) |
const |
Access to the string of a given language.
- Returns
- The string defined for the given language.
If the string does not exist for the given language, the defaultt language is used.
- Parameters
-
E_Lang | Language identifier. |
◆ HasString()
const bool ResourceString::HasString |
( |
const LANG |
E_Lang | ) |
const |
Determines whether a string exists for a given language.
- Returns
- true: The resource string has a string set for the given language.
-
false: The resource string has no string set for the given language.
- Parameters
-
E_Lang | Language identifier. |
◆ IsEmpty()
const bool ResourceString::IsEmpty |
( |
void |
| ) |
const |
Determines whether the resource string is empty (ie no string has been set for any language).
- Returns
- true: The resource string is empty.
-
false: The resource string is not empty.
◆ operator=()
Assignment operator.
- Returns
- The ResourceString instance itself.
- Parameters
-
STR_String | Source string object. |
◆ Reset()
Resets the resource string.
- Returns
- The ResourceString instance itself.
- Author
- [contrib: Oleg Smolsky, 2010, based on CLI 2.5]
◆ SetString()
ResourceString& ResourceString::SetString |
( |
const LANG |
E_Lang, |
|
|
const char *const |
STR_String |
|
) |
| |
Adds resource for a given language.
- Returns
- The ResourceString instance itself.
If a string already exists for the given language, then it is overwritten.
- Parameters
-
E_Lang | Language identifier. |
STR_String | String. |
The documentation for this class was generated from the following file: