1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/common/locmap.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/* 1.5 +****************************************************************************** 1.6 +* 1.7 +* Copyright (C) 1996-2013, International Business Machines 1.8 +* Corporation and others. All Rights Reserved. 1.9 +* 1.10 +****************************************************************************** 1.11 +* 1.12 +* File locmap.h : Locale Mapping Classes 1.13 +* 1.14 +* 1.15 +* Created by: Helena Shih 1.16 +* 1.17 +* Modification History: 1.18 +* 1.19 +* Date Name Description 1.20 +* 3/11/97 aliu Added setId(). 1.21 +* 4/20/99 Madhu Added T_convertToPosix() 1.22 +* 09/18/00 george Removed the memory leaks. 1.23 +* 08/23/01 george Convert to C 1.24 +*============================================================================ 1.25 +*/ 1.26 + 1.27 +#ifndef LOCMAP_H 1.28 +#define LOCMAP_H 1.29 + 1.30 +#include "unicode/utypes.h" 1.31 + 1.32 +#define LANGUAGE_LCID(hostID) (uint16_t)(0x03FF & hostID) 1.33 + 1.34 +U_CAPI int32_t uprv_convertToPosix(uint32_t hostid, char* posixID, int32_t posixIDCapacity, UErrorCode* status); 1.35 + 1.36 +/* Don't call this function directly. Use uloc_getLCID instead. */ 1.37 +U_CAPI uint32_t uprv_convertToLCID(const char *langID, const char* posixID, UErrorCode* status); 1.38 + 1.39 +#endif /* LOCMAP_H */ 1.40 +