Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IGlobalLocales Class Reference

#include <locmap.h>

List of all members.

Static Public Methods

const char* convertToPosix (uint32_t hostid, UErrorCode* status)
 Convert a Windows LCID number to an ICU locale name. More...

uint32_t convertToLCID (const char* posixID, UErrorCode* status)
 Convert an ICU locale name to a Windows LCID number. More...

uint16_t languageLCID (uint32_t hostID)
 Convert a Windows LCID number to a Windows language ID. More...


Static Protected Methods

void initializeMapRegions (void)


Member Function Documentation

uint32_t IGlobalLocales::convertToLCID ( const char * posixID,
UErrorCode * status ) [static]
 

Convert an ICU locale name to a Windows LCID number.

For instance, "en_US" will be return 0x0409.

Parameters:
posixid   the Posix style locale id.
status   gets set to U_ILLEGAL_ARGUMENT_ERROR when the Posix ID has no equivalent Windows LCID.
Returns:
the LCID

const char * IGlobalLocales::convertToPosix ( uint32_t hostid,
UErrorCode * status ) [static]
 

Convert a Windows LCID number to an ICU locale name.

For instance, 0x0409 will be return "en_US".

Parameters:
hostid   the Windows LCID number.
status   gets set to U_ILLEGAL_ARGUMENT_ERROR when the LCID has no equivalent ICU locale.
Returns:
ICU locale

void IGlobalLocales::initializeMapRegions ( void ) [static, protected]
 

uint16_t IGlobalLocales::languageLCID ( uint32_t hostID ) [inline, static]
 

Convert a Windows LCID number to a Windows language ID.

This removes the sort ID from the LCID. For instance, information about the modern sort verses traditional sort on Spanish is removed from the ID.

Parameters:
hostid   the Windows LCID number.
Returns:
the language part of the LCID

Definition at line 73 of file locmap.h.


The documentation for this class was generated from the following file:
Generated at Tue Dec 5 17:56:09 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000