MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / c__prev_word

Function c__prev_word

extern/editline/src/chared.c:235–253  ·  view source on GitHub ↗

c__prev_word(): * Find the previous word */

Source from the content-addressed store, hash-verified

233 * Find the previous word
234 */
235protected Char *
236c__prev_word(Char *p, Char *low, int n, int (*wtest)(Int))
237{
238 p--;
239
240 while (n--) {
241 while ((p >= low) && !(*wtest)(*p))
242 p--;
243 while ((p >= low) && (*wtest)(*p))
244 p--;
245 }
246
247 /* cp now points to one character before the word */
248 p++;
249 if (p < low)
250 p = low;
251 /* cp now points where we want it */
252 return p;
253}
254
255
256/* c__next_word():

Callers 3

ed_delete_prev_wordFunction · 0.85
ed_prev_wordFunction · 0.85
em_copy_prev_wordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected