]> git.saurik.com Git - apple/icu.git/blob - icuSources/common/locmap.h
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / common / locmap.h
1 /*
2 ******************************************************************************
3 *
4 * Copyright (C) 1996-2003, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 ******************************************************************************
8 */
9 /*
10 *============================================================================
11 *
12 * File locmap.h : Locale Mapping Classes
13 *
14 *
15 *
16 * Created by: Helena Shih
17 *
18 * Modification History:
19 *
20 * Date Name Description
21 * 3/11/97 aliu Added setId().
22 * 4/20/99 Madhu Added T_convertToPosix()
23 * 09/18/00 george Removed the memory leaks.
24 * 08/23/01 george Convert to C
25 *============================================================================
26 */
27
28 /* include this first so that we are sure to get WIN32 defined */
29 #include "unicode/utypes.h"
30
31 #ifndef LOCMAP_H
32 #define LOCMAP_H
33
34 U_CAPI const char* U_EXPORT2
35 uprv_defaultCodePageForLocale(const char *locale);
36
37 #ifdef WIN32
38 #define LANGUAGE_LCID(hostID) (uint16_t)(0x03FF & hostID)
39
40 U_CAPI const char *uprv_convertToPosix(uint32_t hostid, UErrorCode* status);
41
42 U_CAPI uint32_t uprv_convertToLCID(const char* posixID, UErrorCode* status);
43 #endif /* WIN32 */
44
45 #endif /* LOCMAP_H */