| OLD | NEW |
| 1 /* | 1 /* |
| 2 ****************************************************************************** | 2 ****************************************************************************** |
| 3 * Copyright (c) 1996-2011, 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 * File unorm.cpp | 6 * File unorm.cpp |
| 7 * | 7 * |
| 8 * Created by: Vladimir Weinstein 12052000 | 8 * Created by: Vladimir Weinstein 12052000 |
| 9 * | 9 * |
| 10 * Modification history : | 10 * Modification history : |
| 11 * | 11 * |
| 12 * Date Name Description | 12 * Date Name Description |
| 13 * 02/01/01 synwee Added normalization quickcheck enum and method. | 13 * 02/01/01 synwee Added normalization quickcheck enum and method. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 30 #include "unicode/udata.h" | 30 #include "unicode/udata.h" |
| 31 #include "unicode/ustring.h" | 31 #include "unicode/ustring.h" |
| 32 #include "unicode/uiter.h" | 32 #include "unicode/uiter.h" |
| 33 #include "unicode/unorm.h" | 33 #include "unicode/unorm.h" |
| 34 #include "unicode/unorm2.h" | 34 #include "unicode/unorm2.h" |
| 35 #include "normalizer2impl.h" | 35 #include "normalizer2impl.h" |
| 36 #include "unormimp.h" | 36 #include "unormimp.h" |
| 37 #include "uprops.h" | 37 #include "uprops.h" |
| 38 #include "ustr_imp.h" | 38 #include "ustr_imp.h" |
| 39 | 39 |
| 40 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) | |
| 41 | |
| 42 U_NAMESPACE_USE | 40 U_NAMESPACE_USE |
| 43 | 41 |
| 44 /* quick check functions ---------------------------------------------------- */ | 42 /* quick check functions ---------------------------------------------------- */ |
| 45 | 43 |
| 46 U_CAPI UNormalizationCheckResult U_EXPORT2 | 44 U_CAPI UNormalizationCheckResult U_EXPORT2 |
| 47 unorm_quickCheck(const UChar *src, | 45 unorm_quickCheck(const UChar *src, |
| 48 int32_t srcLength, | 46 int32_t srcLength, |
| 49 UNormalizationMode mode, | 47 UNormalizationMode mode, |
| 50 UErrorCode *pErrorCode) { | 48 UErrorCode *pErrorCode) { |
| 51 const Normalizer2 *n2=Normalizer2Factory::getInstance(mode, *pErrorCode); | 49 const Normalizer2 *n2=Normalizer2Factory::getInstance(mode, *pErrorCode); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 269 } |
| 272 FilteredNormalizer2 fn2(*n2, *uni32); | 270 FilteredNormalizer2 fn2(*n2, *uni32); |
| 273 return _concatenate(left, leftLength, right, rightLength, | 271 return _concatenate(left, leftLength, right, rightLength, |
| 274 dest, destCapacity, &fn2, pErrorCode); | 272 dest, destCapacity, &fn2, pErrorCode); |
| 275 } | 273 } |
| 276 return _concatenate(left, leftLength, right, rightLength, | 274 return _concatenate(left, leftLength, right, rightLength, |
| 277 dest, destCapacity, n2, pErrorCode); | 275 dest, destCapacity, n2, pErrorCode); |
| 278 } | 276 } |
| 279 | 277 |
| 280 #endif /* #if !UCONFIG_NO_NORMALIZATION */ | 278 #endif /* #if !UCONFIG_NO_NORMALIZATION */ |
| OLD | NEW |