https://bugs.documentfoundation.org/show_bug.cgi?id=142487

--- Comment #7 from Mike Kaganski <[email protected]> ---
So basically, the minimal reproducer is:

Sub ReplaceGermanQuotes
        Dim s$
        s = "Replace something after the 'ß': x y"
        s = Replace(s, "x", "y")
        MsgBox s
End Sub

Indeed, 'ß' is uppercased to a two-character 'SS'.
The correct way is shown in TextSearch::searchForward in
i18npool/source/search/textsearch.cxx. It creates an array of matches from
original character positions to the transliterated character positions.

Possibly we could reuse utl::TextSearch::SearchForward from
unotools/source/i18n/textsearch.cxx?

-- 
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

Reply via email to