![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cLanguage.h>
Public Member Functions | |
cLanguageID () noexcept | |
cLanguageID (const char *pszInit) | |
cLanguageID (UINT32 dwLang) noexcept | |
bool | isLangSet () const noexcept |
bool | isLangValid () const noexcept |
const char * | get_LangStr () const |
const char * | get_LangStrDef () const |
bool | put_LangStr (const char *pszLang=nullptr) |
UINT32 | get_LangDWord () const |
bool | put_LangDWord (UINT32 dwLang) |
bool | operator== (const cLanguageID &lang) const |
void | SetLangDefault () noexcept |
Static Public Attributes | |
static const char *const | k_ENU = "ENU" |
Protected Member Functions | |
void | SetLangTerminated () noexcept |
bool | isLangTerminated () const noexcept |
Protected Attributes | |
cUnion32 | m_u |
UNICODE language pref. ('ENU'=English) More... | |
3 letter code for language. (plus null). slightly similar to cFourCC. e.g. ENU,FRA,DEU,etc. (see "cLanguages.tbl") terminate with a 0. 0 = English default.
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
ASSERT(dwDefault==0);
|
inline |
For example 'ENU' = 0x00? (for switch statements) "#define CLANG_CODE(a,b,c) ((UINT32)(((a)<<16) | ((b)<<8) | ((c)<<0)))"
|
inline |
ASSUME isLangTerminated()
|
inline |
|
inlinenoexcept |
|
inlineprotectednoexcept |
|
inlinenoexcept |
|
inline |
default case = UPPER ?
|
inline |
|
inline |
|
inlinenoexcept |
|
inlineprotectednoexcept |
|
static |
|
protected |
UNICODE language pref. ('ENU'=English)