ICU-1681 use uprv_strlen().

X-SVN-Rev: 7556
This commit is contained in:
Yves Arrouye 2002-02-02 00:14:27 +00:00
parent de48cf6149
commit 3ae049ff27

View File

@ -10,6 +10,7 @@
#include <stdio.h>
#include "cstring.h"
#include "uni2name.h"
#include "unicode/unifilt.h"
#include "unicode/uchar.h"
@ -93,7 +94,7 @@ void UnicodeNameTransliterator::handleTransliterate(Replaceable& text, UTransPos
UChar32 c = text.char32At(cursor);
if ((len=u_charName(c, U_UNICODE_CHAR_NAME, buf, sizeof(buf), &status)) <= 0 || U_FAILURE(status)) {
sprintf(buf, "U+%04lX", c);
len = strlen(buf);
len = uprv_strlen(buf);
}
str.truncate(1);