]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/cintltst/cloctst.h
ICU-64232.0.1.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 **/
39 static void TestGetAvailableLocales(void);
40/**
41 * Test functions to set and access a custom data directory
42 **/
43 static void TestDataDirectory(void);
44/**
45 * Test functions to test get ISO countries and Languages
46 **/
47 static void TestISOFunctions(void);
48/**
49 * Test functions to test get ISO3 countries and Languages Fallback
50 **/
51 static void TestISO3Fallback(void);
52/**
53 * Test functions to test get ISO3 countries and Languages for Uninstalled locales
54 **/
55 static void TestUninstalledISO3Names(void);
56 static void TestObsoleteNames(void);
57/**
58 * Test functions uloc_getDisplaynames()
59 **/
60 static void TestSimpleDisplayNames(void);
61/**
62 * Test functions uloc_getDisplaynames()
63 **/
64 static void TestVariantParsing(void);
65
374ca955
A
66 /* Test getting keyword enumeratin */
67 static void TestKeywordVariants(void);
b75a7d8f 68
374ca955
A
69 static void TestKeywordSet(void);
70 static void TestKeywordSetError(void);
71
72 /* Test getting keyword values */
73 static void TestKeywordVariantParsing(void);
74
75 /* Test warning for no data in getDisplay* */
76 static void TestDisplayNameWarning(void);
b75a7d8f 77
73c04bcf
A
78 /* Test uloc_getLocaleForLCID */
79 static void TestGetLocaleForLCID(void);
80
b75a7d8f
A
81/**
82 * routine to perform subtests, used by TestDisplayNames
83 */
84 static void doTestDisplayNames(const char* inLocale, int32_t compareIndex);
85
374ca955 86 static void TestCanonicalization(void);
3d1f044b 87 static void TestCanonicalizationBuffer(void);
374ca955
A
88
89 static void TestDisplayKeywords(void);
90
91 static void TestDisplayKeywordValues(void);
92
93 static void TestGetBaseName(void);
94
729e4ab9
A
95static void TestTrailingNull(void);
96
374ca955
A
97static void TestGetLocale(void);
98
b75a7d8f
A
99/**
100 * additional intialization for datatables storing expected values
101 */
102static void setUpDataTable(void);
103static void cleanUpDataTable(void);
374ca955
A
104/*static void displayDataTable(void);*/
105static void TestAcceptLanguage(void);
b75a7d8f 106
73c04bcf
A
107/**
108 * test locale aliases
109*/
110static void TestCalendar(void);
111static void TestDateFormat(void);
112static void TestCollation(void);
113static void TestULocale(void);
114static void TestUResourceBundle(void);
115static void TestDisplayName(void);
116
117static void TestAcceptLanguage(void);
118
46f4442e
A
119static void TestOrientation(void);
120
121static void TestLikelySubtags(void);
122
729e4ab9 123/**
3d1f044b 124 * language tag
729e4ab9
A
125 */
126static void TestForLanguageTag(void);
3d1f044b 127static void TestInvalidLanguageTag(void);
729e4ab9 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);
136
51004dcb
A
137/**
138 * locale data
139 */
140static void TestEnglishExemplarCharacters(void);
141
b75a7d8f 142#endif