Home
last modified time | relevance | path

Searched refs:mbwide (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Dast.h185 #define mbwide() (mbmax()>1) macro
188 #define mbchar(p) (mbwide()?((ast.tmp_int=(*ast.mb_towc)(&ast.tmp_wchar,(char*)(p),mbmax()))>0?((p+…
189 #define mbnchar(p,n) (mbwide()?((ast.tmp_int=(*ast.mb_towc)(&ast.tmp_wchar,(char*)(p),n))>0?((p+=as…
190 #define mbinit() (mbwide()?(*ast.mb_towc)((wchar_t*)0,(char*)0,mbmax()):0)
191 #define mbsize(p) (mbwide()?(*ast.mb_len)((char*)(p),mbmax()):((p),1))
192 #define mbnsize(p,n) (mbwide()?(*ast.mb_len)((char*)(p),n):((p),1))
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dlexstates.h113 # undef mbwide
114 # define mbwide() (0) macro
119 #define STATE(s,c) (s[mbwide()?((c=fcmbget(&LEN)),LEN>1?'a':c):(c=fcget())])
H A Dfcin.h47 # define fcmbget(x) (mbwide()?_fcmbget(x):fcget())
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstresc.c53 t += mbwide() ? mbconv(t, c) : wc2utf8(t, c); in strexp()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dprint.c437 t += mbwide() ? mbconv(t, c) : wc2utf8(t, c); in strformat()
441 if(c>UCHAR_MAX && mbwide()) in strformat()
833 if(mbwide() && (n = mbsize(argp)) > 1) in extend()
867 if(mbwide() && mbsize(w) > 1) in extend()
1047 if(mbwide()) in fmtvecho()
1069 if (mbwide() && ((chlen = mbsize(cp)) > 1)) in fmtvecho()
H A Dread.c427 if(!binary && mbwide()) in sh_readline()
446 if(!binary && mbwide() && (up == var || (flags & NN_FLAG) && size)) in sh_readline()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcut.c142 if (cut->mb = mbwide()) in cutinit()
606 if (mbwide()) in b_cut()
621 if (mbwide()) in b_cut()
H A Drev.c67 if (mbwide()) in rev_char()
H A Dwc.c143 if (!mbwide()) in b_wc()
H A Dpaste.c219 if (mbwide()) in b_paste()
H A Duniq.c87 register int n, f, outsize=0, mb = mbwide(); in uniq()
H A Dcat.c151 raw = !mbwide(); in vcat()
H A Dwclib.c68 if (!mbwide()) in wc_init()
H A Djoin.c193 if (jp->mb = mbwide()) in init()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dstring.c252 if(mbwide() && (len=mbsize(sp))>1) in sh_trim()
429 if(mbwide() && ((cp-op)>1)) in sh_fmtq()
H A Dmacro.c297 if(mbwide()) in sh_machere()
464 if(mbwide()) in copyto()
506 if(c > UCHAR_MAX && mbwide()) in copyto()
1698 else if(mbwide()) in varsub()
1730 if(mbwide()) in varsub()
2294 if(mbwide() && (len=mbsize(cp))>1) in mac_copy()
2373 if(mbwide() && n!=S_MBYTE && (len=mbsize(cp-1))>1) in mac_copy()
2529 if(mbwide()) in substring()
2574 if(mbwide()) in charlen()
H A Dfault.c633 if(mbwide()||sh_isoption(SH_EMACS)||sh_isoption(SH_VI)||sh_isoption(SH_GMACS)) in sh_done()
H A Dlex.c2223 if(mbwide()) in sh_endword()
2432 if(mbwide()) in sh_endword()
H A Dio.c2005 if(sh_isoption(SH_VI) || ((SHOPT_RAWONLY-0) && mbwide())) in slowread()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Diconv.c623 if (!mbwide()) in bin2utf()
812 if (!mbwide()) in bin2ume()
928 if (!mbwide()) in bin2ucs()
1019 if (!mbwide()) in bin2scu()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregnexec.c874 else if (!mbwide()) in parse()
1082 if ((c = rex->explicit) >= 0 && !mbwide()) in parse()
1092 if (!mbwide()) in parse()
1139 if (!mbwide()) in parse()
1491 if (!mbwide()) in parse()
1568 if (!mbwide()) in parse()
1715 else if (!mbwide()) in parse()
H A Dregcomp.c1254 if (env->type < SRE && !(env->flags & (REG_LENIENT|REG_REGEXP)) && !mbwide()) in bra()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Derror.c243 if (mbwide()) in print()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfvprintf.c681 wc = (flags & SFFMT_LDOUBLE) && mbwide();
841 wc = (flags & SFFMT_LDOUBLE) && mbwide();