mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Issue #1971 - Part 2: Update ICU source to 63.2.
This commit is contained in:
parent
8df84683be
commit
1e69214382
3160 changed files with 275815 additions and 234203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
||||
// © 2016 and later: Unicode, Inc. and others.
|
||||
// License & terms of use: http://www.unicode.org/copyright.html
|
||||
/*******************************************************************************
|
||||
* Copyright (C) 2008-2016, International Business Machines Corporation and
|
||||
|
|
@ -594,7 +594,7 @@ DateIntervalInfo::getBestSkeleton(const UnicodeString& skeleton,
|
|||
const UHashElement* elem = NULL;
|
||||
while ( (elem = fIntervalPatterns->nextElement(pos)) != NULL ) {
|
||||
const UHashTok keyTok = elem->key;
|
||||
UnicodeString* skeleton = (UnicodeString*)keyTok.pointer;
|
||||
UnicodeString* newSkeleton = (UnicodeString*)keyTok.pointer;
|
||||
#ifdef DTITVINF_DEBUG
|
||||
skeleton->extract(0, skeleton->length(), result, "UTF-8");
|
||||
sprintf(mesg, "available skeletons: skeleton: %s; \n", result);
|
||||
|
|
@ -606,7 +606,7 @@ DateIntervalInfo::getBestSkeleton(const UnicodeString& skeleton,
|
|||
for ( i = 0; i < fieldLength; ++i ) {
|
||||
skeletonFieldWidth[i] = 0;
|
||||
}
|
||||
parseSkeleton(*skeleton, skeletonFieldWidth);
|
||||
parseSkeleton(*newSkeleton, skeletonFieldWidth);
|
||||
// calculate distance
|
||||
int32_t distance = 0;
|
||||
int8_t fieldDifference = 1;
|
||||
|
|
@ -632,7 +632,7 @@ DateIntervalInfo::getBestSkeleton(const UnicodeString& skeleton,
|
|||
}
|
||||
}
|
||||
if ( distance < bestDistance ) {
|
||||
bestSkeleton = skeleton;
|
||||
bestSkeleton = newSkeleton;
|
||||
bestDistance = distance;
|
||||
bestMatchDistanceInfo = fieldDifference;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue