]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/cloctst.h
1 /********************************************************************
3 * Copyright (c) 1997-2013, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6 /********************************************************************************
10 * Modification History:
12 * Madhu Katragadda Converted to C
13 *********************************************************************************
19 /*C API TEST FOR LOCALE */
22 * Test functions to set and get data fields
24 static void TestBasicGetters(void);
25 static void TestPrefixes(void);
27 * Use Locale to access Resource file data and compare against expected values
29 static void TestSimpleResourceInfo(void);
31 * Use Locale to access Resource file display names and compare against expected values
33 static void TestDisplayNames(void);
35 * Test getAvailableLocales
37 static void TestGetAvailableLocales(void);
39 * Test functions to set and access a custom data directory
41 static void TestDataDirectory(void);
43 * Test functions to test get ISO countries and Languages
45 static void TestISOFunctions(void);
47 * Test functions to test get ISO3 countries and Languages Fallback
49 static void TestISO3Fallback(void);
51 * Test functions to test get ISO3 countries and Languages for Uninstalled locales
53 static void TestUninstalledISO3Names(void);
54 static void TestObsoleteNames(void);
56 * Test functions uloc_getDisplaynames()
58 static void TestSimpleDisplayNames(void);
60 * Test functions uloc_getDisplaynames()
62 static void TestVariantParsing(void);
64 /* Test getting keyword enumeratin */
65 static void TestKeywordVariants(void);
67 static void TestKeywordSet(void);
68 static void TestKeywordSetError(void);
70 /* Test getting keyword values */
71 static void TestKeywordVariantParsing(void);
73 /* Test warning for no data in getDisplay* */
74 static void TestDisplayNameWarning(void);
76 /* Test uloc_getLocaleForLCID */
77 static void TestGetLocaleForLCID(void);
80 * routine to perform subtests, used by TestDisplayNames
82 static void doTestDisplayNames(const char* inLocale
, int32_t compareIndex
);
84 static void TestCanonicalization(void);
86 static void TestDisplayKeywords(void);
88 static void TestDisplayKeywordValues(void);
90 static void TestGetBaseName(void);
92 static void TestTrailingNull(void);
94 static void TestGetLocale(void);
97 * additional intialization for datatables storing expected values
99 static void setUpDataTable(void);
100 static void cleanUpDataTable(void);
101 /*static void displayDataTable(void);*/
102 static void TestAcceptLanguage(void);
105 * test locale aliases
107 static void TestCalendar(void);
108 static void TestDateFormat(void);
109 static void TestCollation(void);
110 static void TestULocale(void);
111 static void TestUResourceBundle(void);
112 static void TestDisplayName(void);
114 static void TestAcceptLanguage(void);
116 static void TestOrientation(void);
118 static void TestLikelySubtags(void);
123 static void TestForLanguageTag(void);
124 static void TestToLanguageTag(void);
129 static void TestEnglishExemplarCharacters(void);