1999-08-16 21:50:52 +00:00
|
|
|
/*
|
|
|
|
*****************************************************************************************
|
1999-12-13 22:28:37 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 1996-1999, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
1999-08-16 21:50:52 +00:00
|
|
|
*****************************************************************************************
|
|
|
|
*/
|
2000-01-20 22:33:52 +00:00
|
|
|
// $Revision: 1.7 $
|
1999-08-16 21:50:52 +00:00
|
|
|
//===============================================================================
|
|
|
|
//
|
|
|
|
// File locmap.hpp : Locale Mapping Classes
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Created by: Helena Shih
|
|
|
|
//
|
|
|
|
// Modification History:
|
|
|
|
//
|
|
|
|
// Date Name Description
|
|
|
|
// 3/11/97 aliu Added setId().
|
|
|
|
// 4/20/99 Madhu Added T_convertToPosix()
|
|
|
|
//===============================================================================
|
|
|
|
|
2000-01-20 22:33:52 +00:00
|
|
|
/* include this first so that we are sure to get WIN32 defined */
|
1999-12-28 23:39:02 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-01-20 22:33:52 +00:00
|
|
|
#if defined(WIN32) && !defined(LOCMAP_H)
|
|
|
|
#define LOCMAP_H
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-01-20 22:33:52 +00:00
|
|
|
#ifdef XP_CPLUSPLUS
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-01-20 22:33:52 +00:00
|
|
|
class ILcidPosixMap;
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
class IGlobalLocales {
|
|
|
|
public:
|
|
|
|
static void initializeMapRegions(void);
|
|
|
|
static const char* convertToPosix(uint32_t hostid);
|
|
|
|
static uint32_t convertToLCID(const char* posixID);
|
|
|
|
static uint16_t languageLCID(uint32_t hostID);
|
|
|
|
protected:
|
|
|
|
IGlobalLocales() { }
|
|
|
|
IGlobalLocales(const IGlobalLocales& that) { }
|
|
|
|
IGlobalLocales& operator=(const IGlobalLocales& that) { return *this;}
|
|
|
|
private:
|
|
|
|
|
|
|
|
static int32_t fgLocaleCount;
|
|
|
|
static uint32_t fgStdLang;
|
|
|
|
static const uint32_t kMapSize;
|
|
|
|
static ILcidPosixMap * fgPosixIDmap;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
~IGlobalLocales() { }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2000-01-20 22:33:52 +00:00
|
|
|
U_CFUNC const char *T_convertToPosix(uint32_t hostid);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-01-20 22:33:52 +00:00
|
|
|
#endif
|