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

Function SearchTest

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

Source from the content-addressed store, hash-verified

39}
40
41void SearchTest()
42{
43 re2::StringPiece whole;
44 if (RE2::PartialMatch(multiStr, re2Regex, &whole))
45 {
46 std::println("re2 Pass: {}", whole);
47 }
48 else
49 {
50 std::println("Fail");
51 }
52
53 if (auto m = ctre::search<ctreRegex>(singleStr))
54 {
55 std::println("ctre Pass: {}", m.to_view());
56 }
57 else
58 {
59 std::println("Fail");
60 }
61}
62
63void SearchAllTest()
64{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected