20#ifndef INCLUDED_I18NPOOL_SOURCE_SEARCH_TEXTSEARCH_HXX
21#define INCLUDED_I18NPOOL_SOURCE_SEARCH_TEXTSEARCH_HXX
24#include <com/sun/star/util/XTextSearch2.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
31#include <unicode/regex.h>
32#include <unicode/unistr.h>
33#include <unicode/uversion.h>
46 css::util::XTextSearch2,
47 css::lang::XServiceInfo
51 css::uno::Reference < css::uno::XComponentContext >
m_xContext;
57 mutable css::uno::Reference< css::i18n::XCharacterClassification >
xCharClass;
59 css::uno::Reference< css::i18n::XExtendedTransliteration >
xTranslit;
60 css::uno::Reference< css::i18n::XExtendedTransliteration >
xTranslit2;
64 (SAL_CALL
TextSearch::*FnSrch)(
const OUString& searchStr,
106 std::unique_ptr<WLevDistance>
pWLD;
107 css::uno::Reference < css::i18n::XBreakIterator >
xBreak;
131 bool IsDelimiter(
const OUString& rStr, sal_Int32 nPos )
const;
135 const css::uno::Reference < css::uno::XComponentContext >& rxContext );
140 virtual void SAL_CALL
141 setOptions(
const css::util::SearchOptions& options )
override;
150 virtual void SAL_CALL
151 setOptions2(
const css::util::SearchOptions2& options )
override;
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual css::util::SearchResult SAL_CALL searchForward(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) override
std::unique_ptr< WLevDistance > pWLD
void RESrchPrepare(const css::util::SearchOptions2 &)
css::util::SearchResult SAL_CALL RESrchFrwrd(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos)
std::unique_ptr< TextSearchJumpTable > pJumpTable
OUString maWildcardReversePattern
bool IsDelimiter(const OUString &rStr, sal_Int32 nPos) const
css::util::SearchResult SAL_CALL WildcardSrchFrwrd(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos)
OUString maWildcardReversePattern2
css::util::SearchResult SAL_CALL RESrchBkwrd(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos)
virtual ~TextSearch() override
css::util::SearchOptions2 aSrchPara
virtual css::util::SearchResult SAL_CALL searchBackward(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) override
std::unique_ptr< TextSearchJumpTable > pJumpTable2
virtual void SAL_CALL setOptions2(const css::util::SearchOptions2 &options) override
css::uno::Reference< css::i18n::XExtendedTransliteration > xTranslit2
bool mbWildcardAllowSubstring
css::util::SearchResult SAL_CALL NSrchBkwrd(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos)
sal_uInt32 mcWildcardEscapeChar
virtual OUString SAL_CALL getImplementationName() override
css::util::SearchResult SAL_CALL ApproxSrchBkwrd(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos)
sal_Int32 GetDiff(const sal_Unicode) const
sal_Int32 sal_Int32 endPos
css::util::SearchResult SAL_CALL WildcardSrchBkwrd(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
typedef css::util::SearchResult(SAL_CALL TextSearch::*FnSrch)(const OUString &searchStr
css::uno::Reference< css::i18n::XExtendedTransliteration > xTranslit
css::util::SearchResult SAL_CALL NSrchFrwrd(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos)
virtual void SAL_CALL setOptions(const css::util::SearchOptions &options) override
css::uno::Reference< css::i18n::XCharacterClassification > xCharClass
css::util::SearchResult SAL_CALL ApproxSrchFrwrd(const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos)
std::unique_ptr< icu::RegexMatcher > pRegexMatcher
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
TextSearch(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
css::uno::Reference< css::i18n::XBreakIterator > xBreak
Weighted Levenshtein Distance (WLD)
::std::map< sal_Unicode, sal_Int32 > TextSearchJumpTable