scuffed-code/icu4c/source/test/cintltst/cloctst.h

100 lines
2.7 KiB
C
Raw Normal View History

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2003, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/********************************************************************************
1999-08-16 21:50:52 +00:00
*
* File CLOCTST.H
*
* Modification History:
* Name Description
1999-08-16 21:50:52 +00:00
* Madhu Katragadda Converted to C
*********************************************************************************
*/
#ifndef _CLOCTEST
#define _CLOCTEST
#include "cintltst.h"
/*C API TEST FOR LOCALE */
/**
* Test functions to set and get data fields
**/
1999-08-16 21:50:52 +00:00
static void TestBasicGetters(void);
static void TestPrefixes(void);
1999-08-16 21:50:52 +00:00
/**
* Use Locale to access Resource file data and compare against expected values
**/
static void TestSimpleResourceInfo(void);
/**
* Use Locale to access Resource file display names and compare against expected values
**/
static void TestDisplayNames(void);
/**
* Test getAvailableLocales
1999-08-16 21:50:52 +00:00
**/
static void TestGetAvailableLocales(void);
/**
* Test functions to set and access a custom data directory
**/
static void TestDataDirectory(void);
/**
* Test functions to test get ISO countries and Languages
1999-08-16 21:50:52 +00:00
**/
static void TestISOFunctions(void);
/**
* Test functions to test get ISO3 countries and Languages Fallback
**/
static void TestISO3Fallback(void);
/**
* Test functions to test get ISO3 countries and Languages for Uninstalled locales
**/
static void TestUninstalledISO3Names(void);
static void TestObsoleteNames(void);
/**
* Test functions uloc_getDisplaynames()
**/
static void TestSimpleDisplayNames(void);
/**
* Test functions uloc_getDisplaynames()
**/
static void TestVariantParsing(void);
/* Make sure that the locale data is good. */
static void TestLocaleStructure(void);
/* Make sure that Country information is the same across locales, within reason. */
static void TestConsistentCountryInfo(void);
/* Make sure we can pass "de_DE@Collation=PHONEBOOK" */
static void MoreVariants(void);
/* Test getting keyword enumeratin */
static void TestKeywordVariants(void);
/* Test getting keyword values */
static void TestKeywordVariantParsing(void);
/**
1999-08-16 21:50:52 +00:00
* routine to perform subtests, used by TestDisplayNames
*/
static void doTestDisplayNames(const char* inLocale, int32_t compareIndex);
static void TestCanonicalization(void);
static void TestDisplayKeywords(void);
static void TestDisplayKeywordValues(void);
static void TestGetBaseName(void);
1999-08-16 21:50:52 +00:00
/**
* additional intialization for datatables storing expected values
*/
1999-08-16 21:50:52 +00:00
static void setUpDataTable(void);
static void cleanUpDataTable(void);
/*static void displayDataTable(void);*/
1999-08-16 21:50:52 +00:00
#endif