| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************** | 2 ******************************************************************************** |
| 3 * Copyright (C) 1996-2012, International Business Machines | 3 * Copyright (C) 1996-2014, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ******************************************************************************** | 5 ******************************************************************************** |
| 6 * | 6 * |
| 7 * File UCHAR.C | 7 * File UCHAR.C |
| 8 * | 8 * |
| 9 * Modification History: | 9 * Modification History: |
| 10 * | 10 * |
| 11 * Date Name Description | 11 * Date Name Description |
| 12 * 04/02/97 aliu Creation. | 12 * 04/02/97 aliu Creation. |
| 13 * 4/15/99 Madhu Updated all the function definitions for C Implement
ation | 13 * 4/15/99 Madhu Updated all the function definitions for C Implement
ation |
| (...skipping 10 matching lines...) Expand all Loading... |
| 24 #include "unicode/uscript.h" | 24 #include "unicode/uscript.h" |
| 25 #include "unicode/udata.h" | 25 #include "unicode/udata.h" |
| 26 #include "uassert.h" | 26 #include "uassert.h" |
| 27 #include "cmemory.h" | 27 #include "cmemory.h" |
| 28 #include "ucln_cmn.h" | 28 #include "ucln_cmn.h" |
| 29 #include "utrie2.h" | 29 #include "utrie2.h" |
| 30 #include "udataswp.h" | 30 #include "udataswp.h" |
| 31 #include "uprops.h" | 31 #include "uprops.h" |
| 32 #include "ustr_imp.h" | 32 #include "ustr_imp.h" |
| 33 | 33 |
| 34 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) | |
| 35 | |
| 36 /* uchar_props_data.h is machine-generated by genprops --csource */ | 34 /* uchar_props_data.h is machine-generated by genprops --csource */ |
| 37 #define INCLUDED_FROM_UCHAR_C | 35 #define INCLUDED_FROM_UCHAR_C |
| 38 #include "uchar_props_data.h" | 36 #include "uchar_props_data.h" |
| 39 | 37 |
| 40 /* constants and macros for access to the data ------------------------------ */ | 38 /* constants and macros for access to the data ------------------------------ */ |
| 41 | 39 |
| 42 /* getting a uint32_t properties word from the data */ | 40 /* getting a uint32_t properties word from the data */ |
| 43 #define GET_PROPS(c, result) ((result)=UTRIE2_GET16(&propsTrie, c)); | 41 #define GET_PROPS(c, result) ((result)=UTRIE2_GET16(&propsTrie, c)); |
| 44 | 42 |
| 45 U_CFUNC UBool | 43 U_CFUNC UBool |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 if(U_FAILURE(*pErrorCode)) { | 716 if(U_FAILURE(*pErrorCode)) { |
| 719 return; | 717 return; |
| 720 } | 718 } |
| 721 | 719 |
| 722 /* add the start code point of each same-value range of the properties vecto
rs trie */ | 720 /* add the start code point of each same-value range of the properties vecto
rs trie */ |
| 723 if(propsVectorsColumns>0) { | 721 if(propsVectorsColumns>0) { |
| 724 /* if propsVectorsColumns==0 then the properties vectors trie may not be
there at all */ | 722 /* if propsVectorsColumns==0 then the properties vectors trie may not be
there at all */ |
| 725 utrie2_enum(&propsVectorsTrie, NULL, _enumPropertyStartsRange, sa); | 723 utrie2_enum(&propsVectorsTrie, NULL, _enumPropertyStartsRange, sa); |
| 726 } | 724 } |
| 727 } | 725 } |
| OLD | NEW |