michael@0: /* michael@0: ****************************************************************************** michael@0: * michael@0: * Copyright (C) 1996-2013, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: * michael@0: ****************************************************************************** michael@0: * michael@0: * File locmap.h : Locale Mapping Classes michael@0: * michael@0: * michael@0: * Created by: Helena Shih michael@0: * michael@0: * Modification History: michael@0: * michael@0: * Date Name Description michael@0: * 3/11/97 aliu Added setId(). michael@0: * 4/20/99 Madhu Added T_convertToPosix() michael@0: * 09/18/00 george Removed the memory leaks. michael@0: * 08/23/01 george Convert to C michael@0: *============================================================================ michael@0: */ michael@0: michael@0: #ifndef LOCMAP_H michael@0: #define LOCMAP_H michael@0: michael@0: #include "unicode/utypes.h" michael@0: michael@0: #define LANGUAGE_LCID(hostID) (uint16_t)(0x03FF & hostID) michael@0: michael@0: U_CAPI int32_t uprv_convertToPosix(uint32_t hostid, char* posixID, int32_t posixIDCapacity, UErrorCode* status); michael@0: michael@0: /* Don't call this function directly. Use uloc_getLCID instead. */ michael@0: U_CAPI uint32_t uprv_convertToLCID(const char *langID, const char* posixID, UErrorCode* status); michael@0: michael@0: #endif /* LOCMAP_H */ michael@0: