scuffed-code/icu4c/source/common/locmap.h

61 lines
1.8 KiB
C
Raw Normal View History

1999-08-16 21:50:52 +00:00
/*
*****************************************************************************************
*
* Copyright (C) 1996-1999, International Business Machines
* Corporation and others. All Rights Reserved.
*
1999-08-16 21:50: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()
//===============================================================================
/* include this first so that we are sure to get WIN32 defined */
#include "unicode/utypes.h"
1999-08-16 21:50:52 +00:00
#if defined(WIN32) && !defined(LOCMAP_H)
#define LOCMAP_H
1999-08-16 21:50:52 +00:00
#ifdef XP_CPLUSPLUS
1999-08-16 21:50: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
U_CFUNC const char *T_convertToPosix(uint32_t hostid);
1999-08-16 21:50:52 +00:00
#endif