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

@@ -72,7 +72,7 @@ TextInputStream::ReadLine()
buffer.Consume(p - src + 1);
while (p > src && IsWhitespaceOrNull(p[-1]))
while (p > src && IsWhitespaceFast(p[-1]))
--p;
*p = 0;
return src;