LibreOffice Module i18npool (master) 1
|
#include <textsearch.hxx>
Public Member Functions | |
TextSearch (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~TextSearch () override |
virtual void SAL_CALL | setOptions (const css::util::SearchOptions &options) override |
virtual css::util::SearchResult SAL_CALL | searchForward (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) override |
virtual css::util::SearchResult SAL_CALL | searchBackward (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) override |
virtual void SAL_CALL | setOptions2 (const css::util::SearchOptions2 &options) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Private Types | |
typedef sal_Int32 | startPos |
typedef sal_Int32 sal_Int32 | endPos |
Private Member Functions | |
typedef | css::util::SearchResult (SAL_CALL TextSearch::*FnSrch)(const OUString &searchStr |
void | MakeForwardTab () |
void | MakeForwardTab2 () |
void | MakeBackwardTab () |
void | MakeBackwardTab2 () |
sal_Int32 | GetDiff (const sal_Unicode) const |
css::util::SearchResult SAL_CALL | NSrchFrwrd (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) |
css::util::SearchResult SAL_CALL | NSrchBkwrd (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) |
css::util::SearchResult SAL_CALL | RESrchFrwrd (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) |
css::util::SearchResult SAL_CALL | RESrchBkwrd (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) |
void | RESrchPrepare (const css::util::SearchOptions2 &) |
css::util::SearchResult SAL_CALL | ApproxSrchFrwrd (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) |
css::util::SearchResult SAL_CALL | ApproxSrchBkwrd (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) |
css::util::SearchResult SAL_CALL | WildcardSrchFrwrd (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) |
css::util::SearchResult SAL_CALL | WildcardSrchBkwrd (const OUString &searchStr, sal_Int32 startPos, sal_Int32 endPos) |
bool | IsDelimiter (const OUString &rStr, sal_Int32 nPos) const |
Private Attributes | |
std::mutex | m_aMutex |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::util::SearchOptions2 | aSrchPara |
OUString | sSrchStr |
OUString | sSrchStr2 |
css::uno::Reference< css::i18n::XCharacterClassification > | xCharClass |
css::uno::Reference< css::i18n::XExtendedTransliteration > | xTranslit |
css::uno::Reference< css::i18n::XExtendedTransliteration > | xTranslit2 |
FnSrch | fnForward |
FnSrch | fnBackward |
bool | bSearchApostrophe |
std::unique_ptr< TextSearchJumpTable > | pJumpTable |
std::unique_ptr< TextSearchJumpTable > | pJumpTable2 |
bool | bIsForwardTab |
bool | bUsePrimarySrchStr |
std::unique_ptr< icu::RegexMatcher > | pRegexMatcher |
int | nLimit |
std::unique_ptr< WLevDistance > | pWLD |
css::uno::Reference< css::i18n::XBreakIterator > | xBreak |
OUString | maWildcardReversePattern |
OUString | maWildcardReversePattern2 |
sal_uInt32 | mcWildcardEscapeChar |
bool | mbWildcardAllowSubstring |
Definition at line 44 of file textsearch.hxx.
|
private |
Definition at line 65 of file textsearch.hxx.
|
private |
Definition at line 65 of file textsearch.hxx.
|
explicit |
References css::util::SearchResult().
|
overridevirtual |
Definition at line 109 of file textsearch.cxx.
References pJumpTable, pJumpTable2, pRegexMatcher, and pWLD.
|
private |
css::uno::RuntimeException |
Definition at line 1093 of file textsearch.cxx.
References aSrchPara, nLimit, pWLD, and xBreak.
Referenced by setOptions2().
|
private |
css::uno::RuntimeException |
Definition at line 1051 of file textsearch.cxx.
References aSrchPara, nLimit, pWLD, and xBreak.
Referenced by setOptions2().
|
private |
References css::util::SearchResult().
Referenced by css::util::SearchResult(), and TextSearch().
|
private |
Definition at line 679 of file textsearch.cxx.
References bUsePrimarySrchStr, pJumpTable, pJumpTable2, sSrchStr, and sSrchStr2.
Referenced by NSrchBkwrd(), and NSrchFrwrd().
|
overridevirtual |
Definition at line 1544 of file textsearch.cxx.
|
overridevirtual |
Definition at line 1555 of file textsearch.cxx.
|
private |
Definition at line 563 of file textsearch.cxx.
References aSrchPara, m_xContext, nPos, and xCharClass.
Referenced by NSrchBkwrd(), and NSrchFrwrd().
|
private |
Definition at line 633 of file textsearch.cxx.
References bIsForwardTab, n, pJumpTable, and sSrchStr.
Referenced by NSrchBkwrd().
|
private |
Definition at line 656 of file textsearch.cxx.
References bIsForwardTab, n, pJumpTable2, and sSrchStr2.
Referenced by NSrchBkwrd().
|
private |
Definition at line 582 of file textsearch.cxx.
References bIsForwardTab, n, pJumpTable, and sSrchStr.
Referenced by NSrchFrwrd().
|
private |
Definition at line 608 of file textsearch.cxx.
References bIsForwardTab, n, pJumpTable2, and sSrchStr2.
Referenced by NSrchFrwrd().
|
private |
css::uno::RuntimeException |
Definition at line 762 of file textsearch.cxx.
References aSrchPara, bUsePrimarySrchStr, GetDiff(), IsDelimiter(), MakeBackwardTab(), MakeBackwardTab2(), sSrchStr, and sSrchStr2.
Referenced by setOptions2().
|
private |
css::uno::RuntimeException |
Definition at line 699 of file textsearch.cxx.
References aSrchPara, bUsePrimarySrchStr, GetDiff(), IsDelimiter(), MakeForwardTab(), MakeForwardTab2(), sSrchStr, and sSrchStr2.
Referenced by setOptions2().
|
private |
css::uno::RuntimeException |
Definition at line 976 of file textsearch.cxx.
References i, lcl_findRegex(), and pRegexMatcher.
Referenced by setOptions2().
|
private |
css::uno::RuntimeException |
Definition at line 922 of file textsearch.cxx.
References i, lcl_findRegex(), and pRegexMatcher.
Referenced by setOptions2().
|
private |
Definition at line 833 of file textsearch.cxx.
References pRegexMatcher, SAL_INFO, sSrchStr, and sSrchStr2.
Referenced by setOptions2().
|
overridevirtual |
Definition at line 440 of file textsearch.cxx.
References aSrchPara, bSearchApostrophe, bUsePrimarySrchStr, FindPosInSeq_Impl(), fnBackward, m_aMutex, u, xTranslit, and xTranslit2.
|
overridevirtual |
Definition at line 301 of file textsearch.cxx.
References aSrchPara, bSearchApostrophe, bUsePrimarySrchStr, FindPosInSeq_Impl(), fnForward, m_aMutex, pRegexMatcher, u, xTranslit, and xTranslit2.
|
overridevirtual |
Definition at line 258 of file textsearch.cxx.
References SAL_WARN, and setOptions2().
|
overridevirtual |
Definition at line 117 of file textsearch.cxx.
References ApproxSrchBkwrd(), ApproxSrchFrwrd(), aSrchPara, bSearchApostrophe, fnBackward, fnForward, m_aMutex, m_xContext, maWildcardReversePattern, maWildcardReversePattern2, mbWildcardAllowSubstring, mcWildcardEscapeChar, nLimit, NSrchBkwrd(), NSrchFrwrd(), pJumpTable, pJumpTable2, pRegexMatcher, pWLD, RESrchBkwrd(), RESrchFrwrd(), RESrchPrepare(), SAL_WARN, sSrchStr, sSrchStr2, u, WildcardSrchBkwrd(), WildcardSrchFrwrd(), xBreak, xTranslit, and xTranslit2.
Referenced by setOptions().
|
overridevirtual |
Definition at line 1549 of file textsearch.cxx.
References cppu::supportsService().
|
private |
css::uno::RuntimeException |
Definition at line 1313 of file textsearch.cxx.
References bUsePrimarySrchStr, i, maWildcardReversePattern, maWildcardReversePattern2, mbWildcardAllowSubstring, mcWildcardEscapeChar, nIndex, sSrchStr, and sSrchStr2.
Referenced by setOptions2().
|
private |
css::uno::RuntimeException |
Definition at line 1142 of file textsearch.cxx.
References bUsePrimarySrchStr, i, mbWildcardAllowSubstring, mcWildcardEscapeChar, sSrchStr, and sSrchStr2.
Referenced by setOptions2().
|
private |
Definition at line 53 of file textsearch.hxx.
Referenced by ApproxSrchBkwrd(), ApproxSrchFrwrd(), IsDelimiter(), NSrchBkwrd(), NSrchFrwrd(), searchBackward(), searchForward(), and setOptions2().
|
private |
Definition at line 76 of file textsearch.hxx.
Referenced by MakeBackwardTab(), MakeBackwardTab2(), MakeForwardTab(), and MakeForwardTab2().
|
private |
Definition at line 71 of file textsearch.hxx.
Referenced by searchBackward(), searchForward(), and setOptions2().
|
private |
Definition at line 77 of file textsearch.hxx.
Referenced by GetDiff(), NSrchBkwrd(), NSrchFrwrd(), searchBackward(), searchForward(), WildcardSrchBkwrd(), and WildcardSrchFrwrd().
|
private |
Definition at line 68 of file textsearch.hxx.
Referenced by searchBackward(), and setOptions2().
|
private |
Definition at line 67 of file textsearch.hxx.
Referenced by searchForward(), and setOptions2().
|
private |
Definition at line 50 of file textsearch.hxx.
Referenced by searchBackward(), searchForward(), and setOptions2().
|
private |
Definition at line 51 of file textsearch.hxx.
Referenced by IsDelimiter(), and setOptions2().
|
private |
Definition at line 118 of file textsearch.hxx.
Referenced by setOptions2(), and WildcardSrchBkwrd().
|
private |
Definition at line 119 of file textsearch.hxx.
Referenced by setOptions2(), and WildcardSrchBkwrd().
|
private |
Definition at line 121 of file textsearch.hxx.
Referenced by setOptions2(), WildcardSrchBkwrd(), and WildcardSrchFrwrd().
|
private |
Definition at line 120 of file textsearch.hxx.
Referenced by setOptions2(), WildcardSrchBkwrd(), and WildcardSrchFrwrd().
|
private |
Definition at line 105 of file textsearch.hxx.
Referenced by ApproxSrchBkwrd(), ApproxSrchFrwrd(), and setOptions2().
|
private |
Definition at line 74 of file textsearch.hxx.
Referenced by GetDiff(), MakeBackwardTab(), MakeForwardTab(), setOptions2(), and ~TextSearch().
|
private |
Definition at line 75 of file textsearch.hxx.
Referenced by GetDiff(), MakeBackwardTab2(), MakeForwardTab2(), setOptions2(), and ~TextSearch().
|
private |
Definition at line 93 of file textsearch.hxx.
Referenced by RESrchBkwrd(), RESrchFrwrd(), RESrchPrepare(), searchForward(), setOptions2(), and ~TextSearch().
|
private |
Definition at line 106 of file textsearch.hxx.
Referenced by ApproxSrchBkwrd(), ApproxSrchFrwrd(), setOptions2(), and ~TextSearch().
|
private |
Definition at line 54 of file textsearch.hxx.
Referenced by GetDiff(), MakeBackwardTab(), MakeForwardTab(), NSrchBkwrd(), NSrchFrwrd(), RESrchPrepare(), setOptions2(), WildcardSrchBkwrd(), and WildcardSrchFrwrd().
|
private |
Definition at line 55 of file textsearch.hxx.
Referenced by GetDiff(), MakeBackwardTab2(), MakeForwardTab2(), NSrchBkwrd(), NSrchFrwrd(), RESrchPrepare(), setOptions2(), WildcardSrchBkwrd(), and WildcardSrchFrwrd().
|
private |
Definition at line 107 of file textsearch.hxx.
Referenced by ApproxSrchBkwrd(), ApproxSrchFrwrd(), and setOptions2().
|
mutableprivate |
Definition at line 57 of file textsearch.hxx.
Referenced by IsDelimiter().
|
private |
Definition at line 59 of file textsearch.hxx.
Referenced by searchBackward(), searchForward(), and setOptions2().
|
private |
Definition at line 60 of file textsearch.hxx.
Referenced by searchBackward(), searchForward(), and setOptions2().