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