OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * | 3 * |
4 * Copyright (C) 2003-2007, International Business Machines | 4 * Copyright (C) 2003-2014, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 * file name: convtest.h | 8 * file name: convtest.h |
9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
11 * indentation:4 | 11 * indentation:4 |
12 * | 12 * |
13 * created on: 2003jul15 | 13 * created on: 2003jul15 |
14 * created by: Markus W. Scherer | 14 * created by: Markus W. Scherer |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 public: | 66 public: |
67 ConversionTest(); | 67 ConversionTest(); |
68 virtual ~ConversionTest(); | 68 virtual ~ConversionTest(); |
69 | 69 |
70 void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par=
0); | 70 void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par=
0); |
71 | 71 |
72 void TestToUnicode(); | 72 void TestToUnicode(); |
73 void TestFromUnicode(); | 73 void TestFromUnicode(); |
74 void TestGetUnicodeSet(); | 74 void TestGetUnicodeSet(); |
75 void TestGetUnicodeSet2(); | 75 void TestGetUnicodeSet2(); |
| 76 void TestDefaultIgnorableCallback(); |
76 | 77 |
77 private: | 78 private: |
78 UBool | 79 UBool |
79 ToUnicodeCase(ConversionCase &cc, UConverterToUCallback callback, const char
*option); | 80 ToUnicodeCase(ConversionCase &cc, UConverterToUCallback callback, const char
*option); |
80 | 81 |
81 UBool | 82 UBool |
82 FromUnicodeCase(ConversionCase &cc, UConverterFromUCallback callback, const
char *option); | 83 FromUnicodeCase(ConversionCase &cc, UConverterFromUCallback callback, const
char *option); |
83 | 84 |
84 UBool | 85 UBool |
85 checkToUnicode(ConversionCase &cc, UConverter *cnv, const char *name, | 86 checkToUnicode(ConversionCase &cc, UConverter *cnv, const char *name, |
(...skipping 10 matching lines...) Expand all Loading... |
96 UConverter * | 97 UConverter * |
97 cnv_open(const char *name, UErrorCode &errorCode); | 98 cnv_open(const char *name, UErrorCode &errorCode); |
98 | 99 |
99 /* for testing direct UTF-8 conversion */ | 100 /* for testing direct UTF-8 conversion */ |
100 UConverter *utf8Cnv; | 101 UConverter *utf8Cnv; |
101 }; | 102 }; |
102 | 103 |
103 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ | 104 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ |
104 | 105 |
105 #endif | 106 #endif |
OLD | NEW |