<ct_fixed_
string_input_param replace_text>
97 template<
typename_Matched,
typename_Iterator>
103 template<
size_tId>
105 return matched.template get<Id>().to_view();
107 template<ct_fixed_
string_input_param Name>
110 return matched.template get<ctll_name>().to_view();
114 template<
TReplaceOpTypekind,
typename_Search,
typename_Input,
typename...TArgs>
116 size_t replace_many(std::integral_constant<TReplaceOpType, kind>,
const_Search& search, _Input
whole, std::basic_string<char_type, TArgs...>&
output)
118 autocurrent =
whole.begin();
119 automatched = search(current,
whole.end());
129 autofront_part_len = std::distance(current, matched.begin());
130 if(front_part_len) {
131 output.append(current, matched.begin());
135 autoe =
whole.end();
137 TContext<decltype(matched), decltype(
b)>
ctx{matched,
b, e};
141current = matched.end();
144matched = search(current,
whole.end());
157 template<
typename_Search,
typename...TArgs>
161std::basic_string_view<char_type> input(
orig);
168 autofront_part = std::distance(input.begin(),
results.begin());
170 auto b= input.begin();
171 autoe = input.end();
178 orig.replace(front_part,
results.size(), replacement);
180 autoback_part = front_part +
results.size();
185 out= input.substr(0, front_part);
191 out.append(input.substr(back_part));
212 staticconstexpr
auto search_func= ::ctre::search<s_search_text>;
219 bool operator()(std::basic_string<char_type, TMoreArgs...>& input)
const 228input = std::move(
output);
233 template<
typename...TMoreArgs>
239 template<
typename...TMoreArgs>
243 return(num_replaced>0);
246 template<
typename_T>
254input = std::move(
output);
260 template<
auto..._SearchArgs,
typename= std::enable_if_t<std::is_same_v<char,
typenamesearch_replace_op<_SearchArgs...>
::char_type>>>
268 template<
auto..._SearchArgs,
typename= std::enable_if_t<std::is_same_v<wchar_t,
typenamesearch_replace_op<_SearchArgs...>
::char_type>>>
277 template<
typename _T,
auto..._SearchArgs>
281 returnstd::move(input);
284 template<
typename _T,
auto...TArgs>
287 return operator|(input.to_view(), next_op);
static void apply_all(_Context &ctx, std::basic_string< char_type, TArgs... > &out)
static auto get_substitute(_Context &ctx)
static constexpr bool is_single_action
typename DeduceMutableString< _Input >::output_type output_type
std::ofstream out("events_result.xml")
main entry point for tests
static SQLCHAR output[256]
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is whole
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig
fixed_string(const _CharType(&)[N]) -> fixed_string< _CharType, N-1 >
static constexpr auto search_replace
static constexpr auto search_replace_one
auto operator|(std::string_view input, const search_replace_op< _SearchArgs... > &next_op)
static constexpr auto search_replace_all
string_type::value_type char_type
The character type used by the parser.
#define ct_fixed_string_input_param
constexpr auto get() const noexcept
static size_t replace_many(std::integral_constant< TReplaceOpType, kind >, const _Search &search, _Input whole, std::basic_string< char_type, TArgs... > &output)
typename std::decay_t< decltype(replace_text)>::char_type char_type
static bool replace_inplace(const _Search &search, std::basic_string< char_type, TArgs... > &orig)
std::basic_string_view< char_type > view_type
static constexpr auto search_func
static bool replace_many(view_type input, std::basic_string< char_type, TMoreArgs... > &output)
bool operator()(std::basic_string< char_type, TMoreArgs... > &input) const
static void replace_many(ct_regex_details::mutable_string< _T > &input)
bool operator()(view_type input, std::basic_string< char_type, TMoreArgs... > &result) const
typename ctre::regex_builder< s_search_text >::type RE
typename std::decay_t< decltype(replace_text)>::char_type char_type
static constexpr ::ctll::fixed_string< search_text.size()> s_search_text
static constexpr bool starts_with_anchor
constexpr size_t size() const noexcept
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4