ICU-1250 minor sync-up

X-SVN-Rev: 5970
This commit is contained in:
Alan Liu 2001-09-28 21:00:14 +00:00
parent 831554e000
commit 0bdf74141a
2 changed files with 1 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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;
} }
} }