1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
6 * Copyright (C) 2005, International Business Machines
7 * Corporation and others. All Rights Reserved.
9 *******************************************************************************
11 * created on: 2005jun15
12 * created by: Raymond Yang
15 #ifndef IDNA_CONF_TEST_H
16 #define IDNA_CONF_TEST_H
19 #include "unicode/ustring.h"
22 class IdnaConfTest: public IntlTest {
24 void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL);
26 virtual ~IdnaConfTest();
30 // for test file handling
35 UBool ReadAndConvertFile();
37 UBool ReadOneLine(UnicodeString&);
39 // for parsing one test record
40 UnicodeString id; // for debug & error output
41 UnicodeString namebase;
42 UnicodeString namezone;
43 int type; // 0 toascii, 1 tounicode
44 int option; // 0 UseSTD3ASCIIRules, 1 ALLOW_UNASSIGNED
45 int passfail; // 0 pass, 1 fail
47 void ExplainCodePointTag(UnicodeString& buf);
51 #endif /*IDNA_CONF_TEST_H*/