Home
last modified time | relevance | path

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

/external/libedit/src/
Demacs.c58 if (el->el_line.cursor == el->el_line.lastchar) { in em_delete_or_list()
77 if (el->el_line.cursor > el->el_line.lastchar) in em_delete_or_list()
78 el->el_line.cursor = el->el_line.lastchar; in em_delete_or_list()
95 if (el->el_line.cursor == el->el_line.lastchar) in em_delete_next_word()
98 cp = c__next_word(el->el_line.cursor, el->el_line.lastchar, in em_delete_next_word()
107 if (el->el_line.cursor > el->el_line.lastchar) in em_delete_next_word()
108 el->el_line.cursor = el->el_line.lastchar; in em_delete_next_word()
127 if (el->el_line.lastchar + in em_yank()
162 while (cp < el->el_line.lastchar) in em_kill_line()
166 el->el_line.lastchar = el->el_line.buffer; in em_kill_line()
[all …]
Dcommon.c59 *el->el_line.lastchar = '\0'; in ed_end_of_file()
76 if (el->el_line.lastchar + el->el_state.argument >= in ed_insert()
85 || el->el_line.cursor >= el->el_line.lastchar) in ed_insert()
94 while (count-- && el->el_line.cursor < el->el_line.lastchar) in ed_insert()
146 EL.buffer, EL.buffer, EL.cursor, EL.cursor, EL.lastchar, in ed_delete_next_char()
147 EL.lastchar, EL.limit, EL.limit); in ed_delete_next_char()
149 if (el->el_line.cursor == el->el_line.lastchar) { in ed_delete_next_char()
173 el->el_line.cursor >= el->el_line.lastchar && in ed_delete_next_char()
176 el->el_line.cursor = el->el_line.lastchar - 1; in ed_delete_next_char()
193 while (cp < el->el_line.lastchar) in ed_kill_line()
[all …]
Dsearch.c198 el->el_line.lastchar - el->el_line.buffer); in c_setpat()
223 if (el->el_line.lastchar + sizeof(STRfwd) / in ce_inc_search()
224 sizeof(*el->el_line.lastchar) + 2 + in ce_inc_search()
241 *el->el_line.lastchar++ = '\n'; in ce_inc_search()
243 *cp; *el->el_line.lastchar++ = *cp++) in ce_inc_search()
245 *el->el_line.lastchar++ = pchar; in ce_inc_search()
248 *el->el_line.lastchar++ = *cp++) in ce_inc_search()
250 *el->el_line.lastchar = '\0'; in ce_inc_search()
264 *el->el_line.lastchar++ = ch; in ce_inc_search()
265 *el->el_line.lastchar = '\0'; in ce_inc_search()
[all …]
Dhist.c106 el->el_line.lastchar = el->el_line.buffer + in hist_get()
114 el->el_line.cursor = el->el_line.lastchar; in hist_get()
134 el->el_line.lastchar = el->el_line.buffer + Strlen(el->el_line.buffer); in hist_get()
136 if (el->el_line.lastchar > el->el_line.buffer in hist_get()
137 && el->el_line.lastchar[-1] == '\n') in hist_get()
138 el->el_line.lastchar--; in hist_get()
139 if (el->el_line.lastchar > el->el_line.buffer in hist_get()
140 && el->el_line.lastchar[-1] == ' ') in hist_get()
141 el->el_line.lastchar--; in hist_get()
147 el->el_line.cursor = el->el_line.lastchar; in hist_get()
Dvi.c72 (int)(el->el_line.lastchar - el->el_line.buffer)); in cv_action()
76 el->el_line.lastchar = el->el_line.buffer; in cv_action()
106 if (!c && el->el_line.cursor < el->el_line.lastchar) in cv_paste()
110 if (el->el_line.cursor + len > el->el_line.lastchar) in cv_paste()
204 if (el->el_line.cursor >= el->el_line.lastchar - 1) in vi_next_big_word()
208 el->el_line.lastchar, el->el_state.argument, cv__isWord); in vi_next_big_word()
228 if (el->el_line.cursor >= el->el_line.lastchar - 1) in vi_next_word()
232 el->el_line.lastchar, el->el_state.argument, cv__isword); in vi_next_word()
252 if (el->el_line.cursor >= el->el_line.lastchar) in vi_change_case()
263 if (++el->el_line.cursor >= el->el_line.lastchar) { in vi_change_case()
[all …]
Dchared.c66 size = (size_t)(el->el_line.lastchar - el->el_line.buffer); in cv_undo()
100 if (el->el_line.lastchar + num >= el->el_line.limit) { in c_insert()
105 if (el->el_line.cursor < el->el_line.lastchar) { in c_insert()
107 for (cp = el->el_line.lastchar; cp >= el->el_line.cursor; cp--) in c_insert()
110 el->el_line.lastchar += num; in c_insert()
121 if (el->el_line.cursor + num > el->el_line.lastchar) in c_delafter()
122 num = (int)(el->el_line.lastchar - el->el_line.cursor); in c_delafter()
132 for (cp = el->el_line.cursor; cp <= el->el_line.lastchar; cp++) in c_delafter()
135 el->el_line.lastchar -= num; in c_delafter()
148 for (cp = el->el_line.cursor; cp <= el->el_line.lastchar; cp++) in c_delafter1()
[all …]
Dread.c108 if (el->el_line.cursor > el->el_line.lastchar) in read_debug()
114 if (el->el_line.lastchar > el->el_line.limit) in read_debug()
551 cp = el->el_line.lastchar; in FUN()
596 el->el_line.lastchar = in FUN()
675 *el->el_line.lastchar++ = CONTROL('d'); in FUN()
676 el->el_line.cursor = el->el_line.lastchar; in FUN()
682 num = (int)(el->el_line.lastchar - el->el_line.buffer); in FUN()
719 *nread = (int)(el->el_line.lastchar - el->el_line.buffer); in FUN()
723 el->el_line.cursor = el->el_line.lastchar = cp; in FUN()
Drefresh.c223 if (el->el_line.cursor >= el->el_line.lastchar) { in re_refresh()
225 && el->el_line.lastchar != el->el_line.buffer) in re_refresh()
226 el->el_line.cursor = el->el_line.lastchar - 1; in re_refresh()
228 el->el_line.cursor = el->el_line.lastchar; in re_refresh()
239 if (el->el_line.lastchar - el->el_line.buffer > termsz) { in re_refresh()
244 size_t rem = (el->el_line.lastchar-el->el_line.buffer)%termsz; in re_refresh()
246 st = el->el_line.lastchar - rem in re_refresh()
253 for (cp = st; cp < el->el_line.lastchar; cp++) { in re_refresh()
997 if (el->el_line.cursor >= el->el_line.lastchar) { in re_refresh_cursor()
999 && el->el_line.lastchar != el->el_line.buffer) in re_refresh_cursor()
[all …]
Dhistedit.h65 const char *lastchar; member
270 const wchar_t *lastchar; member
Del.h77 Char *lastchar; /* Last character */ member
Deln.c359 for (p = winfo->buffer; p < winfo->lastchar; p++) in el_line()
361 info->lastchar = info->buffer + offset; in el_line()
Dtokenizer.c204 if (ptr >= line->lastchar) in FUN()
451 li.cursor = li.lastchar = Strchr(line, '\0'); in FUN()
Dfilecomplete.c454 *end = (int)(li->lastchar - li->buffer); in fn_complete()
Dreadline.c2103 rl_end = (int)(li->lastchar - li->buffer); in _rl_update_pos()
/external/curl/lib/
Dcurl_fnmatch.c129 unsigned char lastchar = 0; in setcharset() local
211 lastchar = '-'; in setcharset()
259 charset[lastchar] = 0; in setcharset()
/external/llvm/lib/LineEditor/
DLineEditor.cpp143 StringRef(LI->buffer, LI->lastchar - LI->buffer), in ElCompletionFn()
180 << StringRef(LI->buffer, LI->lastchar - LI->buffer); in ElCompletionFn()
184 Data->PrevCount = LI->lastchar - LI->cursor; in ElCompletionFn()
/external/libedit/examples/
Dtc1.c192 (li->lastchar - 1 - li->cursor), in main()
193 (li->cursor >= li->lastchar) ? "" : li->cursor); in main()
Dwtc1.c168 (li->lastchar - 1 - li->cursor), in main()
169 (li->cursor >= li->lastchar) ? L"" : li->cursor); in main()
/external/toybox/toys/pending/
Dfdisk.c455 char boot, lastchar = '\0', *dev = disk_device; in list_partitions() local
464 if (isdigit(dev[len - 1])) lastchar = 'p'; in list_partitions()
485 if (lastchar) xprintf("%s%c%d",dev, lastchar, i+1); in list_partitions()
/external/mesa3d/src/mesa/drivers/x11/
Dxfonts.c262 lastchar = (fs->max_byte1 << 8) + fs->max_char_or_byte2; in Fake_glXUseXFont()
/external/mesa3d/src/glx/
Dxfont.c259 lastchar = (fs->max_byte1 << 8) + fs->max_char_or_byte2; in DRI_glXUseXFont()
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dglx_usefont.c256 lastchar = (fs->max_byte1 << 8) + fs->max_char_or_byte2; in glXUseXFont()
/external/libgdx/gdx/jni/gdx2d/
Djpgd.cpp1270 uint lastchar, thischar; in locate_soi_marker() local
1273 lastchar = get_bits(8); in locate_soi_marker()
1279 if ((lastchar == 0xFF) && (thischar == M_SOI)) in locate_soi_marker()
1289 lastchar = thischar; in locate_soi_marker()
1293 if (lastchar == 0xFF) in locate_soi_marker()
/external/pcre/dist/
Dpcre_compile.c5749 pcre_uchar *lastchar = code - 1; in compile_branch() local
5750 BACKCHAR(lastchar); in compile_branch()
5751 c = (int)(code - lastchar); /* Length of UTF-8 character */ in compile_branch()
5752 memcpy(utf_chars, lastchar, IN_UCHARS(c)); /* Save the char */ in compile_branch()
Dpcre_jit_compile.c3878 struct sljit_jump *lastchar; in fast_forward_newline() local
3894 lastchar = CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0); in fast_forward_newline()
3918 JUMPHERE(lastchar); in fast_forward_newline()
3934 lastchar = CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0); in fast_forward_newline()
3955 JUMPHERE(lastchar); in fast_forward_newline()