]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/cintltst/cloctst.h
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / test / cintltst / cloctst.h
CommitLineData
b75a7d8f
A
1/********************************************************************
2 * COPYRIGHT:
73c04bcf 3 * Copyright (c) 1997-2007, International Business Machines Corporation and
b75a7d8f
A
4 * others. All Rights Reserved.
5 ********************************************************************/
6/********************************************************************************
7*
8* File CLOCTST.H
9*
10* Modification History:
11* Name Description
12* Madhu Katragadda Converted to C
13*********************************************************************************
14*/
15#ifndef _CLOCTEST
16#define _CLOCTEST
17
18#include "cintltst.h"
19/*C API TEST FOR LOCALE */
20
21/**
22 * Test functions to set and get data fields
23 **/
24static void TestBasicGetters(void);
25static void TestPrefixes(void);
26/**
27 * Use Locale to access Resource file data and compare against expected values
28 **/
29static void TestSimpleResourceInfo(void);
30/**
31 * Use Locale to access Resource file display names and compare against expected values
32 **/
33static void TestDisplayNames(void);
34/**
35 * Test getAvailableLocales
36 **/
37 static void TestGetAvailableLocales(void);
38/**
39 * Test functions to set and access a custom data directory
40 **/
41 static void TestDataDirectory(void);
42/**
43 * Test functions to test get ISO countries and Languages
44 **/
45 static void TestISOFunctions(void);
46/**
47 * Test functions to test get ISO3 countries and Languages Fallback
48 **/
49 static void TestISO3Fallback(void);
50/**
51 * Test functions to test get ISO3 countries and Languages for Uninstalled locales
52 **/
53 static void TestUninstalledISO3Names(void);
54 static void TestObsoleteNames(void);
55/**
56 * Test functions uloc_getDisplaynames()
57 **/
58 static void TestSimpleDisplayNames(void);
59/**
60 * Test functions uloc_getDisplaynames()
61 **/
62 static void TestVariantParsing(void);
63
374ca955
A
64 /* Test getting keyword enumeratin */
65 static void TestKeywordVariants(void);
b75a7d8f 66
374ca955
A
67 static void TestKeywordSet(void);
68 static void TestKeywordSetError(void);
69
70 /* Test getting keyword values */
71 static void TestKeywordVariantParsing(void);
72
73 /* Test warning for no data in getDisplay* */
74 static void TestDisplayNameWarning(void);
b75a7d8f 75
73c04bcf
A
76 /* Test uloc_getLocaleForLCID */
77 static void TestGetLocaleForLCID(void);
78
b75a7d8f
A
79/**
80 * routine to perform subtests, used by TestDisplayNames
81 */
82 static void doTestDisplayNames(const char* inLocale, int32_t compareIndex);
83
374ca955
A
84 static void TestCanonicalization(void);
85
86 static void TestDisplayKeywords(void);
87
88 static void TestDisplayKeywordValues(void);
89
90 static void TestGetBaseName(void);
91
92static void TestGetLocale(void);
93
b75a7d8f
A
94/**
95 * additional intialization for datatables storing expected values
96 */
97static void setUpDataTable(void);
98static void cleanUpDataTable(void);
374ca955
A
99/*static void displayDataTable(void);*/
100static void TestAcceptLanguage(void);
b75a7d8f 101
73c04bcf
A
102/**
103 * test locale aliases
104*/
105static void TestCalendar(void);
106static void TestDateFormat(void);
107static void TestCollation(void);
108static void TestULocale(void);
109static void TestUResourceBundle(void);
110static void TestDisplayName(void);
111
112static void TestAcceptLanguage(void);
113
b75a7d8f 114#endif