MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / FormatRegexSyntaxError

Function FormatRegexSyntaxError

rtpose_wrapper/src/gtest/gtest-all.cpp:8026–8029  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

8024
8025// Helper function used by ValidateRegex() to format error messages.
8026String FormatRegexSyntaxError(const char* regex, int index) {
8027 return (Message() << "Syntax error at index " << index
8028 << " in simple regular expression \"" << regex << "\": ").GetString();
8029}
8030
8031// Generates non-fatal failures and returns false if regex is invalid;
8032// otherwise returns true.

Callers 1

ValidateRegexFunction · 0.85

Calls 1

MessageFunction · 0.70

Tested by

no test coverage detected