]> git.saurik.com Git - apple/icu.git/blame - icuSources/common/locmap.h
ICU-531.48.tar.gz
[apple/icu.git] / icuSources / common / locmap.h
CommitLineData
b75a7d8f
A
1/*
2******************************************************************************
3*
57a6839d 4* Copyright (C) 1996-2013, International Business Machines
b75a7d8f
A
5* Corporation and others. All Rights Reserved.
6*
7******************************************************************************
b75a7d8f
A
8*
9* File locmap.h : Locale Mapping Classes
b75a7d8f
A
10*
11*
12* Created by: Helena Shih
13*
14* Modification History:
15*
16* Date Name Description
17* 3/11/97 aliu Added setId().
18* 4/20/99 Madhu Added T_convertToPosix()
19* 09/18/00 george Removed the memory leaks.
20* 08/23/01 george Convert to C
21*============================================================================
22*/
23
b75a7d8f
A
24#ifndef LOCMAP_H
25#define LOCMAP_H
26
374ca955 27#include "unicode/utypes.h"
b75a7d8f 28
b75a7d8f
A
29#define LANGUAGE_LCID(hostID) (uint16_t)(0x03FF & hostID)
30
57a6839d 31U_CAPI int32_t uprv_convertToPosix(uint32_t hostid, char* posixID, int32_t posixIDCapacity, UErrorCode* status);
b75a7d8f 32
374ca955
A
33/* Don't call this function directly. Use uloc_getLCID instead. */
34U_CAPI uint32_t uprv_convertToLCID(const char *langID, const char* posixID, UErrorCode* status);
b75a7d8f
A
35
36#endif /* LOCMAP_H */
374ca955 37