ICU-1681 use uprv_strlen().
X-SVN-Rev: 7556
This commit is contained in:
parent
de48cf6149
commit
3ae049ff27
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user