MCPcopy Index your code
hub / github.com/NetHack/NetHack / regex_error_desc

Function regex_error_desc

sys/share/cppregex.cpp:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52char *
53regex_error_desc(struct nhregex *re, char *errbuf)
54{
55 if (!re) {
56 Strcpy(errbuf, "no regexp");
57 } else if (!re->err) {
58 Strcpy(errbuf, "no explanation");
59 } else {
60 errbuf[0] = '\0';
61 (void) strncat(errbuf, re->err->what(), BUFSZ - 1);
62 if (!errbuf[0])
63 Strcpy(errbuf, "unspecified regexp error");
64 }
65 return errbuf;
66}
67
68boolean
69regex_match(const char *s, struct nhregex *re)

Callers 5

msgtype_addFunction · 0.50
test_regex_patternFunction · 0.50
add_autopickup_exceptionFunction · 0.50
add_menu_coloring_parsedFunction · 0.50
add_sound_mappingFunction · 0.50

Calls

no outgoing calls

Tested by 1

test_regex_patternFunction · 0.40