/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | wunctrl.c | 89 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);
|
H A D | getcchar.c | 47 getcchar(const cchar_t *c, wchar_t *wcs, attr_t *at, short *co, void *opts) argument 52 __m_trace("getcchar(%p, %p, %p, %p, %p)", c, wcs, at, co, opts); 55 if (wcs == (wchar_t *) 0) 62 *wcs++ = c->_wc[i]; 63 *wcs = M_MB_L('\0');
|
H A D | setcchar.c | 47 setcchar(cchar_t *cc, const wchar_t *wcs, attr_t at, short co, const void *opts) argument 52 __m_trace("setcchar(%p, %p, %x, %d, %p)", cc, wcs, at, co, opts); 55 i = __m_wcs_cc(wcs, at, co, cc); 57 return __m_return_code("setcchar", i < 0 || wcs[i] != '\0' ? ERR : OK);
|
H A D | slk.c | 280 wchar_t wcs[M_CCHAR_MAX * 8 + 1]; local 286 if (0 < mbstowcs(wcs, label, sizeof wcs)) 287 code = slk_wset(index, wcs, justify); 298 wchar_t wcs[M_CCHAR_MAX * 8 + 1], *wp; local 321 for (wp = wcs, width = 0; label != '\0'; label += i, wp += cc._n) { 333 if (wcstombs(mbs, wcs, sizeof mbs) == (size_t) -1)
|
H A D | m_cc.c | 125 wistowcs(wcs, wis, n) 126 wchar_t *wcs; 135 for (start = wcs; *wis != '\0' && 0 < n; ++wis, ++wcs, --n) { 138 *wcs = (wchar_t) *wis; 140 *wcs = '\0'; 142 return (int) (wcs - start); 340 __m_wcs_cc(const wchar_t *wcs, attr_t at, short co, cchar_t *cc) argument 346 for (start = wcs, have_one = i = 0; *wcs ! 379 wchar_t wcs[2]; local [all...] |
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | waddnws.c | 53 waddnwstr(WINDOW *w, const wchar_t *wcs, int n) argument 68 for (; *wcs != '\0' && 0 < n; wcs++, n--) { 69 if (__m_wc_cc(*wcs, &cc) < 0)
|
H A D | wunctrl.c | 90 static wchar_t wcs[_M_CCHAR_MAX + 1]; local 106 wcs[i] = cc->_wc[i]; 107 wcs[i] = L'\0'; 109 return (wcs);
|
H A D | getcchar.c | 53 getcchar(const cchar_t *c, wchar_t *wcs, attr_t *at, short *co, void *opts) argument 57 if (wcs == NULL) 64 *wcs++ = c->_wc[i]; 65 *wcs = L'\0';
|
H A D | setcchar.c | 53 setcchar(cchar_t *cc, const wchar_t *wcs, attr_t at, argument 58 if ((wcs == NULL) || wcs[0] == (wchar_t)0) { 64 } else if (wcs[1] == (wchar_t)0) { 65 i = __m_wc_cc((wint_t)wcs[0], cc); 71 i = __m_wcs_cc(wcs, at, co, cc); 74 return ((i < 0 || (wcs && wcs[i] != '\0')) ? ERR : OK);
|
H A D | winnwstr.c | 52 winnwstr(WINDOW *w, wchar_t *wcs, int n) argument 70 *wcs++ = cp->_wc[i]; 79 *wcs = '\0';
|
H A D | wins_nws.c | 52 wins_nwstr(WINDOW *w, const wchar_t *wcs, int n) argument 64 if ((wcwidth(*wcs) <= 0) && !iswcntrl(*wcs)) 67 for (; *wcs != '\0' && 0 < n; n -= i, wcs += i) { 68 if ((i = __m_wcs_cc(wcs, w->_bg._at, w->_fg._co, &cc))
|
H A D | addnws.c | 52 addnwstr(const wchar_t *wcs, int n) argument 56 code = waddnwstr(stdscr, wcs, n); 64 mvaddnwstr(int y, int x, const wchar_t *wcs, int n) argument 69 code = waddnwstr(stdscr, wcs, n); 77 mvwaddnwstr(WINDOW *w, int y, int x, const wchar_t *wcs, int n) argument 82 code = waddnwstr(w, wcs, n); 90 addwstr(const wchar_t *wcs) argument 94 code = waddnwstr(stdscr, wcs, -1); 102 mvaddwstr(int y, int x, const wchar_t *wcs) argument 107 code = waddnwstr(stdscr, wcs, 115 mvwaddwstr(WINDOW *w, int y, int x, const wchar_t *wcs) argument 128 waddwstr(WINDOW *w, const wchar_t *wcs) argument [all...] |
H A D | innwstr.c | 54 innwstr(wchar_t *wcs, int n) argument 58 code = winnwstr(stdscr, wcs, n); 66 mvinnwstr(int y, int x, wchar_t *wcs, int n) argument 71 code = winnwstr(stdscr, wcs, n); 79 mvwinnwstr(WINDOW *w, int y, int x, wchar_t *wcs, int n) argument 84 code = winnwstr(w, wcs, n); 92 inwstr(wchar_t *wcs) argument 96 code = winnwstr(stdscr, wcs, -1); 104 mvinwstr(int y, int x, wchar_t *wcs) argument 109 code = winnwstr(stdscr, wcs, 117 mvwinwstr(WINDOW *w, int y, int x, wchar_t *wcs) argument 130 winwstr(WINDOW *w, wchar_t *wcs) argument [all...] |
H A D | ins_nws.c | 52 ins_nwstr(const wchar_t *wcs, int n) argument 56 code = wins_nwstr(stdscr, wcs, n); 64 mvins_nwstr(int y, int x, const wchar_t *wcs, int n) argument 69 code = wins_nwstr(stdscr, wcs, n); 77 mvwins_nwstr(WINDOW *w, int y, int x, const wchar_t *wcs, int n) argument 82 code = wins_nwstr(w, wcs, n); 90 ins_wstr(const wchar_t *wcs) argument 94 code = wins_nwstr(stdscr, wcs, -1); 102 mvins_wstr(int y, int x, const wchar_t *wcs) argument 107 code = wins_nwstr(stdscr, wcs, 115 mvwins_wstr(WINDOW *w, int y, int x, const wchar_t *wcs) argument 128 wins_wstr(WINDOW *w, const wchar_t *wcs) argument [all...] |
H A D | slk.c | 321 wchar_t wcs[_M_CCHAR_MAX * 8 + 1]; local 325 if (mbstowcs(wcs, label, sizeof (wcs)) != (size_t)-1) 326 code = slk_wset(index, wcs, justify); 336 wchar_t wcs[_M_CCHAR_MAX * 8 + 1], *wp; local 352 for (wp = wcs, width = 0; *label != '\0'; label += i, wp += cc._n) { 366 if (wcstombs(tmbs, wcs, sizeof (mbs)) == (size_t) -1)
|
H A D | m_cc.c | 125 wistowcs(wchar_t *wcs, const wint_t *wis, int n) argument 132 for (start = wcs; *wis != '\0' && 0 < n; ++wis, ++wcs, --n) { 135 *wcs = (wchar_t)*wis; 137 *wcs = '\0'; 139 /* (wcs - start) should be enough small to fit in "int" */ 140 return ((int)(wcs - start)); 345 __m_wcs_cc(const wchar_t *wcs, attr_t at, short co, cchar_t *cc) argument 350 for (start = wcs, i = 0; *wcs ! 385 wchar_t wcs[2]; local [all...] |
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strxfrm.c | 45 wchar_t *wcs = NULL; local 63 if ((wcs = malloc((slen + 1) * sizeof (wchar_t))) == NULL) 66 if (mbstowcs_l(wcs, src, slen + 1, loc) == (size_t)-1) 69 if ((xlen = _collate_sxfrm(wcs, xf, dlen, loc)) == (size_t)-1) 72 if (wcs) 73 free(wcs); 85 if (wcs) 86 free(wcs);
|
H A D | wcsftime.c | 61 __wcsftime_xpg5(wchar_t *wcs, size_t maxsize, const wchar_t *format, argument 105 n = mbsrtowcs(wcs, &dstp, maxsize, &mbs); 122 wcsftime(wchar_t *wcs, size_t maxsize, const char *format, argument 136 rv = __wcsftime_xpg5(wcs, maxsize, wfmt, timeptr);
|
/illumos-gate/usr/src/cmd/localedef/ |
H A D | messages.c | 41 add_message(wchar_t *wcs) argument 45 if ((str = to_mb_string(wcs)) == NULL) { 49 free(wcs);
|
H A D | monetary.c | 40 add_monetary_str(wchar_t *wcs) argument 44 if ((str = to_mb_string(wcs)) == NULL) { 48 free(wcs);
|
H A D | numeric.c | 40 add_numeric_str(wchar_t *wcs) argument 44 if ((str = to_mb_string(wcs)) == NULL) { 48 free(wcs);
|
H A D | time.c | 40 add_time_str(wchar_t *wcs) argument 44 if ((str = to_mb_string(wcs)) == NULL) { 48 free(wcs); 96 add_time_list(wchar_t *wcs) argument 100 if ((str = to_mb_string(wcs)) == NULL) { 104 free(wcs);
|
H A D | wide.c | 592 to_mb_string(const wchar_t *wcs) argument 598 mbs = malloc((wcslen(wcs) * mb_cur_max) + 1); 604 while (*wcs) { 605 if ((len = to_mb(ptr, *wcs)) < 0) { 610 wcs++;
|
/illumos-gate/usr/src/test/libc-tests/tests/wcsrtombs/ |
H A D | wcsrtombs_test.c | 45 wchar_t wcs[32]; member in struct:wcsrtombs_test 99 const wchar_t *wcs = test[i].wcs; local 104 cnt = wcsrtombs(mbs, &wcs, sizeof (mbs), &ms); 145 const wchar_t *wcs = test[i].wcs; local 150 cnt = wcsrtombs_l(mbs, &wcs, sizeof (mbs), &ms, loc); 180 const wchar_t *wcs = test[i].wcs; local 185 cnt = wcsrtombs_l(mbs, &wcs, sizeo 231 const wchar_t *wcs; local 275 const wchar_t *wcs; local 311 const wchar_t *wcs; local [all...] |
/illumos-gate/usr/src/lib/smbsrv/libmlrpc/common/ |
H A D | ndr_process.c | 2001 ndr_mbstowcs(ndr_stream_t *nds, smb_wchar_t *wcs, const char *mbs, argument 2004 smb_wchar_t *start = wcs; 2008 nbytes = ndr_mbtowc(nds, wcs, mbs, MTS_MB_CHAR_MAX); 2010 *wcs = 0; 2017 ++wcs; 2021 return (wcs - start);
|