Home
last modified time | relevance | path

Searched refs:wcs (Results 1 – 25 of 42) sorted by relevance

12

/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dinnwstr.c47 (innwstr)(wcs, n)
48 wchar_t *wcs;
65 wchar_t *wcs; variable
84 wchar_t *wcs; variable
100 (inwstr)(wcs)
101 wchar_t *wcs;
115 (mvinwstr)(y, x, wcs)
117 wchar_t *wcs; variable
135 wchar_t *wcs; variable
150 (winwstr)(w, wcs)
[all …]
H A Dins_nws.c47 (ins_nwstr)(wcs, n)
48 const wchar_t *wcs;
65 const wchar_t *wcs; variable
84 const wchar_t *wcs; variable
100 (ins_wstr)(wcs)
101 const wchar_t *wcs;
115 (mvins_wstr)(y, x, wcs)
117 const wchar_t *wcs; variable
135 const wchar_t *wcs; variable
150 (wins_wstr)(w, wcs)
[all …]
H A Daddnws.c49 addnwstr(wcs, n) in addnwstr() argument
50 const wchar_t *wcs; in addnwstr()
69 const wchar_t *wcs;
90 const wchar_t *wcs;
108 addwstr(wcs) in addwstr() argument
109 const wchar_t *wcs; in addwstr()
125 mvaddwstr(y, x, wcs) in mvaddwstr() argument
127 const wchar_t *wcs;
147 const wchar_t *wcs;
164 waddwstr(w, wcs) in waddwstr() argument
[all …]
H A Dwaddnws.c48 waddnwstr(w, wcs, n) in waddnwstr() argument
50 const wchar_t *wcs;
58 __m_trace("waddnwstr(%p, %p, %d)", w, wcs, n);
70 for ( ; *wcs != '\0' && 0 < n; n -= i, wcs += i) {
71 if ((i = __m_wcs_cc(wcs, w->_bg._at, w->_bg._co, &cc)) < 0
H A Dwins_nws.c47 wins_nwstr(w, wcs, n) in wins_nwstr() argument
49 const wchar_t *wcs;
56 __m_trace("wins_nwstr(%p, %p, n)", w, wcs, n);
65 for ( ; *wcs != '\0' && 0 < n; n -= i, wcs += i) {
66 if ((i = __m_wcs_cc(wcs, w->_bg._at, w->_bg._co, &cc)) < 0
H A Dgetcchar.c47 getcchar(const cchar_t *c, wchar_t *wcs, attr_t *at, short *co, void *opts) in getcchar() argument
52 __m_trace("getcchar(%p, %p, %p, %p, %p)", c, wcs, at, co, opts); in getcchar()
55 if (wcs == (wchar_t *) 0) in getcchar()
62 *wcs++ = c->_wc[i]; in getcchar()
63 *wcs = M_MB_L('\0'); in getcchar()
H A Dwinnwstr.c47 winnwstr(w, wcs, n) in winnwstr() argument
49 wchar_t *wcs;
56 __m_trace("winnwstr(%p, %p, %d)", w, wcs, n);
68 *wcs++ = cp->_wc[i];
75 *wcs = '\0';
H A Dsetcchar.c47 setcchar(cchar_t *cc, const wchar_t *wcs, attr_t at, short co, const void *opts) in setcchar() argument
52 __m_trace("setcchar(%p, %p, %x, %d, %p)", cc, wcs, at, co, opts); in setcchar()
55 i = __m_wcs_cc(wcs, at, co, cc); in setcchar()
57 return __m_return_code("setcchar", i < 0 || wcs[i] != '\0' ? ERR : OK); in setcchar()
H A Dm_cc.c125 wistowcs(wcs, wis, n) in wistowcs() argument
126 wchar_t *wcs; in wistowcs()
135 for (start = wcs; *wis != '\0' && 0 < n; ++wis, ++wcs, --n) {
138 *wcs = (wchar_t) *wis;
140 *wcs = '\0';
142 return (int) (wcs - start);
346 for (start = wcs, have_one = i = 0; *wcs != '\0'; ++wcs, ++i) { in __m_wcs_cc()
360 cc->_wc[i] = *wcs; in __m_wcs_cc()
379 wchar_t wcs[2]; in __m_wc_cc() local
384 wcs[0] = (wchar_t)wc; in __m_wc_cc()
[all …]
H A Dwunctrl.c89 static wchar_t wcs[M_CCHAR_MAX+1]; local
108 wcs[i] = cc->_wc[i];
109 wcs[i] = M_MB_L('\0');
111 return __m_return_pointer("wunctrl", wcs);
/illumos-gate/usr/src/lib/libmlrpc/common/
H A Dndr_wchar.c58 return (ndr__mbstowcs_x(wcs, mbs, nwchars, in ndr__mbstowcs()
68 return (ndr__mbstowcs_x(wcs, mbs, nwchars, in ndr__mbstowcs_le()
84 if (wcs != NULL && nwchars > 0) in ndr__mbstowcs_x()
85 *wcs = 0; in ndr__mbstowcs_x()
94 if (wcs == NULL) { in ndr__mbstowcs_x()
97 wcs = junk_wcs; in ndr__mbstowcs_x()
103 wcs, &wcslen, flags); in ndr__mbstowcs_x()
108 wcs[wcslen] = 0; in ndr__mbstowcs_x()
123 if (wcs == NULL || *wcs == 0) { in ndr__wcstombs()
139 wcslen = ndr__wcslen(wcs); in ndr__wcstombs()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Daddnws.c52 addnwstr(const wchar_t *wcs, int n) in addnwstr() argument
56 code = waddnwstr(stdscr, wcs, n); in addnwstr()
69 code = waddnwstr(stdscr, wcs, n); in mvaddnwstr()
82 code = waddnwstr(w, wcs, n); in mvwaddnwstr()
90 addwstr(const wchar_t *wcs) in addwstr() argument
94 code = waddnwstr(stdscr, wcs, -1); in addwstr()
102 mvaddwstr(int y, int x, const wchar_t *wcs) in mvaddwstr() argument
107 code = waddnwstr(stdscr, wcs, -1); in mvaddwstr()
120 code = waddnwstr(w, wcs, -1); in mvwaddwstr()
128 waddwstr(WINDOW *w, const wchar_t *wcs) in waddwstr() argument
[all …]
H A Dins_nws.c52 ins_nwstr(const wchar_t *wcs, int n) in ins_nwstr() argument
56 code = wins_nwstr(stdscr, wcs, n); in ins_nwstr()
69 code = wins_nwstr(stdscr, wcs, n); in mvins_nwstr()
82 code = wins_nwstr(w, wcs, n); in mvwins_nwstr()
90 ins_wstr(const wchar_t *wcs) in ins_wstr() argument
94 code = wins_nwstr(stdscr, wcs, -1); in ins_wstr()
102 mvins_wstr(int y, int x, const wchar_t *wcs) in mvins_wstr() argument
107 code = wins_nwstr(stdscr, wcs, -1); in mvins_wstr()
120 code = wins_nwstr(w, wcs, -1); in mvwins_wstr()
128 wins_wstr(WINDOW *w, const wchar_t *wcs) in wins_wstr() argument
[all …]
H A Dinnwstr.c54 innwstr(wchar_t *wcs, int n) in innwstr() argument
58 code = winnwstr(stdscr, wcs, n); in innwstr()
71 code = winnwstr(stdscr, wcs, n); in mvinnwstr()
84 code = winnwstr(w, wcs, n); in mvwinnwstr()
92 inwstr(wchar_t *wcs) in inwstr() argument
96 code = winnwstr(stdscr, wcs, -1); in inwstr()
104 mvinwstr(int y, int x, wchar_t *wcs) in mvinwstr() argument
109 code = winnwstr(stdscr, wcs, -1); in mvinwstr()
122 code = winnwstr(w, wcs, -1); in mvwinwstr()
130 winwstr(WINDOW *w, wchar_t *wcs) in winwstr() argument
[all …]
H A Dsetcchar.c53 setcchar(cchar_t *cc, const wchar_t *wcs, attr_t at, in setcchar() argument
58 if ((wcs == NULL) || wcs[0] == (wchar_t)0) { in setcchar()
64 } else if (wcs[1] == (wchar_t)0) { in setcchar()
65 i = __m_wc_cc((wint_t)wcs[0], cc); in setcchar()
71 i = __m_wcs_cc(wcs, at, co, cc); in setcchar()
74 return ((i < 0 || (wcs && wcs[i] != '\0')) ? ERR : OK); in setcchar()
H A Dwins_nws.c52 wins_nwstr(WINDOW *w, const wchar_t *wcs, int n) in wins_nwstr() argument
64 if ((wcwidth(*wcs) <= 0) && !iswcntrl(*wcs)) in wins_nwstr()
67 for (; *wcs != '\0' && 0 < n; n -= i, wcs += i) { in wins_nwstr()
68 if ((i = __m_wcs_cc(wcs, w->_bg._at, w->_fg._co, &cc)) in wins_nwstr()
H A Dgetcchar.c53 getcchar(const cchar_t *c, wchar_t *wcs, attr_t *at, short *co, void *opts) in getcchar() argument
57 if (wcs == NULL) in getcchar()
64 *wcs++ = c->_wc[i]; in getcchar()
65 *wcs = L'\0'; in getcchar()
H A Dm_cc.c132 for (start = wcs; *wis != '\0' && 0 < n; ++wis, ++wcs, --n) { in wistowcs()
135 *wcs = (wchar_t)*wis; in wistowcs()
137 *wcs = '\0'; in wistowcs()
350 for (start = wcs, i = 0; *wcs != '\0'; ++wcs, ++i) { in __m_wcs_cc()
359 } else if ((*wcs == L'\n') || (*wcs == L'\t') || in __m_wcs_cc()
360 (*wcs == L'\b') || (*wcs == L'\r')) { in __m_wcs_cc()
363 cc->_wc[i++] = *wcs++; in __m_wcs_cc()
367 cc->_wc[i] = *wcs; in __m_wcs_cc()
385 wchar_t wcs[2]; in __m_wc_cc() local
404 wcs[0] = (wchar_t)wc; in __m_wc_cc()
[all …]
H A Dwaddnws.c53 waddnwstr(WINDOW *w, const wchar_t *wcs, int n) in waddnwstr() argument
68 for (; *wcs != '\0' && 0 < n; wcs++, n--) { in waddnwstr()
69 if (__m_wc_cc(*wcs, &cc) < 0) in waddnwstr()
H A Dwunctrl.c90 static wchar_t wcs[_M_CCHAR_MAX + 1]; in wunctrl() local
106 wcs[i] = cc->_wc[i]; in wunctrl()
107 wcs[i] = L'\0'; in wunctrl()
109 return (wcs); in wunctrl()
/illumos-gate/usr/src/test/libc-tests/tests/wcsrtombs/
H A Dwcsrtombs_test.c45 wchar_t wcs[32]; member
99 const wchar_t *wcs = test[i].wcs; in test_wcsrtombs_1() local
145 const wchar_t *wcs = test[i].wcs; in test_wcsrtombs_l() local
180 const wchar_t *wcs = test[i].wcs; in test_wcsrtombs_thr_iter() local
231 const wchar_t *wcs; in test_wcsrtombs_partial() local
242 wcs = src; in test_wcsrtombs_partial()
248 if (wcs != src) { in test_wcsrtombs_partial()
275 const wchar_t *wcs; in test_wcsrtombs_negative() local
290 wcs = src; in test_wcsrtombs_negative()
322 wcs = src; in test_wcsnrtombs_partial()
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrxfrm.c45 wchar_t *wcs = NULL; in strxfrm_l() local
63 if ((wcs = malloc((slen + 1) * sizeof (wchar_t))) == NULL) in strxfrm_l()
66 if (mbstowcs_l(wcs, src, slen + 1, loc) == (size_t)-1) in strxfrm_l()
69 if ((xlen = _collate_sxfrm(wcs, xf, dlen, loc)) == (size_t)-1) in strxfrm_l()
72 if (wcs) in strxfrm_l()
73 free(wcs); in strxfrm_l()
85 if (wcs) in strxfrm_l()
86 free(wcs); in strxfrm_l()
/illumos-gate/usr/src/lib/libxcurses2/h/
H A Dcurses.h793 #define waddstr(w, wcs) waddnstr(w, wcs, -1) argument
795 #define addwstr(wcs) waddwstr(stdscr, wcs) argument
800 (move(y, x) ? (wcs, ERR) : addwstr(wcs))
809 #define waddwstr(w, wcs) waddnwstr(w, wcs, -1) argument
911 #define get_wstr(wcs) wget_wstr(stdscr, wcs) argument
916 (move(y, x) ? (wcs, ERR) : get_wstr(wcs))
1024 #define inwstr(wcs) winwstr(stdscr, wcs) argument
1026 (move(y, x) ? (wcs, n, ERR) : innwstr(wcs, n))
1029 (move(y, x) ? (wcs, ERR) : inwstr(wcs))
1061 #define ins_wstr(wcs) wins_wstr(stdscr, wcs) argument
[all …]
/illumos-gate/usr/src/lib/libxcurses/h/
H A Dcurses.h864 #define waddstr(w,wcs) waddnstr(w,wcs,-1) argument
866 #define addnwstr(wcs,n) waddnwstr(stdscr,wcs,n) argument
867 #define addwstr(wcs) waddwstr(stdscr,wcs) argument
872 #define waddwstr(w,wcs) waddnwstr(w,wcs,-1) argument
952 #define get_wstr(wcs) wget_wstr(stdscr,wcs) argument
957 #define wget_wstr(w,wcs) wgetn_wstr(w,wcs,-1) argument
1019 #define innwstr(wcs,n) winnwstr(stdscr,wcs,n) argument
1020 #define inwstr(wcs) winwstr(stdscr,wcs) argument
1025 #define winwstr(w,wcs) winnwstr(w,wcs,-1) argument
1044 #define ins_wstr(wcs) wins_wstr(stdscr, wcs) argument
[all …]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_utf8.c60 smb_mbstowcs(smb_wchar_t *wcs, const char *mbs, size_t nwchars) in smb_mbstowcs() argument
67 if (wcs != NULL && nwchars > 0) in smb_mbstowcs()
68 *wcs = 0; in smb_mbstowcs()
76 if (wcs == NULL) { in smb_mbstowcs()
83 wcs, &wcslen, UCONV_OUT_LITTLE_ENDIAN); in smb_mbstowcs()
88 wcs[wcslen] = 0; in smb_mbstowcs()
193 smb_wcstombs(char *mbs, const smb_wchar_t *wcs, size_t nbytes) in smb_wcstombs() argument
199 if (wcs == NULL || *wcs == 0) { in smb_wcstombs()
217 while (wcs[wcslen] != 0) in smb_wcstombs()
221 err = uconv_u16tou8(wcs, &wcslen, in smb_wcstombs()

12