From 351fd8f027907b079dad19c0c34b0b5fff9b27b1 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 28 Jul 2017 12:26:16 +0100 Subject: add comment on max char name length Change-Id: I9e542f6e131de1a05dd54a84a260453ea2edcb62 --- cui/source/dialogs/cuicharmap.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index 4cdb9284dcb4..b535fd95b525 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -663,6 +663,8 @@ void SvxCharacterMap::setCharName(sal_UCS4 nDecimalValue) { /* get the character name */ UErrorCode errorCode = U_ZERO_ERROR; + // icu has a private uprv_getMaxCharNameLength function which returns the max possible + // length of this property. Unicode 3.2 max char name length was 83 char buffer[100]; u_charName(nDecimalValue, U_UNICODE_CHAR_NAME, buffer, sizeof(buffer), &errorCode); if (U_SUCCESS(errorCode)) -- cgit