ICU-1250 minor sync-up
X-SVN-Rev: 5970
This commit is contained in:
parent
831554e000
commit
0bdf74141a
@ -302,7 +302,7 @@ inline int32_t posBefore(const Replaceable& str, int32_t pos) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline int32_t posAfter(const Replaceable& str, int32_t pos) {
|
inline int32_t posAfter(const Replaceable& str, int32_t pos) {
|
||||||
return (pos < str.length()) ?
|
return (pos >= 0 && pos < str.length()) ?
|
||||||
pos + UTF_CHAR_LENGTH(str.char32At(pos)) :
|
pos + UTF_CHAR_LENGTH(str.char32At(pos)) :
|
||||||
pos + 1;
|
pos + 1;
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,6 @@ void UnicodeNameTransliterator::handleTransliterate(Replaceable& text, UTransPos
|
|||||||
limit += len-1; // change in length is (len - 1)
|
limit += len-1; // change in length is (len - 1)
|
||||||
} else {
|
} else {
|
||||||
++cursor;
|
++cursor;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user