Home
last modified time | relevance | path

Searched refs:utf8towc (Results 1 – 15 of 15) sorted by relevance

/external/toybox/toys/posix/
Dcut.c90 if (0>(j = utf8towc(&wc, ss, len))) ss++; in cut_line()
114 if (0<=(j = utf8towc(&wc, s, len))) start--; in cut_line()
123 if (0<=(j = utf8towc(&wc, sss, len))) end--; in cut_line()
Dfold.c46 if ((bb = utf8towc(&cc, ss+ii, 4))>0 && (ww = wcwidth(cc))<0) ww = 0;
Dpaste.c86 while (0<(dlen = utf8towc(&wc, dpos, 99))) {
Dexpand.c47 int width = utf8towc(&blah, toybuf+i, len-i); in do_expand()
Dwc.c92 clen = utf8towc(&wchar, toybuf+pos, len-pos); in do_wc()
Dfile.c487 if ((bytes = utf8towc(&wc, s+i, len-i))>0 && wcwidth(wc)>=0) { in do_regular_file()
Dgrep.c135 bin = utf8towc(&wc, buf+i, len-i); in do_grep()
/external/toybox/toys/example/
Ddemo_utf8towc.c35 len2 = utf8towc(&wc2, str, len2); in demo_utf8towc_main()
/external/toybox/toys/other/
Dascii.c66 else for (s = *args; (n = utf8towc(&wc, s, 4)) > 0; s += n) codepoint(wc); in unicode_main()
/external/toybox/lib/
Dutf8.c14 if ((bytes = utf8towc(&wc, end, 4))>0 && (col = wcwidth(wc))>=0) { in crunch_str()
Dlib.h226 int utf8towc(unsigned *wc, char *str, unsigned len);
Dlib.c377 int utf8towc(unsigned *wc, char *str, unsigned len) in utf8towc() function
416 if (1>(len = utf8towc(&c, s, MB_CUR_MAX))) { in strlower()
/external/toybox/toys/pending/
Dvi.c127 length = utf8towc(&wc, s, bytes); in utf8_lnw()
1478 if ((bytes = utf8towc(&wc, end, 4))>0 && (col = wcwidth(wc))>=0) { in crunch_nstr()
Dawk.c380 int r = utf8towc(&wch, str, lim - str); in bytesinutf8()
394 int r = utf8towc(&wch, str, lim - str); in utf8cnt()
2755 int nc = utf8towc(&wc, s, strlen(s)); in splitter()
3172 n = utf8towc(&wch, z->vst->str, z->vst->size) < 1 ? 0xfffd : wch; in varprint()
4260 int len = utf8towc(&wch, p, e-p); in interpx()
Dsh.c845 else if (1>(len = utf8towc(&wc, s, len))) wc = *s, len = 1; in getutf8()
860 if (0<(ll = utf8towc(&wc1, wc, 99))) { in utf8chr()
863 if(1>(ll = utf8towc(&wc2, chrs, 99))) chrs++; in utf8chr()
2119 else if (0<(dd = utf8towc(&wc, TT.ff->ifs, 4))) in expand_arg_nobrace()
3731 for (len = 0; new[len]>6 && 0<(cc = utf8towc(&uu, new+len, 4)); len += cc); in get_next_line()