Lines Matching refs:length
147 bool utf8_is_printable_newline(const char* str, size_t length, bool newline) {
152 for (p = str; length;) {
158 (size_t) encoded_len > length)
167 length -= encoded_len;
276 * The length of the character is returned. It is not zero-terminated! If the
277 * output buffer is NULL, only the length is returned.
279 * Returns: The length in bytes that the UTF-8 representation does or would
314 char *utf16_to_utf8(const void *s, size_t length) {
318 r = new(char, (length * 4 + 1) / 2 + 1);
325 while (f < (const uint8_t*) s + length) {
341 else if (f >= (const uint8_t*) s + length)
376 /* validate one encoded unicode char and return its length */
400 /* check if encoded length matches encoded value */