summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-4.8.1/test/intltest/idnaconf.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-10 12:03:08 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-08-10 12:03:08 +0000
commit79b8b3a76d8eda7372bb4dedae0ec7aebdaebc12 (patch)
tree9e4992c8719febb576deb6120740611380d71f7a /Build/source/libs/icu/icu-4.8.1/test/intltest/idnaconf.h
parent8cd13eb8f4bb7b92c6d9bb50aff9a62c37df026c (diff)
icu 4.8.1
git-svn-id: svn://tug.org/texlive/trunk@23480 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-4.8.1/test/intltest/idnaconf.h')
-rw-r--r--Build/source/libs/icu/icu-4.8.1/test/intltest/idnaconf.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-4.8.1/test/intltest/idnaconf.h b/Build/source/libs/icu/icu-4.8.1/test/intltest/idnaconf.h
new file mode 100644
index 00000000000..35e9063ab87
--- /dev/null
+++ b/Build/source/libs/icu/icu-4.8.1/test/intltest/idnaconf.h
@@ -0,0 +1,49 @@
+/*
+ *******************************************************************************
+ *
+ * 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=NULL);
+ IdnaConfTest();
+ virtual ~IdnaConfTest();
+private:
+ void Test(void);
+
+ // for test file handling
+ UChar* base;
+ int len ;
+ int curOffset;
+
+ UBool ReadAndConvertFile();
+ 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*/