41#define EC_STRVEC(args...) ({ \
42 const char *_arr[] = {args}; \
43 ec_strvec_from_array(_arr, EC_COUNT_OF(_arr)); \
92 char *unclosed_quote);
157 size_t off,
size_t len);
244 int (*str_cmp)(
const char *s1,
const char *s2));
struct ec_dict * ec_dict(void)
int ec_strvec_set(struct ec_strvec *strvec, size_t idx, const char *s)
int ec_strvec_cmp(const struct ec_strvec *strvec1, const struct ec_strvec *strvec2)
struct ec_strvec * ec_strvec_from_array(const char *const *strarr, size_t n)
struct ec_strvec * ec_strvec_sh_lex_str(const char *str, ec_strvec_flag_t flags, char *unclosed_quote)
struct ec_strvec * ec_strvec_ndup(const struct ec_strvec *strvec, size_t off, size_t len)
void ec_strvec_free(struct ec_strvec *strvec)
int ec_strvec_set_attrs(struct ec_strvec *strvec, size_t idx, struct ec_dict *attrs)
const char * ec_strvec_val(const struct ec_strvec *strvec, size_t idx)
void ec_strvec_sort(struct ec_strvec *strvec, int(*str_cmp)(const char *s1, const char *s2))
int ec_strvec_del_last(struct ec_strvec *strvec)
void ec_strvec_dump(FILE *out, const struct ec_strvec *strvec)
struct ec_strvec * ec_strvec(void)
int ec_strvec_add(struct ec_strvec *strvec, const char *s)
const struct ec_dict * ec_strvec_get_attrs(const struct ec_strvec *strvec, size_t idx)
struct ec_strvec * ec_strvec_dup(const struct ec_strvec *strvec)
size_t ec_strvec_len(const struct ec_strvec *strvec)