ICU-6412 Remove unread local variables and explicitly cast UChar to uint8_t where needed.
X-SVN-Rev: 24435
This commit is contained in:
parent
c9beb33c95
commit
4b0d511fa3
@ -2574,7 +2574,7 @@ UConverter_toUnicode_ISO_2022_KR_OFFSETS_LOGIC(UConverterToUnicodeArgs *args,
|
||||
myData->isEmptySegment = FALSE; /* we are handling it, reset to avoid future spurious errors */
|
||||
*err = U_ILLEGAL_ESCAPE_SEQUENCE;
|
||||
args->converter->toUCallbackReason = UCNV_IRREGULAR;
|
||||
args->converter->toUBytes[0] = mySourceChar;
|
||||
args->converter->toUBytes[0] = (uint8_t)mySourceChar;
|
||||
args->converter->toULength = 1;
|
||||
args->target = myTarget;
|
||||
args->source = mySource;
|
||||
|
@ -217,7 +217,7 @@ _toTitle(UCaseMap *csm,
|
||||
UErrorCode *pErrorCode) {
|
||||
const UChar *s;
|
||||
UChar32 c;
|
||||
int32_t prev, titleStart, titleLimit, titleLimitSave, index, indexSave, destIndex, length;
|
||||
int32_t prev, titleStart, titleLimit, index, destIndex, length;
|
||||
UBool isFirstIndex;
|
||||
|
||||
if(csm->iter!=NULL) {
|
||||
|
@ -1448,7 +1448,6 @@ static void TestNBSPInPattern(void) {
|
||||
{
|
||||
#define SPECIAL_PATTERN "\\u00A4\\u00A4'\\u062f.\\u0625.\\u200f\\u00a0'###0.00"
|
||||
UChar pat[200];
|
||||
char testcase2[200];
|
||||
testcase = "ar_AE special pattern: " SPECIAL_PATTERN;
|
||||
u_unescape(SPECIAL_PATTERN, pat, sizeof(pat)/sizeof(pat[0]));
|
||||
unum_applyPattern(nf, FALSE, pat, -1, NULL, &status);
|
||||
|
Loading…
Reference in New Issue
Block a user