MCPcopy Create free account
hub / github.com/NetHack/NetHack / regex_match

Function regex_match

sys/share/cppregex.cpp:68–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68boolean
69regex_match(const char *s, struct nhregex *re)
70{
71 if (!re->re)
72 return false;
73 try {
74 return regex_search(s, *re->re, std::regex_constants::match_any);
75 } catch (const std::regex_error& err) {
76 return false;
77 }
78}
79
80void
81regex_free(struct nhregex *re)

Callers 4

msgtype_typeFunction · 0.50
sound_matches_messageFunction · 0.50
get_menu_coloringFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected