From: Dom Lachowicz (doml@appligent.com)
Date: Thu Oct 31 2002 - 15:41:38 EST
New files. Contains 2 classes:
UT_LocaleTransactor. Like the MutexAcquirer, it acts to transact the
locale setting. so you might use it like this:
UT_LocaleTransactor trans(LC_NUMERIC, "C");
sprintf(str, "%f", args);
return; // locale implicitly rolled back
------------
UT_LangInfo. Has 2 meaningful constructors:
UT_LangInfo() <-- gets your language from $LANG
UT_LangInfo(const char *lang) <-- get language from passed string
$LANG can be something like:
"en", "en_US", "en_US.utf-8", "en.utf-8", "en-US", "en-US.UTF-8"
There are 6 methods:
hasLanguageField, getLanguage
hasTerritoryField, getTerritory
hasEncodingField, getEncoding
I hope to use this class in order to help sanitize the strings mess, the
spell checking mess, the system.profile mess, the help files mess, among
other things.
Dom
This archive was generated by hypermail 2.1.4 : Thu Oct 31 2002 - 15:49:45 EST