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

Function noneoftheabove

src/botl.c:2335–2344  ·  view source on GitHub ↗

test whether the text from a title rule matches the string for title-while-polymorphed in the 'textmatch' menu */

Source from the content-addressed store, hash-verified

2333/* test whether the text from a title rule matches the string for
2334 title-while-polymorphed in the 'textmatch' menu */
2335staticfn boolean
2336noneoftheabove(const char *hl_text)
2337{
2338 if (fuzzymatch(hl_text, "none of the above", "\" -_", TRUE)
2339 || fuzzymatch(hl_text, "(polymorphed)", "\"()", TRUE)
2340 || fuzzymatch(hl_text, "none of the above (polymorphed)",
2341 "\" -_()", TRUE))
2342 return TRUE;
2343 return FALSE;
2344}
2345
2346/*
2347 * get_hilite

Callers 1

get_hiliteFunction · 0.85

Calls 1

fuzzymatchFunction · 0.85

Tested by

no test coverage detected