diff options
author | Eike Rathke <erack@redhat.com> | 2016-02-23 23:18:47 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-02-23 23:25:15 +0100 |
commit | 1f3357013ba1f319a3bcddf4c9a658c46e8c0390 (patch) | |
tree | f170f7bbe5759119e80ae09eafb0f9e8409dd58e /i18npool/qa/cppunit/test_textsearch.cxx | |
parent | 8af13dd19d589c9996848fab7f4967f9018751d6 (diff) |
SearchFlags::WILD_MATCH_SELECTION, SearchOptions2::WildcardEscapeCharacter
At least '\' (search in Word) and '~' (search in Excel) should be
supported as escape character.
Being able to restrict a match to entire selection instead of substring
speeds up the Calc match whole cell scenario.
Change-Id: Ice242b9cd59009f172b724e03c2cc08feda4cd3c
Diffstat (limited to 'i18npool/qa/cppunit/test_textsearch.cxx')
-rw-r--r-- | i18npool/qa/cppunit/test_textsearch.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/i18npool/qa/cppunit/test_textsearch.cxx b/i18npool/qa/cppunit/test_textsearch.cxx index 1cb14f6a14a6..893bed5f1bb9 100644 --- a/i18npool/qa/cppunit/test_textsearch.cxx +++ b/i18npool/qa/cppunit/test_textsearch.cxx @@ -145,6 +145,9 @@ void TestTextSearch::testWildcardSearch() util::SearchResult aRes; aOptions.AlgorithmType2 = util::SearchAlgorithms2::WILDCARD ; + aOptions.WildcardEscapeCharacter = '~'; + // aOptions.searchFlag = ::css::util::SearchFlags::WILD_MATCH_SELECTION; + // is not set, so substring match is allowed. aOptions.transliterateFlags = ::css::i18n::TransliterationModules::TransliterationModules_IGNORE_CASE; aText = "abAca"; |