|
LibreOffice Module unotools (master) 1
|
#include <textsearch.hxx>
Public Types | |
| enum class | SearchType { Normal , Regexp , Wildcard , Unknown = -1 } |
Public Member Functions | |
| SearchParam (const OUString &rText, SearchType eSrchType, bool bCaseSensitive=true, sal_uInt32 cWildEscChar='\\', bool bWildMatchSel=false) | |
| SearchParam (const SearchParam &) | |
| ~SearchParam () | |
| const OUString & | GetSrchStr () const |
| SearchType | GetSrchType () const |
| bool | IsCaseSensitive () const |
| bool | IsWildMatchSel () const |
| sal_Int32 | GetWildEscChar () const |
Static Public Member Functions | |
| static SearchType | ConvertToSearchType (bool bWildcard, bool &rbRegExp) |
| Convert configuration and document boolean settings to SearchType. More... | |
| static void | ConvertToBool (const SearchType eSearchType, bool &rbWildcard, bool &rbRegExp) |
| Convert SearchType to configuration and document boolean settings. More... | |
Private Attributes | |
| OUString | sSrchStr |
| SearchType | m_eSrchType |
| sal_uInt32 | m_cWildEscChar |
| bool | m_bCaseSense: 1 |
| bool | m_bWildMatchSel: 1 |
Definition at line 45 of file textsearch.hxx.
|
strong |
| Enumerator | |
|---|---|
| Normal | |
| Regexp | |
| Wildcard | |
| Unknown | |
Definition at line 48 of file textsearch.hxx.
| utl::SearchParam::SearchParam | ( | const OUString & | rText, |
| SearchType | eSrchType, | ||
| bool | bCaseSensitive = true, |
||
| sal_uInt32 | cWildEscChar = '\\', |
||
| bool | bWildMatchSel = false |
||
| ) |
Definition at line 45 of file textsearch.cxx.
References eType, m_bCaseSense, m_bWildMatchSel, m_cWildEscChar, m_eSrchType, and sSrchStr.
| utl::SearchParam::SearchParam | ( | const SearchParam & | rParam | ) |
Definition at line 60 of file textsearch.cxx.
References m_bCaseSense, m_bWildMatchSel, m_cWildEscChar, m_eSrchType, and sSrchStr.
| utl::SearchParam::~SearchParam | ( | ) |
Definition at line 71 of file textsearch.cxx.
|
inlinestatic |
Convert SearchType to configuration and document boolean settings.
Definition at line 69 of file textsearch.hxx.
|
inlinestatic |
Convert configuration and document boolean settings to SearchType.
If bWildcard is true it takes precedence over rbRegExp.
| rbRegExp | If true and bWildcard is also true, rbRegExp is set to false to adapt the caller's settings. |
Definition at line 56 of file textsearch.hxx.
|
inline |
Definition at line 109 of file textsearch.hxx.
Referenced by utl::TextSearch::Init().
|
inline |
Definition at line 110 of file textsearch.hxx.
Referenced by utl::TextSearch::Init().
|
inline |
Definition at line 116 of file textsearch.hxx.
Referenced by utl::TextSearch::Init().
|
inline |
Definition at line 112 of file textsearch.hxx.
Referenced by utl::TextSearch::Init().
|
inline |
Definition at line 113 of file textsearch.hxx.
Referenced by utl::TextSearch::Init().
|
private |
Definition at line 95 of file textsearch.hxx.
Referenced by SearchParam().
|
private |
Definition at line 96 of file textsearch.hxx.
Referenced by SearchParam().
|
private |
Definition at line 93 of file textsearch.hxx.
Referenced by SearchParam().
|
private |
Definition at line 91 of file textsearch.hxx.
Referenced by SearchParam().
|
private |
Definition at line 89 of file textsearch.hxx.
Referenced by SearchParam().