]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/cintltst/cloctst.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / test / cintltst / cloctst.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
b75a7d8f 3/********************************************************************
729e4ab9 4 * COPYRIGHT:
b331163b 5 * Copyright (c) 1997-2014, International Business Machines Corporation and
b75a7d8f
A
6 * others. All Rights Reserved.
7 ********************************************************************/
8/********************************************************************************
9*
10* File CLOCTST.H
11*
12* Modification History:
13* Name Description
14* Madhu Katragadda Converted to C
15*********************************************************************************
16*/
17#ifndef _CLOCTEST
18#define _CLOCTEST
19
20#include "cintltst.h"
21/*C API TEST FOR LOCALE */
22
23/**
24 * Test functions to set and get data fields
25 **/
26static void TestBasicGetters(void);
27static void TestPrefixes(void);
28/**
29 * Use Locale to access Resource file data and compare against expected values
30 **/
31static void TestSimpleResourceInfo(void);
32/**
33 * Use Locale to access Resource file display names and compare against expected values
34 **/
35static void TestDisplayNames(void);
36/**
37 * Test getAvailableLocales
38 **/
340931cb
A
39static void TestGetAvailableLocales(void);
40static void TestGetAvailableLocalesByType(void);
b75a7d8f
A
41/**
42 * Test functions to set and access a custom data directory
43 **/
44 static void TestDataDirectory(void);
45/**
46 * Test functions to test get ISO countries and Languages
47 **/
48 static void TestISOFunctions(void);
49/**
50 * Test functions to test get ISO3 countries and Languages Fallback
51 **/
52 static void TestISO3Fallback(void);
53/**
54 * Test functions to test get ISO3 countries and Languages for Uninstalled locales
55 **/
56 static void TestUninstalledISO3Names(void);
57 static void TestObsoleteNames(void);
58/**
59 * Test functions uloc_getDisplaynames()
60 **/
61 static void TestSimpleDisplayNames(void);
62/**
63 * Test functions uloc_getDisplaynames()
64 **/
65 static void TestVariantParsing(void);
66
374ca955
A
67 /* Test getting keyword enumeratin */
68 static void TestKeywordVariants(void);
b75a7d8f 69
374ca955
A
70 static void TestKeywordSet(void);
71 static void TestKeywordSetError(void);
72
73 /* Test getting keyword values */
74 static void TestKeywordVariantParsing(void);
75
76 /* Test warning for no data in getDisplay* */
77 static void TestDisplayNameWarning(void);
b75a7d8f 78
73c04bcf
A
79 /* Test uloc_getLocaleForLCID */
80 static void TestGetLocaleForLCID(void);
81
b75a7d8f
A
82/**
83 * routine to perform subtests, used by TestDisplayNames
84 */
85 static void doTestDisplayNames(const char* inLocale, int32_t compareIndex);
86
374ca955 87 static void TestCanonicalization(void);
3d1f044b 88 static void TestCanonicalizationBuffer(void);
374ca955
A
89
90 static void TestDisplayKeywords(void);
91
92 static void TestDisplayKeywordValues(void);
93
94 static void TestGetBaseName(void);
95
729e4ab9
A
96static void TestTrailingNull(void);
97
374ca955
A
98static void TestGetLocale(void);
99
b75a7d8f
A
100/**
101 * additional intialization for datatables storing expected values
102 */
103static void setUpDataTable(void);
104static void cleanUpDataTable(void);
374ca955
A
105/*static void displayDataTable(void);*/
106static void TestAcceptLanguage(void);
b75a7d8f 107
73c04bcf
A
108/**
109 * test locale aliases
110*/
111static void TestCalendar(void);
112static void TestDateFormat(void);
113static void TestCollation(void);
114static void TestULocale(void);
115static void TestUResourceBundle(void);
116static void TestDisplayName(void);
117
118static void TestAcceptLanguage(void);
119
46f4442e
A
120static void TestOrientation(void);
121
122static void TestLikelySubtags(void);
123
729e4ab9 124/**
3d1f044b 125 * language tag
729e4ab9
A
126 */
127static void TestForLanguageTag(void);
128static void TestToLanguageTag(void);
3d1f044b
A
129static void TestBug20132(void);
130static void TestLangAndRegionCanonicalize(void);
51004dcb 131
b331163b
A
132static void TestToUnicodeLocaleKey(void);
133static void TestToLegacyKey(void);
134static void TestToUnicodeLocaleType(void);
135static void TestToLegacyType(void);
340931cb 136static void TestBug20149(void);
b331163b 137
51004dcb
A
138/**
139 * locale data
140 */
141static void TestEnglishExemplarCharacters(void);
142
b75a7d8f 143#endif