Lines Matching refs:len
106 int len, i;
110 len = utf8_encoded_expected_len(str);
112 switch (len) {
135 for (i = 1; i < len; i++) {
180 int len;
182 len = utf8_encoded_valid_unichar((const char *)p);
183 if (len < 0)
186 p += len;
202 int len;
204 len = utf8_encoded_valid_unichar(str);
205 if (len > 0) {
206 s = mempcpy(s, str, len);
207 str += len;
229 int len;
231 len = utf8_encoded_valid_unichar(str);
232 if (len > 0) {
233 if (utf8_is_printable(str, len)) {
234 s = mempcpy(s, str, len);
235 str += len;
237 while (len > 0) {
244 len --;
378 int len, i, r;
383 len = utf8_encoded_expected_len(str);
384 if (len == 0)
388 if (len == 1)
392 for (i = 0; i < len; i++)
401 if (utf8_unichar_to_encoded_len(unichar) != len)
408 return len;