]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/idnaconf.h
ICU-400.42.tar.gz
[apple/icu.git] / icuSources / test / intltest / idnaconf.h
1 /*
2 *******************************************************************************
3 *
4 * Copyright (C) 2005, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 *******************************************************************************
8 *
9 * created on: 2005jun15
10 * created by: Raymond Yang
11 */
12
13 #ifndef IDNA_CONF_TEST_H
14 #define IDNA_CONF_TEST_H
15
16 #include "intltest.h"
17 #include "unicode/ustring.h"
18
19
20 class IdnaConfTest: public IntlTest {
21 public:
22 void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL);
23 IdnaConfTest();
24 virtual ~IdnaConfTest();
25 private:
26 void Test(void);
27
28 // for test file handling
29 UChar* base;
30 int len ;
31 int curOffset;
32
33 UBool ReadAndConvertFile();
34 int isNewlineMark();
35 UBool ReadOneLine(UnicodeString&);
36
37 // for parsing one test record
38 UnicodeString id; // for debug & error output
39 UnicodeString namebase;
40 UnicodeString namezone;
41 int type; // 0 toascii, 1 tounicode
42 int option; // 0 UseSTD3ASCIIRules, 1 ALLOW_UNASSIGNED
43 int passfail; // 0 pass, 1 fail
44
45 void ExplainCodePointTag(UnicodeString& buf);
46 void Call();
47 };
48
49 #endif /*IDNA_CONF_TEST_H*/