Lines Matching defs:len
146 size_t utf8_to_utf32(const char* buf, size_t len, char32_t* utf32_output) {
150 while (pos < len) {
152 if (pos + 16 <= len) { // if it is safe to read 16 more
175 if (pos + 1 >= len) {
191 if (pos + 2 >= len) {
213 if (pos + 3 >= len) {
243 size_t utf8_length_from_utf32(const char32_t* buf, size_t len) {
247 for (size_t i = 0; i != len; ++i) {
256 size_t utf32_length_from_utf8(const char* buf, size_t len) {
258 return std::count_if(p, std::next(p, len), [](int8_t c) {
265 size_t utf32_to_utf8(const char32_t* buf, size_t len, char* utf8_output) {
269 while (pos < len) {
271 if (pos + 2 <= len) { // if it is safe to read 8 more
2738 uint32_t len = std::size(table);
2740 uint32_t high = len - 1;