• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4  *******************************************************************************
5  *
6  *   Copyright (C) 2005, International Business Machines
7  *   Corporation and others.  All Rights Reserved.
8  *
9  *******************************************************************************
10  *
11  *   created on: 2005jun15
12  *   created by: Raymond Yang
13  */
14 
15 #ifndef IDNA_CONF_TEST_H
16 #define IDNA_CONF_TEST_H
17 
18 #include "intltest.h"
19 #include "unicode/ustring.h"
20 
21 
22 class IdnaConfTest: public IntlTest {
23 public:
24     void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL) override;
25     IdnaConfTest();
26     virtual ~IdnaConfTest();
27 private:
28     void Test(void);
29 
30     // for test file handling
31     UChar* base;
32     int len ;
33     int curOffset;
34 
35     int isNewlineMark();
36     UBool ReadOneLine(UnicodeString&);
37 
38     // for parsing one test record
39     UnicodeString id;   // for debug & error output
40     UnicodeString namebase;
41     UnicodeString namezone;
42     int type;     // 0 toascii,             1 tounicode
43     int option;   // 0 UseSTD3ASCIIRules,   1 ALLOW_UNASSIGNED
44     int passfail; // 0 pass,                1 fail
45 
46     void ExplainCodePointTag(UnicodeString& buf);
47     void Call();
48 };
49 
50 #endif /*IDNA_CONF_TEST_H*/
51