We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b535150 commit 9411971Copy full SHA for 9411971
1 file changed
src/cpp/encoding/Encodings.cpp
@@ -70,19 +70,13 @@ namespace
70
{
71
bool isAsciiUtf8Buffer(const View<uint8_t>& buffer)
72
73
- auto i = int64_t{ 0 };
74
- while (i < buffer.length)
+ for (int64_t i = 0; i < buffer.length; i++)
75
76
- auto p = cpp::encoding::Utf8::codepoint(buffer.slice(i));
77
-
78
- if (p > 127)
+ if (buffer[i] > 127)
79
80
return false;
81
}
82
83
- i += cpp::encoding::Utf8::getByteCount(p);
84
85
86
return true;
87
88
0 commit comments