19#ifndef INCLUDED_I18NUTIL_SEARCHOPT_HXX
20#define INCLUDED_I18NUTIL_SEARCHOPT_HXX
23#include <com/sun/star/lang/Locale.hpp>
24#include <com/sun/star/util/SearchAlgorithms.hpp>
25#include <com/sun/star/util/SearchAlgorithms2.hpp>
26#include <com/sun/star/util/SearchOptions2.hpp>
35 switch (searchAlgorithms2)
37 case css::util::SearchAlgorithms2::ABSOLUTE:
38 return css::util::SearchAlgorithms_ABSOLUTE;
39 case css::util::SearchAlgorithms2::REGEXP:
40 return css::util::SearchAlgorithms_REGEXP;
41 case css::util::SearchAlgorithms2::APPROXIMATE:
42 return css::util::SearchAlgorithms_APPROXIMATE;
44 case css::util::SearchAlgorithms2::WILDCARD:
45 return css::util::SearchAlgorithms_ABSOLUTE;
51 switch (searchAlgorithms)
54 case css::util::SearchAlgorithms_ABSOLUTE:
55 return css::util::SearchAlgorithms2::ABSOLUTE;
56 case css::util::SearchAlgorithms_REGEXP:
57 return css::util::SearchAlgorithms2::REGEXP;
58 case css::util::SearchAlgorithms_APPROXIMATE:
59 return css::util::SearchAlgorithms2::APPROXIMATE;
84 searchString = other.searchString;
85 replaceString = other.replaceString;
87 changedChars = other.changedChars;
88 deletedChars = other.deletedChars;
89 insertedChars = other.insertedChars;
91 AlgorithmType2 = other.AlgorithmType2;
92 WildcardEscapeCharacter = other.WildcardEscapeCharacter;
99 searchString, replaceString,
101 changedChars, deletedChars, insertedChars,
102 static_cast<sal_Int32
>(transliterateFlags),
103 AlgorithmType2, WildcardEscapeCharacter);
113 , WildcardEscapeCharacter(0)
117 OUString searchString_, OUString replaceString_,
118 css::lang::Locale Locale_,
119 const sal_Int32 changedChars_,
const sal_Int32 deletedChars_,
const sal_Int32 insertedChars_,
121 const sal_Int16 AlgorithmType2_,
const sal_Int32 WildcardEscapeCharacter_)
122 : searchFlag(searchFlag_)
123 , searchString(
std::move(searchString_))
124 , replaceString(
std::move(replaceString_))
126 , changedChars(changedChars_)
127 , deletedChars(deletedChars_)
128 , insertedChars(insertedChars_)
129 , transliterateFlags(transliterateFlags_)
130 , AlgorithmType2(AlgorithmType2_)
131 , WildcardEscapeCharacter(WildcardEscapeCharacter_)
constexpr css::util::SearchAlgorithms downgradeSearchAlgorithms2(sal_Int16 searchAlgorithms2)
constexpr sal_Int16 upgradeSearchAlgorithms(css::util::SearchAlgorithms searchAlgorithms)
This is a wrapper around com::sun::star::util::SearchOptions and SearchOptions2, but using the more t...
css::util::SearchOptions2 toUnoSearchOptions2() const
TransliterationFlags transliterateFlags
SearchOptions2(const sal_Int32 searchFlag_, OUString searchString_, OUString replaceString_, css::lang::Locale Locale_, const sal_Int32 changedChars_, const sal_Int32 deletedChars_, const sal_Int32 insertedChars_, const TransliterationFlags &transliterateFlags_, const sal_Int16 AlgorithmType2_, const sal_Int32 WildcardEscapeCharacter_)
SearchOptions2 & operator=(css::util::SearchOptions2 const &other)
sal_Int32 WildcardEscapeCharacter
TransliterationFlags
This is a superset type of the com::sun::star::i18n::TransliterationModules and TransliterationModule...