intl/icu/source/common/locmap.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial