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

locmap.h

Go to the documentation of this file.
00001 /*
00002 *****************************************************************************************
00003 *
00004 *   Copyright (C) 1996-2000, International Business Machines
00005 *   Corporation and others.  All Rights Reserved.
00006 *
00007 *****************************************************************************************
00008 */
00009 // $Revision: 1.11 $
00010 //===============================================================================
00011 //
00012 // File locmap.hpp      : Locale Mapping Classes
00013 //
00014 // 
00015 //
00016 // Created by: Helena Shih
00017 //
00018 // Modification History:
00019 //
00020 //  Date        Name        Description
00021 //  3/11/97     aliu        Added setId().
00022 //  4/20/99     Madhu       Added T_convertToPosix()
00023 // 09/18/00     george      Removed the memory leaks.
00024 //===============================================================================
00025 
00026 /* include this first so that we are sure to get WIN32 defined */
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 //    IGlobalLocales() {}
00077 //    IGlobalLocales(const IGlobalLocales&/* that*/) {}
00078 //    IGlobalLocales& operator=(const IGlobalLocales&/* that*/) {return *this;}
00079 
00080 //    ~IGlobalLocales() {}
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

Generated at Tue Dec 5 17:55:29 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000