Inlining this function or not?
问题 I'm supposed to implement a function which compares two strings simliar so strcmp but ignoring whitespace characters, so strcmpignorews("abc ", " a b c") should give the same result. Here's my implementation: namespace { void SkipWhitespace(const char *&s) { for (; std::isspace(*s, std::locale::classic); ++s); } } int strcmpignorews(const char *s1, const char *s2) { for (; *s1 != '\0' && *s2 != '\0'; ++s1, ++s2) { SkipWhitespace(s1); SkipWhitespace(s2); if (*s1 != *s2) { break; } } return (