mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-1682 fix looping bug
X-SVN-Rev: 8033
This commit is contained in:
parent
ef674cecc7
commit
02228a0689
1 changed files with 4 additions and 4 deletions
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu/source/i18n/Attic/caniter.cpp,v $
|
||||
* $Date: 2002/03/13 18:29:24 $
|
||||
* $Revision: 1.7 $
|
||||
* $Date: 2002/03/14 23:53:29 $
|
||||
* $Revision: 1.8 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
|
@ -344,7 +344,7 @@ Hashtable *CanonicalIterator::getEquivalents2(UnicodeString segment, UErrorCode
|
|||
|
||||
// cycle through all the characters
|
||||
UChar32 cp, limit = 0;
|
||||
int32_t i = 0, j = 0;
|
||||
int32_t i = 0, j;
|
||||
for (i = 0; i < segment.length(); i += UTF16_CHAR_LENGTH(cp)) {
|
||||
// see if any character is at the start of some decomposition
|
||||
cp = segment.char32At(i);
|
||||
|
@ -352,7 +352,7 @@ Hashtable *CanonicalIterator::getEquivalents2(UnicodeString segment, UErrorCode
|
|||
continue;
|
||||
}
|
||||
// if so, see which decompositions match
|
||||
for(cp = limit; cp < limit || uset_getSerializedRange(&starts, j++, &cp, &limit); ++cp) {
|
||||
for(j = 0, cp = limit; cp < limit || uset_getSerializedRange(&starts, j++, &cp, &limit); ++cp) {
|
||||
Hashtable *remainder = extract(cp, segment, i, workingBuffer, status);
|
||||
if (remainder == NULL) continue;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue