Returns true if and only if ch appears anywhere in str (excluding the terminating '\0' character).
| 723 | // Returns true if and only if ch appears anywhere in str (excluding the |
| 724 | // terminating '\0' character). |
| 725 | bool IsInSet(char ch, const char* str) { |
| 726 | return ch != '\0' && strchr(str, ch) != nullptr; |
| 727 | } |
| 728 | |
| 729 | // Returns true if and only if ch belongs to the given classification. |
| 730 | // Unlike similar functions in <ctype.h>, these aren't affected by the |
no outgoing calls
no test coverage detected