#include <Locale.hh>
Public Member Functions | |
| Locale (char const *newLocale, int category=LC_ALL) | |
| virtual | ~Locale () |
Private Attributes | |
| int | fCategory |
| char * | fPrevLocale |
Definition at line 39 of file Locale.hh.
| Locale::Locale | ( | char const * | newLocale, | |
| int | category = LC_ALL | |||
| ) |
Definition at line 25 of file Locale.cpp.
References fPrevLocale, NULL, and strDup().
00026 : fCategory(category) { 00027 #ifndef LOCALE_NOT_USED 00028 fPrevLocale = strDup(setlocale(category, NULL)); 00029 setlocale(category, newLocale); 00030 #endif 00031 }
| Locale::~Locale | ( | ) | [virtual] |
Definition at line 33 of file Locale.cpp.
References fCategory, fPrevLocale, and NULL.
00033 { 00034 #ifndef LOCALE_NOT_USED 00035 if (fPrevLocale != NULL) { 00036 setlocale(fCategory, fPrevLocale); 00037 delete[] fPrevLocale; 00038 } 00039 #endif 00040 }
int Locale::fCategory [private] |
char* Locale::fPrevLocale [private] |
1.5.2