EC_COMPLETE(3)
π EC_COMPLETE π
okay bestie, so this is a page from the Libecoli Programmer's Manual, and it's all about ec_complete β the function that pulls your completion list out of a plain string. get comfy, we're doing this π
β¨ NAME β¨
ec_complete β literally just "gimme the list of completions from a string input." that's the whole gig π
πΈ SYNOPSIS πΈ
#include <ecoli/complete.h>
struct ec_comp * ec_complete(
const struct ec_node *node, /* The grammar graph. */
const char *str /* The input string. */
);
π¦ DESCRIPTION π¦
so the way this works is: ec_complete() is equivalent to calling ec_complete_strvec() with a vector that only contains 1 element β that element being the input string. periodt. no cap.
and honestly? using this one is often more convenient if you're getting your input from a buffer, because then you don't have to go build a whole vector yourself. slay, less work π«Ά
usually what that means is you've got a lexer hanging out in your grammar graph that's gonna tokenize the input for you. iconic behaviour honestly.
for the full deets, go read ec_complete_strvec() β that's where the details live. iykyk.
β RETURN VALUE β
- on success? you get a pointer to the completion list. chef's kiss π
- on error? you get
NULL, anderrnogets set. (the vibe check failed, bestie π)
π SEE ALSO π
the whole friend group, fr fr:
ec_comp_add_item(3)ec_comp_count(3)ec_comp_item_set_str(3)ec_comp_get_attrs(3)ec_comp_group_get_attrs(3)ec_comp_iter_next(3)ec_comp_item_get_node(3)ec_comp_iter_first(3)ec_comp_item_get_current(3)ec_comp_group_get_node(3)ec_complete_strvec_expand(3)ec_comp_free(3)ec_comp_get_cur_pstate(3)ec_complete_unknown(3)ec_complete_strvec(3)ec_comp_item_get_grp(3)ec_comp_item_get_type(3)ec_comp_item_get_str(3)ec_comp_item_set_display(3)ec_complete_child(3)ec_comp(3)ec_comp_item_get_display(3)ec_comp_item_get_completion(3)ec_comp_group_get_pstate(3)ec_comp_dump(3)ec_comp_merge(3)ec_comp_item_set_completion(3)ec_comp_get_cur_group(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
okay that's the whole page, bestie!! this one came from libecoli, dated 2026-06-11 β like, it's giving timeless, it's giving maintained π§π go forth and complete ur strings, mwah πβ¨
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms