X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b331163bffd790ced0e88b73f44f86d49ccc48a5..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/common/ucnvmbcs.cpp diff --git a/icuSources/common/ucnvmbcs.cpp b/icuSources/common/ucnvmbcs.cpp index f03f8a88..010b086e 100644 --- a/icuSources/common/ucnvmbcs.cpp +++ b/icuSources/common/ucnvmbcs.cpp @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 2000-2014, International Business Machines +* Copyright (C) 2000-2016, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** @@ -510,7 +510,7 @@ static const UConverterImpl _MBCSImpl={ const UConverterSharedData _MBCSData={ sizeof(UConverterSharedData), 1, - NULL, NULL, NULL, FALSE, &_MBCSImpl, + NULL, NULL, FALSE, TRUE, &_MBCSImpl, 0, UCNV_MBCS_TABLE_INITIALIZER }; @@ -963,11 +963,14 @@ ucnv_MBCSGetFilteredUnicodeSetForUnicode(const UConverterSharedData *sharedData, switch(st3Multiplier) { case 4: b|=*stage3++; - case 3: /*fall through*/ + U_FALLTHROUGH; + case 3: b|=*stage3++; - case 2: /*fall through*/ + U_FALLTHROUGH; + case 2: b|=stage3[0]|stage3[1]; stage3+=2; + U_FALLTHROUGH; default: break; } @@ -4634,12 +4637,16 @@ unassigned: /* each branch falls through to the next one */ case 4: *target++=(uint8_t)(value>>24); - case 3: /*fall through*/ + U_FALLTHROUGH; + case 3: *target++=(uint8_t)(value>>16); - case 2: /*fall through*/ + U_FALLTHROUGH; + case 2: *target++=(uint8_t)(value>>8); - case 1: /*fall through*/ + U_FALLTHROUGH; + case 1: *target++=(uint8_t)value; + U_FALLTHROUGH; default: /* will never occur */ break; @@ -4650,15 +4657,19 @@ unassigned: case 4: *target++=(uint8_t)(value>>24); *offsets++=sourceIndex; - case 3: /*fall through*/ + U_FALLTHROUGH; + case 3: *target++=(uint8_t)(value>>16); *offsets++=sourceIndex; - case 2: /*fall through*/ + U_FALLTHROUGH; + case 2: *target++=(uint8_t)(value>>8); *offsets++=sourceIndex; - case 1: /*fall through*/ + U_FALLTHROUGH; + case 1: *target++=(uint8_t)value; *offsets++=sourceIndex; + U_FALLTHROUGH; default: /* will never occur */ break; @@ -4681,10 +4692,13 @@ unassigned: /* each branch falls through to the next one */ case 3: *charErrorBuffer++=(uint8_t)(value>>16); - case 2: /*fall through*/ + U_FALLTHROUGH; + case 2: *charErrorBuffer++=(uint8_t)(value>>8); - case 1: /*fall through*/ + U_FALLTHROUGH; + case 1: *charErrorBuffer=(uint8_t)value; + U_FALLTHROUGH; default: /* will never occur */ break; @@ -4700,16 +4714,19 @@ unassigned: if(offsets!=NULL) { *offsets++=sourceIndex; } - case 2: /*fall through*/ + U_FALLTHROUGH; + case 2: *target++=(uint8_t)(value>>8); if(offsets!=NULL) { *offsets++=sourceIndex; } - case 1: /*fall through*/ + U_FALLTHROUGH; + case 1: *target++=(uint8_t)value; if(offsets!=NULL) { *offsets++=sourceIndex; } + U_FALLTHROUGH; default: /* will never occur */ break;