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

Unified Diff: source/common/ucnvisci.c

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/ucnvhz.c ('k') | source/common/ucnvlat1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/ucnvisci.c
diff --git a/source/common/ucnvisci.c b/source/common/ucnvisci.c
index d34d088f10618485b13e6fcc10ca4b2a1fc54191..b520fc244e30034510671298ef5916e36a30f4c2 100644
--- a/source/common/ucnvisci.c
+++ b/source/common/ucnvisci.c
@@ -1,6 +1,8 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
-* Copyright (C) 2000-2015, International Business Machines
+* Copyright (C) 2000-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* file name: ucnvisci.c
@@ -1284,7 +1286,7 @@ static void UConverter_toUnicode_ISCII_OFFSETS_LOGIC(UConverterToUnicodeArgs *ar
/* look at the pre-context and perform special processing */
switch (sourceChar) {
case ISCII_INV:
- case EXT: /*falls through*/
+ case EXT:
case ATR:
*contextCharToUnicode = (UChar)sourceChar;
@@ -1322,7 +1324,6 @@ static void UConverter_toUnicode_ISCII_OFFSETS_LOGIC(UConverterToUnicodeArgs *ar
}
break;
case 0x0A:
- /* fall through */
case 0x0D:
data->resetToDefaultToUnicode = TRUE;
GET_MAPPING(sourceChar,targetUniChar,data)
@@ -1334,7 +1335,7 @@ static void UConverter_toUnicode_ISCII_OFFSETS_LOGIC(UConverterToUnicodeArgs *ar
i=1;
found=FALSE;
for (; i<vowelSignESpecialCases[0][0]; i++) {
- U_ASSERT(i<sizeof(vowelSignESpecialCases)/sizeof(vowelSignESpecialCases[0]));
+ U_ASSERT(i<UPRV_LENGTHOF(vowelSignESpecialCases));
if (vowelSignESpecialCases[i][0]==(uint8_t)*contextCharToUnicode) {
targetUniChar=vowelSignESpecialCases[i][1];
found=TRUE;
@@ -1420,6 +1421,7 @@ static void UConverter_toUnicode_ISCII_OFFSETS_LOGIC(UConverterToUnicodeArgs *ar
/* else fall through to default */
}
/* else fall through to default */
+ U_FALLTHROUGH;
}
default:GET_MAPPING(sourceChar,targetUniChar,data)
;
« no previous file with comments | « source/common/ucnvhz.c ('k') | source/common/ucnvlat1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698