Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: source/common/unorm.cpp

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/common/unistr.cpp ('k') | source/common/unorm_it.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « source/common/unistr.cpp ('k') | source/common/unorm_it.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698