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

Side by Side Diff: icu52/patches/ubrk.patch

Issue 224943002: icu local change part1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: function indentation changed Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « icu52/patches/static.analysis.patch ('k') | icu52/patches/uconv.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Index: source/common/ubrk.cpp
2 ===================================================================
3 --- source/common/ubrk.cpp (revision 120256)
4 +++ source/common/ubrk.cpp (working copy)
5 @@ -166,6 +166,13 @@
6 int32_t textLength,
7 UErrorCode* status)
8 {
9 + if (bi == NULL) {
10 + if (U_SUCCESS(*status)) {
11 + *status = U_ILLEGAL_ARGUMENT_ERROR;
12 + }
13 + return;
14 + }
15 +
16 BreakIterator *brit = (BreakIterator *)bi;
17 UText ut = UTEXT_INITIALIZER;
18 utext_openUChars(&ut, text, textLength, status);
19 @@ -181,6 +188,13 @@
20 UText *text,
21 UErrorCode *status)
22 {
23 + if (bi == NULL) {
24 + if (U_SUCCESS(*status)) {
25 + *status = U_ILLEGAL_ARGUMENT_ERROR;
26 + }
27 + return;
28 + }
29 +
30 RuleBasedBreakIterator *brit = (RuleBasedBreakIterator *)bi;
31 brit->RuleBasedBreakIterator::setText(text, *status);
32 }
OLDNEW
« no previous file with comments | « icu52/patches/static.analysis.patch ('k') | icu52/patches/uconv.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698