MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / FormatRegexSyntaxError

Function FormatRegexSyntaxError

test/common/gtest/gtest.cpp:9291–9294  ·  view source on GitHub ↗

Helper function used by ValidateRegex() to format error messages.

Source from the content-addressed store, hash-verified

9289
9290// Helper function used by ValidateRegex() to format error messages.
9291std::string FormatRegexSyntaxError(const char* regex, int index) {
9292 return (Message() << "Syntax error at index " << index
9293 << " in simple regular expression \"" << regex << "\": ").GetString();
9294}
9295
9296// Generates non-fatal failures and returns false if regex is invalid;
9297// otherwise returns true.

Callers 1

ValidateRegexFunction · 0.85

Calls 2

GetStringMethod · 0.80
MessageFunction · 0.70

Tested by

no test coverage detected