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

Unified Diff: source/common/ustrtrns.cpp

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/common/ustring.cpp ('k') | source/common/utext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/ustrtrns.cpp
diff --git a/source/common/ustrtrns.cpp b/source/common/ustrtrns.cpp
index 5ec22f7a8aa09bec21965e847136093f896bd6bc..2867aaa3f262494836beac3b2507ee04772da011 100644
--- a/source/common/ustrtrns.cpp
+++ b/source/common/ustrtrns.cpp
@@ -1,7 +1,9 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
******************************************************************************
*
-* Copyright (C) 2001-2014, International Business Machines
+* Copyright (C) 2001-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
@@ -291,7 +293,8 @@ utf8_nextCharSafeBodyTerminated(const uint8_t **ps, UChar32 c) {
illegal=1;
break;
}
- case 2: /*fall through*/
+ U_FALLTHROUGH;
+ case 2:
trail=(uint8_t)(*s++ - 0x80);
if(trail>0x3f) {
/* not a trail byte */
@@ -299,7 +302,8 @@ utf8_nextCharSafeBodyTerminated(const uint8_t **ps, UChar32 c) {
break;
}
c=(c<<6)|trail;
- case 1: /*fall through*/
+ U_FALLTHROUGH;
+ case 1:
trail=(uint8_t)(*s++ - 0x80);
if(trail>0x3f) {
/* not a trail byte */
@@ -362,11 +366,13 @@ utf8_nextCharSafeBodyPointer(const uint8_t **ps, const uint8_t *limit, UChar32 c
illegal=1;
break;
}
- case 2: /*fall through*/
+ U_FALLTHROUGH;
+ case 2:
trail=*s++;
c=(c<<6)|(trail&0x3f);
illegal|=(trail&0xc0)^0x80;
- case 1: /*fall through*/
+ U_FALLTHROUGH;
+ case 1:
trail=*s++;
c=(c<<6)|(trail&0x3f);
illegal|=(trail&0xc0)^0x80;
« no previous file with comments | « source/common/ustring.cpp ('k') | source/common/utext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698