| OLD | NEW |
| 1 /* | 1 /* |
| 2 ****************************************************************************** | 2 ****************************************************************************** |
| 3 * | 3 * |
| 4 * Copyright (C) 1998-2006, International Business Machines | 4 * Copyright (C) 1998-2014, International Business Machines |
| 5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
| 6 * | 6 * |
| 7 ****************************************************************************** | 7 ****************************************************************************** |
| 8 * | 8 * |
| 9 * File ufmt_cmn.c | 9 * File ufmt_cmn.c |
| 10 * | 10 * |
| 11 * Modification History: | 11 * Modification History: |
| 12 * | 12 * |
| 13 * Date Name Description | 13 * Date Name Description |
| 14 * 12/02/98 stephen Creation. | 14 * 12/02/98 stephen Creation. |
| 15 * 03/12/99 stephen Modified for new C API. | 15 * 03/12/99 stephen Modified for new C API. |
| 16 * 03/15/99 stephen Added defaultCPToUnicode, unicodeToDefaultCP | 16 * 03/15/99 stephen Added defaultCPToUnicode, unicodeToDefaultCP |
| 17 * 07/19/99 stephen Fixed bug in defaultCPToUnicode | 17 * 07/19/99 stephen Fixed bug in defaultCPToUnicode |
| 18 ****************************************************************************** | 18 ****************************************************************************** |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "cstring.h" | 21 #include "cstring.h" |
| 22 #include "cmemory.h" | 22 #include "cmemory.h" |
| 23 #include "ufmt_cmn.h" | 23 #include "ufmt_cmn.h" |
| 24 #include "unicode/uchar.h" | 24 #include "unicode/uchar.h" |
| 25 #include "unicode/ucnv.h" | 25 #include "unicode/ucnv.h" |
| 26 #include "ustr_cnv.h" | 26 #include "ustr_cnv.h" |
| 27 | 27 |
| 28 #if !UCONFIG_NO_CONVERSION |
| 29 |
| 30 |
| 28 #define DIGIT_0 0x0030 | 31 #define DIGIT_0 0x0030 |
| 29 #define DIGIT_9 0x0039 | 32 #define DIGIT_9 0x0039 |
| 30 #define LOWERCASE_A 0x0061 | 33 #define LOWERCASE_A 0x0061 |
| 31 #define UPPERCASE_A 0x0041 | 34 #define UPPERCASE_A 0x0041 |
| 32 #define LOWERCASE_Z 0x007A | 35 #define LOWERCASE_Z 0x007A |
| 33 #define UPPERCASE_Z 0x005A | 36 #define UPPERCASE_Z 0x005A |
| 34 | 37 |
| 35 int | 38 int |
| 36 ufmt_digitvalue(UChar c) | 39 ufmt_digitvalue(UChar c) |
| 37 { | 40 { |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 /* add the null terminator */ | 247 /* add the null terminator */ |
| 245 *alias = 0x0000; | 248 *alias = 0x0000; |
| 246 } | 249 } |
| 247 | 250 |
| 248 u_releaseDefaultConverter(defConverter); | 251 u_releaseDefaultConverter(defConverter); |
| 249 | 252 |
| 250 return target; | 253 return target; |
| 251 } | 254 } |
| 252 | 255 |
| 253 | 256 |
| 257 #endif |
| OLD | NEW |