Home
last modified time | relevance | path

Searched refs:CharOf (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_bkgd.c74 if (CharOf(CHDEREF(ch)) == L('\0')) { in wbkgrndset()
93 tmp = _nc_to_char((wint_t) CharOf(wch)); in wbkgrndset()
136 #define TraceChar(c) _tracechar(CharOf(c)) in _nc_background()
159 if (CharOf(new_bkgd) == 0) { in _nc_background()
226 SetChar2(*cp, CharOf(new_char)); in _nc_background()
235 SetChar2(*cp, CharOf(new_char)); in _nc_background()
H A Dlib_addch.c215 if (!is8bits(CharOf(CHDEREF(ch)))) { in _nc_build_wch()
226 buffer[WINDOW_EXT(win, addch_used)] = (char) CharOf(CHDEREF(ch)); in _nc_build_wch()
291 if (len == -1 && is8bits(CharOf(ch))) { in waddch_literal()
293 (NCURSES_SP_ARGx (chtype) CharOf(ch)); in waddch_literal()
321 int len = _nc_wacs_width(CharOf(ch)); in waddch_literal()
347 chars[i] = CharOf(ch); in waddch_literal()
438 chtype t = (chtype) CharOf(ch); in waddch_nosync()
463 || !_nc_is_charable(CharOf(ch)))) in waddch_nosync()
H A Dlib_addstr.c127 while (CharOf(s[result]) != L'\0') { in _nc_wchstrlen()
186 for (i = 0; i < n && CharOf(astr[i]) != L'\0' && x <= win->_maxx; ++i) { in wadd_wchnstr()
190 len = _nc_wacs_width(CharOf(astr[i])); in wadd_wchnstr()
H A Dlib_winch.c50 returnChtype((chtype) CharOf(win->_line[win->_cury].text[win->_curx]) in NCURSES_EXPORT()
H A Dlib_inchstr.c62 str[i] = (((chtype) CharOf(text[col + i]) & A_CHARTEXT) | in NCURSES_EXPORT()
H A Dlib_instr.c112 str[i++] = (char) CharOf(text[col]); in NCURSES_EXPORT()
H A Dlib_box.c55 return ((attr_t) CharOf(wch)) | AttrOf(wch); in _my_render()
H A Dlib_overlay.c192 if ((CharOf(src->_line[sy].text[sx]) != L(' ')) && in copywin()
/freebsd/contrib/ncurses/ncurses/tty/
H A Dhashmap.c507 CharOf(oldtext[n][0]) = CharOf(newtext[n][0]) = '.'; in main()
541 CharOf(newtext[n][0]) = '.'; in main()
546 CharOf(newtext[n][0]) = line[n + 1]; in main()
551 CharOf(oldtext[n][0]) = '.'; in main()
556 CharOf(oldtext[n][0]) = line[n + 1]; in main()
565 putchar(CharOf(oldtext[n][0])); in main()
570 putchar(CharOf(newtext[n][0])); in main()
H A Dtty_update.c243 if ((chlen = _nc_wacs_width(CharOf(CHDEREF(ch)))) <= 0) { in PutAttrChar()
258 if (is8bits(CharOf(CHDEREF(ch))) in PutAttrChar()
259 && (!is7bits(CharOf(CHDEREF(ch))) && _nc_unicode_locale()) in PutAttrChar()
260 && (isprint(CharOf(CHDEREF(ch))) in PutAttrChar()
261 || (SP_PARM->_legacy_coding > 0 && CharOf(CHDEREF(ch)) >= 160) in PutAttrChar()
262 || (SP_PARM->_legacy_coding > 1 && CharOf(CHDEREF(ch)) >= 128) in PutAttrChar()
286 c8 = CharOf(my_ch); in PutAttrChar()
295 && _nc_wacs[CharOf(my_ch)].chars[0]) { in PutAttrChar()
296 if (SP_PARM->_screen_acs_map[CharOf(my_ch)]) { in PutAttrChar()
299 my_ch = _nc_wacs[CharOf(my_ch)]; in PutAttrChar()
[all …]
H A Dlib_mvcur.c684 int wanted = CharOf(WANT_CHAR(SP_PARM, to_y, from_x)); in relative_move()
716 *check.s_tail++ = (char) CharOf(WANT_CHAR(SP_PARM, to_y, in relative_move()
/freebsd/contrib/ncurses/ncurses/widechar/
H A Dlib_add_wch.c199 int len = _nc_wacs_width(CharOf(ch)); in wadd_wch_literal()
221 x, (int) CharOf(ch))); in wadd_wch_literal()
222 chars[i] = CharOf(ch); in wadd_wch_literal()
322 || iswprint((wint_t) CharOf(ch))) in wadd_wch_nosync()
332 switch (CharOf(ch)) { in wadd_wch_nosync()
H A Dlib_ins_wch.c52 int cells = _nc_wacs_width(CharOf(CHDEREF(wch))); in NCURSES_EXPORT()
56 code = winsch(win, (chtype) CharOf(CHDEREF(wch))); in NCURSES_EXPORT()
H A Dlib_wunctrl.c52 (unsigned) _nc_to_char((wint_t)CharOf(*wc))); in NCURSES_EXPORT()
/freebsd/contrib/ncurses/ncurses/trace/
H A Dlib_tracedmp.c59 if (CharOf(win->_line[i].text[j]) != L(' ') in NCURSES_EXPORT()
88 chtype test = (chtype) CharOf(win->_line[n].text[j]); in NCURSES_EXPORT()
H A Dvisbuf.c185 while (CharOf(s[result]) != L'\0') { in _nc_wchstrlen()
319 CharOf(buf[j])); in _nc_viscbuf2()
/freebsd/contrib/ncurses/ncurses/
H A Dcurses.priv.h1393 #define CharOf(c) ((c).chars[0]) macro
1429 TR_PUTC(CharOf(ch)); \
1430 NCURSES_OUTC_FUNC (NCURSES_SP_ARGx CharOf(ch)); \
1442 TR_PUTC(CharOf(ch)); \
1443 NCURSES_OUTC_FUNC (NCURSES_SP_ARGx CharOf(ch)); \
1479 _nc_is_charable(CharOf(ch)))
1483 #define CharOf(c) ChCharOf(c) macro
1504 #define ISBLANK(ch) (CharOf(ch) == ' ')
1509 #define Charable(ch) (CharOf(ch) >= ' ' && CharOf(ch) <= '~')
1514 #define CharOfD(ch) CharOf(CHDEREF(ch))
/freebsd/contrib/ncurses/form/
H A Dfrm_data.c99 if ((chtype)CharOf(cell) != ChCharOf(pad) in Only_Padding()
H A Dfrm_driver.c347 result = wcwidth(CharOf(CHDEREF(data))); in cell_width()
585 if ((unsigned long)CharOf(*p) == ChCharOf(pad) in _nc_get_fieldbuffer()
3194 if (CharOf(*bp) == 0) in Check_Field()
/freebsd/contrib/dialog/
H A Dui_getc.c383 ch = (int) CharOf(last_getc_bytes[used_last_getc++]); in really_getch()
394 ch = (int) CharOf(last_getc_bytes[used_last_getc++]); in really_getch()
H A Dutil.c807 switch (code = CharOf(*txt)) { in dlg_print_text()
875 thisTab = (CharOf(*txt) == TAB); in dlg_print_text()
885 int ch = CharOf(*txt++); in dlg_print_text()
895 (void) waddch(win, CharOf(*txt++) | useattr); in dlg_print_text()
H A Ddialog.h203 #define CharOf(ch) ((ch) & 0xff) macro
H A DCHANGES2278 + undo one use of CharOf() in guage.c, an error.
2291 + apply CharOf() macro to avoid sign-extension on calls to waddch(),
/freebsd/contrib/ncurses/ncurses/win32con/
H A Dwin32_driver.c188 ci[actual].Char.UnicodeChar = CharOf(ch); in con_write16()
193 int which = CharOf(ch); in con_write16()
196 && CharOf(_nc_wacs[which]) != 0) { in con_write16()
197 ci[actual].Char.UnicodeChar = CharOf(_nc_wacs[which]); in con_write16()
H A Dwin_driver.c279 ci[actual].Char.UnicodeChar = CharOf(ch); in con_write16()
284 int which = CharOf(ch); in con_write16()
287 && CharOf(_nc_wacs[which]) != 0) { in con_write16()
288 ci[actual].Char.UnicodeChar = CharOf(_nc_wacs[which]); in con_write16()

12