Lines Matching refs:len
14 int len = uni_utf8_get_char_n(src+i, max_bytes-i, &chr);
15 if (len <= 0)
19 i += len;
28 size_t len = str_len(dest);
30 if (len == initial_pos)
33 i_assert(len > 0);
34 if ((data[len-1] & 0x80) == 0) {
35 str_truncate(dest, len-1);
39 while (len > 0 && (data[len-1] & 0xc0) == 0x80)
40 len--;
41 if (len > 0 && (data[len-1] & 0xc0) == 0xc0)
42 len--;
43 if (len >= initial_pos)
44 str_truncate(dest, len);
54 int len = uni_utf8_get_char_n(src+i, max_bytes-i, &chr);
55 if (len == 0)
58 if (len < 0) {
67 str_append_n(dest, src+i, len);
68 i += len;