00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "unicode/utypes.h"
00028
00029 #if defined(WIN32) && !defined(LOCMAP_H)
00030 #define LOCMAP_H
00031
00032 #define LANGUAGE_LCID(hostID) (uint16_t)(0x03FF & hostID)
00033
00034 U_CFUNC const char *T_convertToPosix(uint32_t hostid, UErrorCode* status);
00035
00036 #ifdef XP_CPLUSPLUS
00037
00038 struct ILcidPosixMap;
00039
00040 class IGlobalLocales {
00041 public:
00051 static const char* convertToPosix(uint32_t hostid, UErrorCode* status);
00052
00062 static uint32_t convertToLCID(const char* posixID, UErrorCode* status);
00063
00073 static inline uint16_t languageLCID(uint32_t hostID) {return LANGUAGE_LCID(hostID);}
00074
00075 protected:
00076
00077
00078
00079
00080
00081
00082 static void initializeMapRegions(void);
00083 private:
00084
00085 static uint32_t LocaleCount;
00086 static ILcidPosixMap* PosixIDmap;
00087
00088 static const char* WildCard;
00089 };
00090
00091 #endif
00092
00093 #endif