util/CharUtil: add IsWhitespaceFast()

This commit is contained in:
Max Kellermann
2014-08-07 15:05:27 +02:00
parent 981be7956b
commit db6db51742
5 changed files with 19 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ chomp_length(const char *p)
{
size_t length = strlen(p);
while (length > 0 && IsWhitespaceOrNull(p[length - 1]))
while (length > 0 && IsWhitespaceFast(p[length - 1]))
--length;
return (int)length;