| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * | 3 * |
| 4 * Copyright (C) 2003-2007, International Business Machines | 4 * Copyright (C) 2003-2007, 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) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 class ConversionTest : public IntlTest { | 65 class ConversionTest : public IntlTest { |
| 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 | 76 |
| 76 private: | 77 private: |
| 77 UBool | 78 UBool |
| 78 ToUnicodeCase(ConversionCase &cc, UConverterToUCallback callback, const char
*option); | 79 ToUnicodeCase(ConversionCase &cc, UConverterToUCallback callback, const char
*option); |
| 79 | 80 |
| 80 UBool | 81 UBool |
| 81 FromUnicodeCase(ConversionCase &cc, UConverterFromUCallback callback, const
char *option); | 82 FromUnicodeCase(ConversionCase &cc, UConverterFromUCallback callback, const
char *option); |
| 82 | 83 |
| 83 UBool | 84 UBool |
| 84 checkToUnicode(ConversionCase &cc, UConverter *cnv, const char *name, | 85 checkToUnicode(ConversionCase &cc, UConverter *cnv, const char *name, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 95 UConverter * | 96 UConverter * |
| 96 cnv_open(const char *name, UErrorCode &errorCode); | 97 cnv_open(const char *name, UErrorCode &errorCode); |
| 97 | 98 |
| 98 /* for testing direct UTF-8 conversion */ | 99 /* for testing direct UTF-8 conversion */ |
| 99 UConverter *utf8Cnv; | 100 UConverter *utf8Cnv; |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ | 103 #endif /* #if !UCONFIG_NO_LEGACY_CONVERSION */ |
| 103 | 104 |
| 104 #endif | 105 #endif |
| OLD | NEW |