OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * | 3 * |
4 * Copyright (C) 2004-2012, International Business Machines | 4 * Copyright (C) 2004-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: ucase.cpp | 8 * file name: ucase.cpp |
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: 2004aug30 | 13 * created on: 2004aug30 |
14 * created by: Markus W. Scherer | 14 * created by: Markus W. Scherer |
15 * | 15 * |
16 * Low-level Unicode character/string case mapping code. | 16 * Low-level Unicode character/string case mapping code. |
17 * Much code moved here (and modified) from uchar.c. | 17 * Much code moved here (and modified) from uchar.c. |
18 */ | 18 */ |
19 | 19 |
20 #include "unicode/utypes.h" | 20 #include "unicode/utypes.h" |
21 #include "unicode/unistr.h" | 21 #include "unicode/unistr.h" |
22 #include "unicode/uset.h" | 22 #include "unicode/uset.h" |
23 #include "unicode/udata.h" /* UDataInfo */ | 23 #include "unicode/udata.h" /* UDataInfo */ |
24 #include "unicode/utf16.h" | 24 #include "unicode/utf16.h" |
25 #include "ucmndata.h" /* DataHeader */ | 25 #include "ucmndata.h" /* DataHeader */ |
26 #include "udatamem.h" | 26 #include "udatamem.h" |
27 #include "umutex.h" | 27 #include "umutex.h" |
28 #include "uassert.h" | 28 #include "uassert.h" |
29 #include "cmemory.h" | 29 #include "cmemory.h" |
30 #include "utrie2.h" | 30 #include "utrie2.h" |
31 #include "ucase.h" | 31 #include "ucase.h" |
32 #include "ucln_cmn.h" | |
33 | 32 |
34 struct UCaseProps { | 33 struct UCaseProps { |
35 UDataMemory *mem; | 34 UDataMemory *mem; |
36 const int32_t *indexes; | 35 const int32_t *indexes; |
37 const uint16_t *exceptions; | 36 const uint16_t *exceptions; |
38 const uint16_t *unfold; | 37 const uint16_t *unfold; |
39 | 38 |
40 UTrie2 trie; | 39 UTrie2 trie; |
41 uint8_t formatVersion[4]; | 40 uint8_t formatVersion[4]; |
42 }; | 41 }; |
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 case UCHAR_CHANGES_WHEN_CASEMAPPED: | 1311 case UCHAR_CHANGES_WHEN_CASEMAPPED: |
1313 locCache=UCASE_LOC_ROOT; | 1312 locCache=UCASE_LOC_ROOT; |
1314 return (UBool)( | 1313 return (UBool)( |
1315 ucase_toFullLower(csp, c, NULL, NULL, &resultString, "", &locCache)>
=0 || | 1314 ucase_toFullLower(csp, c, NULL, NULL, &resultString, "", &locCache)>
=0 || |
1316 ucase_toFullUpper(csp, c, NULL, NULL, &resultString, "", &locCache)>
=0 || | 1315 ucase_toFullUpper(csp, c, NULL, NULL, &resultString, "", &locCache)>
=0 || |
1317 ucase_toFullTitle(csp, c, NULL, NULL, &resultString, "", &locCache)>
=0); | 1316 ucase_toFullTitle(csp, c, NULL, NULL, &resultString, "", &locCache)>
=0); |
1318 default: | 1317 default: |
1319 return FALSE; | 1318 return FALSE; |
1320 } | 1319 } |
1321 } | 1320 } |
OLD | NEW |