Accessing locales

TLocale provides the protocol for accessing any locale in the locale hierarchy. TLocale is a lightweight object that you can instantiate freely.

Any TLocale instance can be set to reference any locale that exists in the system's locale hierarchy. Use these TLocale member functions to retrieve a specific locale:

For example, this code gives you access to the current locale:

      TLocale currentLocale;
      TLocale::GetCurrentLocale(currentLocale);
TLocale also provides these functions to retrieve locales relative in the hierarchy to a particular locale:


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker