tdf#132388: reimplement fix for tdf#142487
commit8efa3dd53aaf98ed258c9f340800504c9e874b78
authorMike Kaganski <mike.kaganski@collabora.com>
Sun, 30 Jan 2022 11:12:46 +0000 (30 14:12 +0300)
committerXisco Fauli <xiscofauli@libreoffice.org>
Tue, 1 Feb 2022 12:55:48 +0000 (1 13:55 +0100)
treed3de67436219b59cd5533244fdf84e9a7adedb89
parentbd46c840f363b9aa5dcd47ea03c40430e9eb5593
tdf#132388: reimplement fix for tdf#142487

Each call to css::i18n::XTextSearch::SearchForward transliterates input string,
making performance of repeated calls unacceptable. So prepare the transliterated
strings once, and use the offset sequence to map search results to indices into
original string.

Change-Id: Ie08dd5a408aca9a950067db285a480b41a3f9a16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129162
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129208
basic/source/runtime/methods.cxx