ICU-1596 oops, reverting accidental commit.
X-SVN-Rev: 7633
This commit is contained in:
parent
d395929eff
commit
c53d0e6dc1
@ -176,16 +176,8 @@ u_charName(UChar32 code, UCharNameChoice nameChoice,
|
||||
}
|
||||
|
||||
if(i==0) {
|
||||
if (nameChoice == U_UNICODE_EXTENDED_CHAR_NAME) {
|
||||
/* extended character name */
|
||||
length=getName(uCharNames, (uint32_t)code, U_UNICODE_CHAR_NAME, buffer, (uint16_t)bufferLength);
|
||||
if (!length && u_charType(code) == U_CONTROL_CHAR) {
|
||||
length=getName(uCharNames, (uint32_t)code, U_UNICODE_CHAR_NAME, buffer, (uint16_t)bufferLength);
|
||||
}
|
||||
} else {
|
||||
/* normal character name */
|
||||
length=getName(uCharNames, (uint32_t)code, nameChoice, buffer, (uint16_t)bufferLength);
|
||||
}
|
||||
/* normal character name */
|
||||
length=getName(uCharNames, (uint32_t)code, nameChoice, buffer, (uint16_t)bufferLength);
|
||||
}
|
||||
|
||||
return u_terminateChars(buffer, bufferLength, length, pErrorCode);
|
||||
@ -1211,12 +1203,3 @@ findNameDummy(void *context,
|
||||
const char *name, UTextOffset length) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Hey, Emacs, please set the following:
|
||||
*
|
||||
* Local Variables:
|
||||
* indent-tabs-mode: nil
|
||||
* End:
|
||||
*
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user