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

Function el_line

extern/editline/src/eln.c:365–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363
364
365const LineInfo *
366el_line(EditLine *el)
367{
368 const LineInfoW *winfo = el_wline(el);
369 LineInfo *info = &el->el_lgcylinfo;
370 size_t offset;
371 const Char *p;
372
373 info->buffer = ct_encode_string(winfo->buffer, &el->el_lgcyconv);
374
375 offset = 0;
376 for (p = winfo->buffer; p < winfo->cursor; p++)
377 offset += ct_enc_width(*p);
378 info->cursor = info->buffer + offset;
379
380 offset = 0;
381 for (p = winfo->buffer; p < winfo->lastchar; p++)
382 offset += ct_enc_width(*p);
383 info->lastchar = info->buffer + offset;
384
385 return info;
386}
387
388
389int

Callers 2

_resize_funFunction · 0.85
_rl_update_posFunction · 0.85

Calls 2

ct_encode_stringFunction · 0.85
ct_enc_widthFunction · 0.85

Tested by

no test coverage detected