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

@@ -39,7 +39,7 @@ Client::OnSocketInput(void *data, size_t length)
BufferedSocket::ConsumeInput(newline + 1 - p);
/* skip whitespace at the end of the line */
while (newline > p && IsWhitespaceOrNull(newline[-1]))
while (newline > p && IsWhitespaceFast(newline[-1]))
--newline;
/* terminate the string at the end of the line */