#include <locale.h>
Public Types | |
| typedef std::list< Tag > | tag_list |
| typedef tag_list::iterator | tag_list_it |
| enum | What { LOCALE_OPEN, LOCALE_LANG, LOCALE_CLOSE, OTHERS } |
Public Methods | |
| LocaleSwitcher (tag_list tlist, std::string language, bool no_lang_warn=true) | |
| bool | operator! () const |
| std::string | get_locale () |
| returns the locale string of the specific language. More... | |
| Error | get_error () const |
Private Types | |
| typedef std::list< Language > | language_list |
| typedef language_list::iterator | language_list_it |
Private Methods | |
| bool | create_lang_list () |
| creates the language list. More... | |
| bool | is_sane () |
| returns true if tlist contains a sane system. More... | |
| bool | find_language () |
| searches for the language. More... | |
| bool | compare_language (std::string loc_lang, std::string lang) |
Private Attributes | |
| Language | lang |
| language_list | langs |
| tag_list | tlist |
| bool | is_valid |
| true if the locale system is valid. More... | |
| std::string | language |
| the current language. More... | |
| Error | error |
Friends | |
| std::ostream & | operator<< (std::ostream &, const LocaleSwitcher::Tag &t) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
creates the language list.
|
|
|
searches for the language. and stores the Language in the lang structure |
|
|
|
|
|
returns the locale string of the specific language.
|
|
|
returns true if tlist contains a sane system.
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
true if the locale system is valid.
|
|
|
|
|
|
|
|
|
the current language.
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001