Returns true iff ch appears anywhere in str (excluding the terminating '\0' character).
| 7977 | // Returns true iff ch appears anywhere in str (excluding the |
| 7978 | // terminating '\0' character). |
| 7979 | bool IsInSet(char ch, const char* str) { |
| 7980 | return ch != '\0' && strchr(str, ch) != NULL; |
| 7981 | } |
| 7982 | |
| 7983 | // Returns true iff ch belongs to the given classification. Unlike |
| 7984 | // similar functions in <ctype.h>, these aren't affected by the |
no outgoing calls
no test coverage detected