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