GlobalObjects
|
Help functions to support different languages. More...
Enumerations | |
enum | EnLanguageKey { eUNDEFINED = 0 , eDEU_1 , eDEU_2 , eAUT , eFRA , eDNK , eNOR , eFIN , eSWE , eISL , eEST , eGBR , eUSA , eENUM_SIZE } |
Functions | |
__tool_export_dll int | changeLanguageChar (std::string &rsText, const std::vector< LanguageFunctions::EnLanguageKey > &rLanguageKeys) |
__tool_export_dll int | changeLanguageChar (std::string &rsText, LanguageFunctions::EnLanguageKey eLanguageKey) |
__tool_export_dll std::string | getLanguageIsoCodeByNum (EnLanguageKey eLanguageKeyNum) |
__tool_export_dll LanguageFunctions::EnLanguageKey | getLanguageKeyAsEnum (const std::string &rsLanguageKey) |
__tool_export_dll unsigned int | getLanguageKeyCount () |
__tool_export_dll std::string | toUpperString (const std::string &rsSourc) |
Help functions to support different languages.
Enumerations for countries or language codes to enable country-specific sorting.
Enumerator | |
---|---|
eUNDEFINED | Undefined. |
eDEU_1 | Sort key for the German language in Germany. Sorting according to DIN 5007-1
|
eDEU_2 | Sort key for the German language in Germany. Sorting according to DIN 5007-2
|
eAUT | Sort key for the German language in Austria.
|
eFRA | Sort key for the French language in France.
|
eDNK | Sort key for the Danish language in Denmark. |
eNOR | Sort key for the Norwegian language. Same as eDNK. |
eFIN | Sort key for the Finnish language.
|
eSWE | Sort key for the Swedish language. Same as eFIN. |
eISL | Sort key for the Icelandic language.
|
eEST | Sort key for the Estonian language.
|
eGBR | Sort key for the English language in Great Britain. |
eUSA | Sort key for the English language in the USA. |
eENUM_SIZE | With this enum you get the number of supported types. MUST be last! |
__tool_export_dll int eut::LanguageFunctions::changeLanguageChar | ( | std::string & | rsText, |
const std::vector< LanguageFunctions::EnLanguageKey > & | rLanguageKeys ) |
Converts all country-specific characters according to the language key transferred. Several language keys can be transferred, which are processed in sequence.
[in,out] | rsText | The text in which the country-specific characters are exchanged. |
[in] | rLanguageKeys | The language keys in a vector. Several sort keys can be passed in the vector, they are processed one after the other. |
__tool_export_dll int eut::LanguageFunctions::changeLanguageChar | ( | std::string & | rsText, |
LanguageFunctions::EnLanguageKey | eLanguageKey ) |
Converts all country-specific characters according to the language key transferred.
[in,out] | rsText | The text in which the country-specific characters are exchanged. |
[in] | eLanguageKey | The language key. |
Translated with www.DeepL.com/Translator (free version)
__tool_export_dll std::string eut::LanguageFunctions::getLanguageIsoCodeByNum | ( | EnLanguageKey | eLanguageKeyNum | ) |
Returns the language key as string that matches the passed enumeration value or "UNDEFINED" if no match exists.
[in] | eLanguageKeyNum | The enumeration value of the language key. |
__tool_export_dll LanguageFunctions::EnLanguageKey eut::LanguageFunctions::getLanguageKeyAsEnum | ( | const std::string & | rsLanguageKey | ) |
Returns the language key as enumeration.
[in] | rsLanguageKey | The language key as QString. |
__tool_export_dll unsigned int eut::LanguageFunctions::getLanguageKeyCount | ( | ) |
Returns the number of supported language keys.
__tool_export_dll std::string eut::LanguageFunctions::toUpperString | ( | const std::string & | rsSourc | ) |
Converts the characters in the passed string to upper case. Here special with the characters:
[in] | rsSourc | The string. |