MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / FormatRegexSyntaxError

Function FormatRegexSyntaxError

tests/gtest/gtest-all.cc:10520–10523  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

10518
10519// Helper function used by ValidateRegex() to format error messages.
10520static std::string FormatRegexSyntaxError(const char* regex, int index) {
10521 return (Message() << "Syntax error at index " << index
10522 << " in simple regular expression \"" << regex << "\": ").GetString();
10523}
10524
10525// Generates non-fatal failures and returns false if regex is invalid;
10526// otherwise returns true.

Callers 1

ValidateRegexFunction · 0.85

Calls 2

GetStringMethod · 0.80
MessageFunction · 0.70

Tested by

no test coverage detected