Wed, 31 Dec 2014 06:09:35 +0100
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 | * Copyright (C) 2004-2010, International Business Machines |
michael@0 | 4 | * Corporation and others. All Rights Reserved. |
michael@0 | 5 | ********************************************************************** |
michael@0 | 6 | */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef ULOCIMP_H |
michael@0 | 9 | #define ULOCIMP_H |
michael@0 | 10 | |
michael@0 | 11 | #include "unicode/uloc.h" |
michael@0 | 12 | |
michael@0 | 13 | /** |
michael@0 | 14 | * Create an iterator over the specified keywords list |
michael@0 | 15 | * @param keywordList double-null terminated list. Will be copied. |
michael@0 | 16 | * @param keywordListSize size in bytes of keywordList |
michael@0 | 17 | * @param status err code |
michael@0 | 18 | * @return enumeration (owned by caller) of the keyword list. |
michael@0 | 19 | * @internal ICU 3.0 |
michael@0 | 20 | */ |
michael@0 | 21 | U_CAPI UEnumeration* U_EXPORT2 |
michael@0 | 22 | uloc_openKeywordList(const char *keywordList, int32_t keywordListSize, UErrorCode* status); |
michael@0 | 23 | |
michael@0 | 24 | /** |
michael@0 | 25 | * Look up a resource bundle table item with fallback on the table level. |
michael@0 | 26 | * This is accessible so it can be called by C++ code. |
michael@0 | 27 | */ |
michael@0 | 28 | U_CAPI const UChar * U_EXPORT2 |
michael@0 | 29 | uloc_getTableStringWithFallback( |
michael@0 | 30 | const char *path, |
michael@0 | 31 | const char *locale, |
michael@0 | 32 | const char *tableKey, |
michael@0 | 33 | const char *subTableKey, |
michael@0 | 34 | const char *itemKey, |
michael@0 | 35 | int32_t *pLength, |
michael@0 | 36 | UErrorCode *pErrorCode); |
michael@0 | 37 | |
michael@0 | 38 | /*returns TRUE if a is an ID separator FALSE otherwise*/ |
michael@0 | 39 | #define _isIDSeparator(a) (a == '_' || a == '-') |
michael@0 | 40 | |
michael@0 | 41 | U_CFUNC const char* |
michael@0 | 42 | uloc_getCurrentCountryID(const char* oldID); |
michael@0 | 43 | |
michael@0 | 44 | U_CFUNC const char* |
michael@0 | 45 | uloc_getCurrentLanguageID(const char* oldID); |
michael@0 | 46 | |
michael@0 | 47 | U_CFUNC int32_t |
michael@0 | 48 | ulocimp_getLanguage(const char *localeID, |
michael@0 | 49 | char *language, int32_t languageCapacity, |
michael@0 | 50 | const char **pEnd); |
michael@0 | 51 | |
michael@0 | 52 | U_CFUNC int32_t |
michael@0 | 53 | ulocimp_getScript(const char *localeID, |
michael@0 | 54 | char *script, int32_t scriptCapacity, |
michael@0 | 55 | const char **pEnd); |
michael@0 | 56 | |
michael@0 | 57 | U_CFUNC int32_t |
michael@0 | 58 | ulocimp_getCountry(const char *localeID, |
michael@0 | 59 | char *country, int32_t countryCapacity, |
michael@0 | 60 | const char **pEnd); |
michael@0 | 61 | |
michael@0 | 62 | U_CAPI const char * U_EXPORT2 |
michael@0 | 63 | locale_getKeywordsStart(const char *localeID); |
michael@0 | 64 | |
michael@0 | 65 | #endif |