Set and later restore a locale category. More...
#include <IniParser.h>
Public Member Functions | |
| TemporaryLocale (int category, const char *locale) | |
| ~TemporaryLocale () | |
Private Member Functions | |
| char * | my_setlocale (int category, const char *locale) |
| call setlocale but log errors | |
Private Attributes | |
| int | _category |
| char * | _oldlocale |
Set and later restore a locale category.
| TemporaryLocale::TemporaryLocale | ( | int | category, | |
| const char * | locale | |||
| ) |
References _category, _oldlocale, and my_setlocale().
| TemporaryLocale::~TemporaryLocale | ( | ) |
References _category, _oldlocale, and my_setlocale().
| char * TemporaryLocale::my_setlocale | ( | int | category, | |
| const char * | locale | |||
| ) | [private] |
call setlocale but log errors
References y2error.
Referenced by TemporaryLocale(), and ~TemporaryLocale().
int TemporaryLocale::_category [private] |
Referenced by TemporaryLocale(), and ~TemporaryLocale().
char* TemporaryLocale::_oldlocale [private] |
Referenced by TemporaryLocale(), and ~TemporaryLocale().
1.6.3