Public Member Functions | |
LocaleSettings () | |
const LangCode & | getPreferredLocale () const |
const LocaleSet & | getRequestedLocales () const |
bool | setPreferredLocale (LangCode newLocale_r) |
bool | setRequestedLocales (const LocaleSet &newLocales_r, LocaleSet &failedSet_r, LocaleSet &addSet_r, LocaleSet &delSet_r) |
bool | setRequestedLocales (const LocaleSet &newLocales_r) |
bool | addRequestedLocales (const LocaleSet &addLocales_r, LocaleSet &failedSet_r, LocaleSet &addSet_r) |
bool | addRequestedLocales (const LocaleSet &addLocales_r) |
bool | delRequestedLocales (const LocaleSet &delLocales_r, LocaleSet &failedSet_r, LocaleSet &delSet_r) |
bool | delRequestedLocales (const LocaleSet &delLocales_r) |
Static Public Member Functions | |
bool | purge (LangCode &lang_r) |
bool | purge (LocaleSet &langset_r, LocaleSet &failedSet_r) |
Static Public Attributes | |
LangCode | _locale_fallback |
Private Attributes | |
LangCode | _preferred_locale |
LocaleSet | _requested_locales |
|
|
|
Add addLocales_r to requested_locales. Return true if value actually changed. |
|
Add addLocales_r to requested_locales. Return true if value actually changed. Ignored and added locale values are passed back. |
|
Delete delLocales_r from requested_locales. Return true if value actually changed. |
|
Delete delLocales_r from requested_locales. Return true if value actually changed. Ignored and deleted locale values are passed back. |
|
|
|
|
|
purge values in langset and return true if langset is not empty after this. Ignored locale values are returned via failedSet_r. |
|
Strip any trailing '[@.].*' from lang_r and return true if lang_r is not empty after this. |
|
Set preferred_locale. Return true if value actually changed. |
|
Set requested_locales. Return true if value actually changed. |
|
Set requested_locales. Return true if value actually changed. Ignored, added and deleted locale values are passed back. |
|
|
|
|
|
|