MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / FormatRegexSyntaxError

Function FormatRegexSyntaxError

source/test/gtest/src/gtest-port.cc:783–787  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

781
782// Helper function used by ValidateRegex() to format error messages.
783static std::string FormatRegexSyntaxError(const char* regex, int index) {
784 return (Message() << "Syntax error at index " << index
785 << " in simple regular expression \"" << regex << "\": ")
786 .GetString();
787}
788
789// Generates non-fatal failures and returns false if regex is invalid;
790// otherwise returns true.

Callers 1

ValidateRegexFunction · 0.85

Calls 2

GetStringMethod · 0.80
MessageClass · 0.50

Tested by

no test coverage detected