A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/replace_8hpp_source.html below:

NCBI C++ ToolKit: include/util/regexp/ctre/replace.hpp Source File

1 #ifndef UTIL__REGEXP_CTRE_REPLACE_HPP 2 #define UTIL__REGEXP_CTRE_REPLACE_HPP 89 template

<ct_fixed_

string

_input_param replace_text>

97  template

<

typename

_Matched,

typename

_Iterator>

103  template

<

size_t

Id>

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

<

TReplaceOpType

kind,

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  auto

current =

whole

.begin();

119  auto

matched = search(current,

whole

.end());

129  auto

front_part_len = std::distance(current, matched.begin());

130  if

(front_part_len) {

131  output

.append(current, matched.begin());

135  auto

e =

whole

.end();

137  TContext

<decltype(matched), decltype(

b

)>

ctx

{matched,

b

, e};

141

current = matched.end();

144

matched = search(current,

whole

.end());

157  template

<

typename

_Search,

typename

...TArgs>

161

std::basic_string_view<char_type> input(

orig

);

168  auto

front_part = std::distance(input.begin(),

results

.begin());

170  auto b

= input.begin();

171  auto

e = input.end();

178  orig

.replace(front_part,

results

.size(), replacement);

180  auto

back_part = front_part +

results

.size();

185  out

= input.substr(0, front_part);

191  out

.append(input.substr(back_part));

212  static

constexpr

auto search_func

= ::ctre::search<s_search_text>;

219  bool operator()

(std::basic_string<char_type, TMoreArgs...>& input)

const 228

input = std::move(

output

);

233  template

<

typename

...TMoreArgs>

239  template

<

typename

...TMoreArgs>

243  return

(num_replaced>0);

246  template

<

typename

_T>

254

input = std::move(

output

);

260 template

<

auto

..._SearchArgs,

typename

= std::enable_if_t<std::is_same_v<char,

typename

search_replace_op<_SearchArgs...>

::char_type

>>>

268 template

<

auto

..._SearchArgs,

typename

= std::enable_if_t<std::is_same_v<wchar_t,

typename

search_replace_op<_SearchArgs...>

::char_type

>>>

277 template

<

typename _T

,

auto

..._SearchArgs>

281  return

std::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