On Thu, 2015-10-08 at 08:52 +0100, Richard Wordingham wrote:
> The intent of the call is to delete one Unicode character;

I imagine you need to change signalIMDeleteSurrounding where we have
nDeletePos = nPosition + offset and
nDeleteEnd = nDeletePos + nchars
and instead of adding "offset" and adding "nchars" you need to call
getText on xText to get the string, then use
OUString::iterateCodePoints to count forward from nPosition by "offset"
IM codepoints to get the utf-16 offset for LibreOffice, and similarly
iterateCodePoints by IM nchars to get the LibreOffice utf-16 nchars to
delete.

might suck rocks for performance.

C.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to