MCPcopy Create free account
hub / github.com/Extra-Creativity/Modern-Cpp-Basics / SearchAllTest

Function SearchAllTest

08-String & Stream/code/RegexTest.cpp:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void SearchAllTest()
64{
65 re2::StringPiece whole, multiStrView{ multiStr };
66 while (RE2::FindAndConsume(&multiStrView, re2Regex, &whole))
67 {
68 std::println("re2 Pass: {}", whole);
69 }
70
71 for (auto m : ctre::search_all<ctreRegex>(multiStr))
72 {
73 std::println("ctre Pass: {}", m.to_view());
74 }
75}
76
77// re2 only
78void ReplaceTest()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected