| OLD | NEW |
| 1 /******************************************************************** | 1 /******************************************************************** |
| 2 * COPYRIGHT: | 2 * COPYRIGHT: |
| 3 * Copyright (c) 1997-2007, International Business Machines Corporation and | 3 * Copyright (c) 1997-2007, International Business Machines Corporation and |
| 4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
| 5 ********************************************************************/ | 5 ********************************************************************/ |
| 6 /***************************************************************************** | 6 /***************************************************************************** |
| 7 * | 7 * |
| 8 * File CCONVTST.C | 8 * File CCONVTST.C |
| 9 * | 9 * |
| 10 * Modification History: | 10 * Modification History: |
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1921 | 1921 |
| 1922 static const NameRange nameRanges[]={ | 1922 static const NameRange nameRanges[]={ |
| 1923 { "US-ASCII", 0, 0x7f, -1, -1, 0x80, 0x10ffff }, | 1923 { "US-ASCII", 0, 0x7f, -1, -1, 0x80, 0x10ffff }, |
| 1924 #if !UCONFIG_NO_LEGACY_CONVERSION | 1924 #if !UCONFIG_NO_LEGACY_CONVERSION |
| 1925 { "ibm-367", 0, 0x7f, -1, -1, 0x80, 0x10ffff }, | 1925 { "ibm-367", 0, 0x7f, -1, -1, 0x80, 0x10ffff }, |
| 1926 #endif | 1926 #endif |
| 1927 { "ISO-8859-1", 0, 0x7f, -1, -1, 0x100, 0x10ffff }, | 1927 { "ISO-8859-1", 0, 0x7f, -1, -1, 0x100, 0x10ffff }, |
| 1928 #if !UCONFIG_NO_LEGACY_CONVERSION | 1928 #if !UCONFIG_NO_LEGACY_CONVERSION |
| 1929 { "UTF-8", 0, 0xd7ff, 0xe000, 0x10ffff, 0xd800, 0xdfff }, | 1929 { "UTF-8", 0, 0xd7ff, 0xe000, 0x10ffff, 0xd800, 0xdfff }, |
| 1930 { "windows-1251", 0, 0x7f, 0x410, 0x44f, 0x3000, 0xd7ff }, | 1930 { "windows-1251", 0, 0x7f, 0x410, 0x44f, 0x3000, 0xd7ff }, |
| 1931 { "HZ", 0x410, 0x44f, 0x4e00, 0x4eff, 0xac00, 0xd7ff }, | 1931 /* HZ test case fixed and moved to intltest's conversion.txt, ticket #60
02 */ |
| 1932 { "shift-jis", 0x3041, 0x3093, 0x30a1, 0x30f3, 0x900, 0x1cff } | 1932 { "shift-jis", 0x3041, 0x3093, 0x30a1, 0x30f3, 0x900, 0x1cff } |
| 1933 #else | 1933 #else |
| 1934 { "UTF-8", 0, 0xd7ff, 0xe000, 0x10ffff, 0xd800, 0xdfff } | 1934 { "UTF-8", 0, 0xd7ff, 0xe000, 0x10ffff, 0xd800, 0xdfff } |
| 1935 #endif | 1935 #endif |
| 1936 }; | 1936 }; |
| 1937 | 1937 |
| 1938 /* open an empty set */ | 1938 /* open an empty set */ |
| 1939 set=uset_open(1, 0); | 1939 set=uset_open(1, 0); |
| 1940 | 1940 |
| 1941 count=ucnv_countAvailable(); | 1941 count=ucnv_countAvailable(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2046 } | 2046 } |
| 2047 errorCode = U_PARSE_ERROR; | 2047 errorCode = U_PARSE_ERROR; |
| 2048 /* Make sure that it does nothing if an error is passed in. Difficult to pro
per test for. */ | 2048 /* Make sure that it does nothing if an error is passed in. Difficult to pro
per test for. */ |
| 2049 ucnv_getUnicodeSet(NULL, NULL, UCNV_ROUNDTRIP_SET, &errorCode); | 2049 ucnv_getUnicodeSet(NULL, NULL, UCNV_ROUNDTRIP_SET, &errorCode); |
| 2050 if (errorCode != U_PARSE_ERROR) { | 2050 if (errorCode != U_PARSE_ERROR) { |
| 2051 log_err("error: ucnv_getUnicodeSet(NULL) returned wrong status code %s\n
", u_errorName(errorCode)); | 2051 log_err("error: ucnv_getUnicodeSet(NULL) returned wrong status code %s\n
", u_errorName(errorCode)); |
| 2052 } | 2052 } |
| 2053 | 2053 |
| 2054 uset_close(set); | 2054 uset_close(set); |
| 2055 } | 2055 } |
| OLD | NEW |