cui/source/dialogs/cuicharmap.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 351fd8f027907b079dad19c0c34b0b5fff9b27b1 Author: Caolán McNamara <[email protected]> Date: Fri Jul 28 12:26:16 2017 +0100 add comment on max char name length Change-Id: I9e542f6e131de1a05dd54a84a260453ea2edcb62 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))
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
