https://bugs.documentfoundation.org/show_bug.cgi?id=78840
--- Comment #13 from Mike Kaganski <[email protected]> ---
i18npool/source/search/textsearch.cxx
TextSearch::setOptions2 handles rOptions.transliterateFlags and initializes
xTranslit for IGNORE_CASE. Then it calls RESrchPrepare, where it adds
UREGEX_CASE_INSENSITIVE to nIcuSearchFlags. Then in
searchForward/searchBackward it uses the transliteration service to get
lowercase version of original string, thus making regex engine unable to make
reasonable use of (?-i) flag.
There's a comment in TextSearch::RESrchPrepare:
> // Note that the search flag ALL_IGNORE_CASE is deprecated in UNO
> // probably because the transliteration flag IGNORE_CASE handles it as well.
So maybe in case of regex search, transliteration service should not be
used/should do nothing? The UREGEX_CASE_INSENSITIVE should already do the
trick?
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs