• These functions search for the last character that is or is not also an element of the C-string cstr
(starting at index idx).
• These functions return the index of that character when successful or string::npos if they fail.
• Note that passing a null pointer (nullptr or NULL) results in undefined behavior.