intl/icu/source/common/ulocimp.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/common/ulocimp.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,65 @@
     1.4 +/*
     1.5 +**********************************************************************
     1.6 +*   Copyright (C) 2004-2010, International Business Machines
     1.7 +*   Corporation and others.  All Rights Reserved.
     1.8 +**********************************************************************
     1.9 +*/
    1.10 +
    1.11 +#ifndef ULOCIMP_H
    1.12 +#define ULOCIMP_H
    1.13 +
    1.14 +#include "unicode/uloc.h"
    1.15 +
    1.16 +/**
    1.17 + * Create an iterator over the specified keywords list
    1.18 + * @param keywordList double-null terminated list. Will be copied.
    1.19 + * @param keywordListSize size in bytes of keywordList
    1.20 + * @param status err code
    1.21 + * @return enumeration (owned by caller) of the keyword list.
    1.22 + * @internal ICU 3.0
    1.23 + */
    1.24 +U_CAPI UEnumeration* U_EXPORT2
    1.25 +uloc_openKeywordList(const char *keywordList, int32_t keywordListSize, UErrorCode* status);
    1.26 +
    1.27 +/**
    1.28 + * Look up a resource bundle table item with fallback on the table level.
    1.29 + * This is accessible so it can be called by C++ code.
    1.30 + */
    1.31 +U_CAPI const UChar * U_EXPORT2
    1.32 +uloc_getTableStringWithFallback(
    1.33 +    const char *path,
    1.34 +    const char *locale,
    1.35 +    const char *tableKey,
    1.36 +    const char *subTableKey,
    1.37 +    const char *itemKey,
    1.38 +    int32_t *pLength,
    1.39 +    UErrorCode *pErrorCode);
    1.40 +
    1.41 +/*returns TRUE if a is an ID separator FALSE otherwise*/
    1.42 +#define _isIDSeparator(a) (a == '_' || a == '-')
    1.43 +
    1.44 +U_CFUNC const char* 
    1.45 +uloc_getCurrentCountryID(const char* oldID);
    1.46 +
    1.47 +U_CFUNC const char* 
    1.48 +uloc_getCurrentLanguageID(const char* oldID);
    1.49 +
    1.50 +U_CFUNC int32_t
    1.51 +ulocimp_getLanguage(const char *localeID,
    1.52 +                    char *language, int32_t languageCapacity,
    1.53 +                    const char **pEnd);
    1.54 +
    1.55 +U_CFUNC int32_t
    1.56 +ulocimp_getScript(const char *localeID,
    1.57 +                   char *script, int32_t scriptCapacity,
    1.58 +                   const char **pEnd);
    1.59 +
    1.60 +U_CFUNC int32_t
    1.61 +ulocimp_getCountry(const char *localeID,
    1.62 +                   char *country, int32_t countryCapacity,
    1.63 +                   const char **pEnd);
    1.64 +
    1.65 +U_CAPI const char * U_EXPORT2
    1.66 +locale_getKeywordsStart(const char *localeID);
    1.67 +
    1.68 +#endif

mercurial