Lines Matching defs:response
1 /* Determine whether string value is affirmation or negative response
37 try (const char *response, const char *pattern, const int match,
56 return regexec (re, response, 0, NULL, 0) == 0 ? match : nomatch;
62 rpmatch (const char *response)
65 /* Match against one of the response patterns, compiling the pattern
68 /* We cache the response patterns and compiled regexps here. */
73 return ((result = try (response, _("^[yY]"), 1, 0,
76 : try (response, _("^[nN]"), 0, -1, &noexpr, &nore));
79 return (*response == 'y' || *response == 'Y' ? 1
80 : *response == 'n' || *response == 'N' ? 0 : -1);