MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / FormatRegexSyntaxError

Function FormatRegexSyntaxError

tests/gtest/src/gtest-port.cc:821–824  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

819
820// Helper function used by ValidateRegex() to format error messages.
821static std::string FormatRegexSyntaxError(const char* regex, int index) {
822 return (Message() << "Syntax error at index " << index
823 << " in simple regular expression \"" << regex << "\": ").GetString();
824}
825
826// Generates non-fatal failures and returns false if regex is invalid;
827// otherwise returns true.

Callers 1

ValidateRegexFunction · 0.70

Calls 2

MessageFunction · 0.50
GetStringMethod · 0.45

Tested by

no test coverage detected