MCPcopy Create free account
hub / github.com/ablab/spades / RegexErrorToString

Function RegexErrorToString

ext/src/llvm/Regex.cpp:59–65  ·  view source on GitHub ↗

Utility to convert a regex error code into a human-readable string.

Source from the content-addressed store, hash-verified

57
58/// Utility to convert a regex error code into a human-readable string.
59void RegexErrorToString(int error, struct llvm_regex *preg,
60 std::string &Error) {
61 size_t len = llvm_regerror(error, preg, nullptr, 0);
62
63 Error.resize(len - 1);
64 llvm_regerror(error, preg, &Error[0], len);
65}
66
67} // namespace
68

Callers 2

isValidMethod · 0.85
matchMethod · 0.85

Calls 2

llvm_regerrorFunction · 0.85
resizeMethod · 0.45

Tested by

no test coverage detected