Home
last modified time | relevance | path

Searched refs:regex_replace (Results 1 – 25 of 55) sorted by relevance

123

/third_party/boost/libs/xpressive/test/
Dtest_format.cpp73 output = regex_replace(input, rx, format1()); in test_main()
76 output = regex_replace(input.c_str(), crx, format1()); in test_main()
79 output = regex_replace(input, rx, format2()); in test_main()
82 output = regex_replace(input.c_str(), crx, format2()); in test_main()
85 output = regex_replace(input, rx, format3()); in test_main()
88 output = regex_replace(input.c_str(), crx, format3()); in test_main()
91 output = regex_replace(input, rx, format_fun); in test_main()
94 output = regex_replace(input.c_str(), crx, c_format_fun); in test_main()
97 output = regex_replace(input, rx, &format_fun); in test_main()
100 output = regex_replace(input.c_str(), crx, &c_format_fun); in test_main()
[all …]
Dregress.ipp285 // test regex_replace
286 std::basic_string<Char> res = regex_replace(test.str, rx, test.sub, test.match_flags);
289 // test regex_replace with NTBS format string
290 … std::basic_string<Char> res2 = regex_replace(test.str, rx, test.sub.c_str(), test.match_flags);
293 // test regex_replace with NTBS input string
294 … std::basic_string<Char> res3 = regex_replace(test.str.c_str(), c_rx, test.sub, test.match_flags);
297 // test regex_replace with NTBS input string and NTBS format string
298 …std::basic_string<Char> res4 = regex_replace(test.str.c_str(), c_rx, test.sub.c_str(), test.match_…
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/
Ddataset_op.cc379 ss_str = std::regex_replace(ss_str, std::regex("Number of ShardReader workers.*\n"), ""); in GenerateCRC()
380 ss_str = std::regex_replace(ss_str, std::regex("Num workers.*\n"), ""); in GenerateCRC()
381 ss_str = std::regex_replace(ss_str, std::regex("\\[workers.*?\\]"), ""); in GenerateCRC()
382 ss_str = std::regex_replace(ss_str, std::regex("Connector queue size.*\n"), ""); in GenerateCRC()
385 ss_str = std::regex_replace(ss_str, std::regex("Hostname.*\n"), ""); in GenerateCRC()
386 ss_str = std::regex_replace(ss_str, std::regex("Port.*\n"), ""); in GenerateCRC()
387 ss_str = std::regex_replace(ss_str, std::regex("Number of rpc workers.*\n"), ""); in GenerateCRC()
388 ss_str = std::regex_replace(ss_str, std::regex("Prefetch size.*\n"), ""); in GenerateCRC()
389 ss_str = std::regex_replace(ss_str, std::regex("Local client support.*\n"), ""); in GenerateCRC()
392 ss_str = std::regex_replace(ss_str, std::regex("Number of rows.*\n"), ""); in GenerateCRC()
[all …]
/third_party/boost/boost/regex/
Dconcepts.hpp773 m_out = global_regex_namespace::regex_replace(m_out, m_in, m_in, e, m_string, m_mft); in constraints()
774 m_out = global_regex_namespace::regex_replace(m_out, m_in, m_in, e, m_string); in constraints()
775 m_string = global_regex_namespace::regex_replace(m_string, e, m_string, m_mft); in constraints()
777 m_string = global_regex_namespace::regex_replace(m_string, e, m_string); in constraints()
1069 out = regex_replace(out, m_in, m_in, ce, func3, f); in constraints()
1070 out = regex_replace(out, m_in, m_in, ce, func3); in constraints()
1071 out = regex_replace(out, m_in, m_in, ce, func2, f); in constraints()
1072 out = regex_replace(out, m_in, m_in, ce, func2); in constraints()
1073 out = regex_replace(out, m_in, m_in, ce, func1, f); in constraints()
1074 out = regex_replace(out, m_in, m_in, ce, func1); in constraints()
[all …]
Dmfc.hpp137 OutputIterator regex_replace(OutputIterator out, in regex_replace() function
144 return ::boost::regex_replace(out, first, last, e, fmt.GetString(), flags); in regex_replace()
173 ATL::CSimpleStringT<B, b> regex_replace(const ATL::CSimpleStringT<B, b>& s, in regex_replace() function
180 regex_replace(i, s.GetString(), s.GetString() + s.GetLength(), e, fmt.GetString(), flags); in regex_replace()
/third_party/boost/boost/regex/v4/
Dregex_merge.hpp46 return regex_replace(out, first, last, e, fmt, flags); in regex_merge()
66 return regex_replace(s, e, fmt, flags); in regex_merge()
75 return regex_replace(s, e, fmt, flags); in regex_merge()
Dregex_replace.hpp39 OutputIterator regex_replace(OutputIterator out, in regex_replace() function
73 std::basic_string<charT> regex_replace(const std::basic_string<charT>& s, in regex_replace() function
80 regex_replace(i, s.begin(), s.end(), e, fmt, flags); in regex_replace()
/third_party/boost/libs/regex/doc/
Dregex_replace.qbk9 [section:regex_replace regex_replace]
13 The algorithm [regex_replace] searches through a string finding all the
22 OutputIterator regex_replace(OutputIterator out,
30 basic_string<charT> regex_replace(const basic_string<charT>& s,
39 OutputIterator regex_replace(OutputIterator out,
128 basic_string<charT> regex_replace(const basic_string<charT>& s,
145 `regex_replace(back_inserter(result), s.begin(), s.end(), e, fmt, flags)`,
204 boost::regex_replace(oi, in.begin(), in.end(),
210 boost::regex_replace(out, s.begin(), s.end(),
Dregex.qbk34 [template regex_replace[] [link boost_regex.ref.regex_replace `regex_replace`]]
71 [include regex_replace.qbk]
Dmfc_strings.qbk167 [h4 regex_replace]
169 There are two additional overloads for [regex_replace], the first sends output
174 OutputIterator regex_replace(OutputIterator out,
181 [*Effects]: returns `::boost::regex_replace(out, first, last, e, fmt.GetString(), flags);`
184 ATL::CSimpleStringT<charT> regex_replace(const ATL::CSimpleStringT<charT>& s,
189 [*Effects]: returns a new string created using [regex_replace], and the same
204 return boost::regex_replace(s, e, human_format);
Dformat_syntax.qbk11 Format strings are used by the algorithm [regex_replace] and by
/third_party/boost/tools/bcp/
Dcopy_path.cpp77regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), libname_matcher, m_namespace_name + "_… in copy_path()
110regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), libname_matcher, get_new_library_name(… in copy_path()
169regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), namespace_matcher, "$1" + m_namespace_… in copy_path()
205 regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), namespace_alias, in copy_path()
/third_party/boost/libs/regex/example/snippets/
Dcredit_card_example.cpp34 return boost::regex_replace(s, e, machine_format, boost::match_default | boost::format_sed); in machine_readable_card_number()
39 return boost::regex_replace(s, e, human_format, boost::match_default | boost::format_sed); in human_readable_card_number()
Dregex_replace_example.cpp74 …boost::regex_replace(oi, in.begin(), in.end(), e2, pre_format, boost::match_default | boost::forma… in main()
79 …boost::regex_replace(out, s.begin(), s.end(), e1, format_string, boost::match_default | boost::for… in main()
/third_party/boost/libs/regex/test/
Dquick.cpp28 … return boost::regex_replace(s, card_rx, machine_format, boost::match_default | boost::format_sed); in machine_readable_card_number()
33 return boost::regex_replace(s, card_rx, human_format, boost::match_default | boost::format_sed); in human_readable_card_number()
/third_party/mindspore/tests/ut/python/dataset/
Dtest_text_tokenizer.py280 def regex_replace(first, last, expect_str, pattern, replace): function
296 regex_replace(1, 2, ['H____ W____', "L__'_ G_"], "\\p{Ll}", '_')
297 regex_replace(3, 5, ['hello', 'world', '31:beijing'], "^(\\d:|b:)", "")
298 regex_replace(6, 6, ["WelcometoChina!"], "\\s+", "")
299 regex_replace(7, 8, ['我不想长大', 'WelcometoShenzhen!'], "\\p{Cc}|\\p{Cf}|\\s+", "")
/third_party/boost/libs/regex/performance/
Dperformance.cpp102 s = regex_replace(s, e, "\\\\$0"); in format_expression_as_quickbook()
103 s = regex_replace(s, open_b, "\\\\u005B"); in format_expression_as_quickbook()
104 s = regex_replace(s, close_b, "\\\\u005D"); in format_expression_as_quickbook()
/third_party/boost/libs/xpressive/doc/
Dsubstitutions.qbk14 [h2 regex_replace()]
28 // use the version of regex_replace() that operates on strings
29 std::string output = regex_replace( input, re, format );
32 // use the version of regex_replace() that operates on iterators
34 regex_replace( out_iter, input.begin(), input.end(), re, format );
190 std::string output = regex_replace(input, envar, format_fun);
243 std::string output = regex_replace(input, envar, fmt);
305 std::string output = regex_replace(input, envar, ref(env)[s1]);
Dhistory.qbk16 * Range-based `regex_replace()` algorithm interface.
17 * `regex_replace()` accepts formatter objects and formatter lambda expressions
Dxpressive.qbk55 [def _regex_replace_ [^[funcref boost::xpressive::regex_replace regex_replace()]]]
/third_party/boost/boost/xpressive/
Dregex_algorithms.hpp750 inline OutIter regex_replace in regex_replace() function
778 inline OutIter regex_replace in regex_replace() function
805 inline BidiContainer regex_replace in regex_replace() function
837 inline BidiContainer regex_replace in regex_replace() function
869 inline std::basic_string<typename remove_const<Char>::type> regex_replace in regex_replace() function
900 inline BidiContainer regex_replace in regex_replace() function
932 inline BidiContainer regex_replace in regex_replace() function
964 inline std::basic_string<typename remove_const<Char>::type> regex_replace in regex_replace() function
/third_party/boost/libs/config/tools/
Dgenerate.cpp236 …namespace_name = boost::regex_replace(file_text, macro_regex, "\\L$1", boost::format_first_only | … in process_ipp_file()
249 …positive_file = file.branch_path() / boost::regex_replace(file.leaf().string(), file_regex, "$1_pa… in process_ipp_file()
250 …negative_file = file.branch_path() / boost::regex_replace(file.leaf().string(), file_regex, "$1_fa… in process_ipp_file()
294 std::string feature_name = boost::regex_replace(namespace_name, feature_regex, "\\1"); in process_ipp_file()
/third_party/boost/tools/boost_install/test/regex/
Dquick.cpp16 std::string s = boost::regex_replace( std::string( "+1--2--3+" ), rx, "$1$2$3" ); in main()
/third_party/boost/tools/build/src/engine/modules/
Dregex.cpp92 LIST * regex_replace( FRAME * frame, int flags ) in regex_replace() function
227 declare_native_rule( "regex", "replace", args, regex_replace, 1 ); in init_regex()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/text/kernels/ir/
Dbindings.cc83 … auto regex_replace = std::make_shared<text::RegexReplaceOperation>(pattern, replace, replace_all); in __anonf0f064540902() local
84 THROW_IF_ERROR(regex_replace->ValidateParams()); in __anonf0f064540902()
85 return regex_replace; in __anonf0f064540902()

123