|
LibreOffice Module unotools (master) 1
|
#include <textsearch.hxx>
Public Member Functions | |
| TextSearch (const SearchParam &rPara, LanguageType nLanguage) | |
| TextSearch (const SearchParam &rPara, const CharClass &rCClass) | |
| TextSearch (const i18nutil::SearchOptions2 &rPara) | |
| ~TextSearch () | |
| bool | SearchForward (const OUString &rStr, sal_Int32 *pStart, sal_Int32 *pEnd, css::util::SearchResult *pRes=nullptr) |
| bool | searchForward (const OUString &rStr) |
| searchForward Search forward beginning from the start to the end of the given text More... | |
| bool | SearchBackward (const OUString &rStr, sal_Int32 *pStart, sal_Int32 *pEnd, css::util::SearchResult *pRes=nullptr) |
| void | SetLocale (const i18nutil::SearchOptions2 &rOpt, const css::lang::Locale &rLocale) |
| void | ReplaceBackReferences (OUString &rReplaceStr, std::u16string_view rStr, const css::util::SearchResult &rResult) const |
Private Member Functions | |
| void | Init (const SearchParam &rParam, const css::lang::Locale &rLocale) |
Static Private Member Functions | |
| static css::uno::Reference< css::util::XTextSearch2 > | getXTextSearch (const i18nutil::SearchOptions2 &rPara) |
Private Attributes | |
| css::uno::Reference< css::util::XTextSearch2 > | xTextSearch |
Definition at line 154 of file textsearch.hxx.
| TextSearch::TextSearch | ( | const SearchParam & | rPara, |
| LanguageType | nLanguage | ||
| ) |
Definition at line 117 of file textsearch.cxx.
References LanguageTag::convertToLocale(), Init(), LANGUAGE_NONE, and LANGUAGE_SYSTEM.
| TextSearch::TextSearch | ( | const SearchParam & | rPara, |
| const CharClass & | rCClass | ||
| ) |
Definition at line 126 of file textsearch.cxx.
References CharClass::getLanguageTag(), LanguageTag::getLocale(), and Init().
| TextSearch::TextSearch | ( | const i18nutil::SearchOptions2 & | rPara | ) |
Definition at line 131 of file textsearch.cxx.
References getXTextSearch(), and xTextSearch.
| TextSearch::~TextSearch | ( | ) |
Definition at line 184 of file textsearch.cxx.
|
staticprivate |
Definition at line 100 of file textsearch.cxx.
References utl::lcl_Equals(), and i18nutil::SearchOptions2::toUnoSearchOptions2().
Referenced by Init(), SetLocale(), and TextSearch().
|
private |
Definition at line 136 of file textsearch.cxx.
References i18nutil::SearchOptions2::AlgorithmType2, utl::SearchParam::GetSrchStr(), utl::SearchParam::GetSrchType(), utl::SearchParam::GetWildEscChar(), getXTextSearch(), utl::SearchParam::IsCaseSensitive(), utl::SearchParam::IsWildMatchSel(), i18nutil::SearchOptions2::Locale, utl::SearchParam::Normal, utl::SearchParam::Regexp, i18nutil::SearchOptions2::replaceString, i18nutil::SearchOptions2::searchFlag, i18nutil::SearchOptions2::searchString, i18nutil::SearchOptions2::transliterateFlags, utl::SearchParam::Wildcard, i18nutil::SearchOptions2::WildcardEscapeCharacter, and xTextSearch.
Referenced by TextSearch().
| void TextSearch::ReplaceBackReferences | ( | OUString & | rReplaceStr, |
| std::u16string_view | rStr, | ||
| const css::util::SearchResult & | rResult | ||
| ) | const |
Definition at line 264 of file textsearch.cxx.
| bool TextSearch::SearchBackward | ( | const OUString & | rStr, |
| sal_Int32 * | pStart, | ||
| sal_Int32 * | pEnd, | ||
| css::util::SearchResult * | pRes = nullptr |
||
| ) |
Definition at line 234 of file textsearch.cxx.
References Exception, TOOLS_WARN_EXCEPTION, and xTextSearch.
| bool TextSearch::searchForward | ( | const OUString & | rStr | ) |
searchForward Search forward beginning from the start to the end of the given text
| rStr | The text in which we search |
Definition at line 224 of file textsearch.cxx.
References SearchForward().
| bool TextSearch::SearchForward | ( | const OUString & | rStr, |
| sal_Int32 * | pStart, | ||
| sal_Int32 * | pEnd, | ||
| css::util::SearchResult * | pRes = nullptr |
||
| ) |
Definition at line 193 of file textsearch.cxx.
References Exception, TOOLS_WARN_EXCEPTION, and xTextSearch.
Referenced by searchForward().
| void TextSearch::SetLocale | ( | const i18nutil::SearchOptions2 & | rOpt, |
| const css::lang::Locale & | rLocale | ||
| ) |
Definition at line 175 of file textsearch.cxx.
References getXTextSearch(), i18nutil::SearchOptions2::Locale, and xTextSearch.
|
private |
Definition at line 160 of file textsearch.hxx.
Referenced by Init(), SearchBackward(), SearchForward(), SetLocale(), and TextSearch().