MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / isAsciiUtf8Buffer

Function isAsciiUtf8Buffer

src/cpp/encoding/Encodings.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69namespace
70{
71 bool isAsciiUtf8Buffer(const View<uint8_t>& buffer)
72 {
73 for (int64_t i = 0; i < buffer.length; i++)
74 {
75 if (buffer[i] > 127)
76 {
77 return false;
78 }
79 }
80 return true;
81 }
82}
83
84int cpp::encoding::Utf8::getByteCount(const null&)

Callers 1

decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected