| /libedit-20250104-3.1/src/ |
| D | filecomplete.c | 75 size_t len = 0; in fn_tilde_expand() local 87 len = (size_t)(pos - txt + 1); in fn_tilde_expand() 119 txt += len; in fn_tilde_expand() 334 size_t len; in fn_filename_completion_function() local 426 len = strlen(dirname) + len + 1; in fn_filename_completion_function() 590 size_t len; in find_word_to_complete() local 624 len = 0; in find_word_to_complete() 627 *length = len; in find_word_to_complete() 638 temp[len] = '\0'; in find_word_to_complete() 667 size_t len; in fn_complete2() local [all …]
|
| D | vis.c | 356 size_t len; in makeextralist() local 360 len = strlen(src); in makeextralist() 368 for (i = 0; i < len; i++) in makeextralist() 370 d = dst + len; in makeextralist() 403 size_t len, olen; in istrsenvisx() local 524 len = src - psrc; in istrsenvisx() 532 if (mblength < len) in istrsenvisx() 533 len = mblength; in istrsenvisx() 555 for (start = dst; len > 0; len--) { in istrsenvisx() 573 len = wcslen(start); in istrsenvisx() [all …]
|
| D | readline.c | 240 size_t len; in _default_history_file() local 578 size_t len; in get_history_event() local 694 size_t len = 0; in getfrom() local 755 size_t len = 0; in getto() local 1083 len = j - i; in history_expand() 1154 len++; in history_arg_extract() 1183 size_t len; in history_tokenize() local 2313 size_t len; in rl_copy_text() local 2401 len = 1; in rl_completion_matches() 2416 if (len == 1) in rl_completion_matches() [all …]
|
| D | chared.c | 598 size_t len; in el_winsertstr() local 672 size_t len; in el_wreplacestr() local 720 ssize_t len; in c_gets() local 726 cp += len; in c_gets() 728 len = 0; in c_gets() 738 len = -1; in c_gets() 746 if (len == 0) { in c_gets() 747 len = -1; in c_gets() 750 len--; in c_gets() 757 buf[len] = ch; in c_gets() [all …]
|
| D | chartype.c | 126 size_t len; in ct_decode_string() local 131 len = mbstowcs(NULL, s, (size_t)0); in ct_decode_string() 132 if (len == (size_t)-1) in ct_decode_string() 135 if (conv->wsize < ++len) in ct_decode_string() 136 if (ct_conv_wbuff_resize(conv, len + CT_BUFSIZ) == -1) in ct_decode_string() 201 ct_encode_char(char *dst, size_t len, wchar_t c) in ct_encode_char() argument 204 if (len < ct_enc_width(c)) in ct_encode_char() 283 ct_visual_char(wchar_t *dst, size_t len, wchar_t c) in ct_visual_char() argument 290 if (len < 2) in ct_visual_char() 299 if (len < 1) in ct_visual_char() [all …]
|
| D | vi.c | 116 c_insert(el, (int)len); in cv_paste() 527 if (un.len == -1) in vi_undo() 1009 size_t len; in vi_histedit() local 1032 line[len] = '\0'; in vi_histedit() 1035 len = strlen(cp); in vi_histedit() 1036 write(fd, cp, len); in vi_histedit() 1055 len = mbstowcs(el->el_line.buffer, cp, len); in vi_histedit() 1056 if (len > 0 && el->el_line.buffer[len - 1] == '\n') in vi_histedit() 1057 --len; in vi_histedit() 1060 len = 0; in vi_histedit() [all …]
|
| D | hist.c | 185 size_t len = strlen(ptr); in hist_command() local 186 if (len > 0 && ptr[len - 1] == '\n') in hist_command() 187 ptr[--len] = '\0'; in hist_command() 188 len = len * 4 + 1; in hist_command() 189 if (len >= maxlen) { in hist_command() 190 maxlen = len + 1024; in hist_command()
|
| D | wcsdup.c | 31 size_t len; in wcsdup() local 35 len = wcslen(str) + 1; in wcsdup() 38 errno = reallocarr(©, len, sizeof(*copy)); in wcsdup() 42 return wmemcpy(copy, str, len); in wcsdup()
|
| D | refresh.c | 547 size_t len; in re_update_line() local 832 len = (size_t) ((nsb - nfd) - fx); in re_update_line() 837 len = (size_t)(nsb - nfd); in re_update_line() 838 terminal_overwrite(el, nfd, len); in re_update_line() 839 re__strncopy(ofd, nfd, len); in re_update_line() 871 len = (size_t) (nsb - nfd); in re_update_line() 872 terminal_overwrite(el, nfd, len); in re_update_line() 873 re__strncopy(ofd, nfd, len); in re_update_line() 966 len = (size_t) (nsb - nfd); in re_update_line() 967 terminal_overwrite(el, nfd, len); in re_update_line() [all …]
|
| D | literal.c | 83 size_t i, len; in literal_add() local 93 len = (size_t)(end - buf); in literal_add() 94 for (w = 0, i = 0; i < len; i++) in literal_add() 102 for (n = 0, i = 0; i < len; i++) in literal_add()
|
| D | getline.c | 103 ssize_t len; in main() local 106 while ((len = getline(&p, &n, stdin)) != -1) in main() 107 (void)printf("%zd %s", len, p); in main()
|
| D | history.c | 418 size_t len, elen, slen; in history_def_add() local 426 len = elen + slen + 1; in history_def_add() 427 s = h_malloc(len * sizeof(*s)); in history_def_add() 434 s[len - 1] = '\0'; in history_def_add() 842 size_t len, max_size; in history_save_fp() local 866 len = strlen(str) * 4 + 1; in history_save_fp() 867 if (len > max_size) { in history_save_fp() 967 size_t len = Strlen(str); in history_prev_string() local 971 if (Strncmp(str, ev->str, len) == 0) in history_prev_string() 985 size_t len = Strlen(str); in history_next_string() local [all …]
|
| D | keymacro.c | 630 keymacro__decode_str(const wchar_t *str, char *buf, size_t len, in keymacro__decode_str() argument 633 char *b = buf, *eb = b + len; in keymacro__decode_str() 662 if ((size_t)(b - buf) >= len) in keymacro__decode_str() 663 buf[len - 1] = '\0'; in keymacro__decode_str()
|
| D | common.c | 566 el->el_chared.c_undo.len = -1; in ed_prev_history() 602 el->el_chared.c_undo.len = -1; in ed_next_history() 632 el->el_chared.c_undo.len = -1; in ed_search_prev_history() 700 el->el_chared.c_undo.len = -1; in ed_search_next_history()
|
| D | el.c | 554 size_t len; in el_source() local 593 len = 0; in el_source() 594 while ((slen = getline(&ptr, &len, fp)) != -1) { in el_source()
|
| D | tty.c | 1198 size_t len = 0, st = 0, cu; in tty_stty() local 1205 st = len = in tty_stty() 1222 if (len + cu >= in tty_stty() 1226 len = st + cu; in tty_stty() 1228 len += cu; in tty_stty()
|
| D | sys.h | 96 ssize_t getline(char **line, size_t *len, FILE *fp);
|
| D | chared.h | 59 ssize_t len; /* length of saved line */ member
|
| /libedit-20250104-3.1/examples/ |
| D | wtc1.c | 41 int len; in my_wcstombs() member 45 if (needed > buf.len) { in my_wcstombs() 47 buf.len = needed; in my_wcstombs() 64 int len, i; in complete() local 72 len = lf->cursor - ++ptr; in complete() 76 mblen = MB_LEN_MAX * len + 1; in complete() 83 for (i = 0; i < len; ++i) { in complete()
|
| D | tc1.c | 99 size_t len; in complete() local 108 len = lf->cursor - ++ptr; in complete() 111 if (len > strlen(dp->d_name)) in complete() 113 if (strncmp(dp->d_name, ptr, len) == 0) { in complete() 114 if (el_insertstr(el, &dp->d_name[len]) == -1) in complete()
|
| D | fileman.c | 266 static int list_index, len; in command_generator() local 275 len = strlen (text); in command_generator() 284 if (strncmp (name, text, len) == 0) in command_generator()
|
| /libedit-20250104-3.1/ |
| D | ltmain.sh | 6573 size_t len, patlen; 6578 len = strlen (str); 6581 if (patlen <= len) 6583 str += len - patlen; 6650 char *str = XMALLOC (char, len); 6698 size_t len = strlen (new_value); 6699 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) 6701 new_value[--len] = '\0'; 10045 && { test "$len" -lt "$max_cmd_len" \ 10246 func_arith $len + $func_len_result [all …]
|