44int ec_str_parse_llint(
const char *str,
unsigned int base, int64_t min, int64_t max, int64_t *val);
100char *
ec_str_wrap(
const char *str,
size_t max_cols,
size_t start_off);
int ec_str_parse_ullint(const char *str, unsigned int base, uint64_t min, uint64_t max, uint64_t *val)
Parse a string for an unsigned integer.
size_t ec_strcmp_count(const char *s1, const char *s2)
Count the number of identical characters at the beginning of two strings.
int ec_str_startswith(const char *s, const char *beginning)
Return 1 if the string starts with the given prefix.
int ec_str_parse_llint(const char *str, unsigned int base, int64_t min, int64_t max, int64_t *val)
Parse a string for a signed integer.
bool ec_str_is_space(const char *s)
Return true if the string contains only whitespace characters.
char * ec_str_wrap(const char *str, size_t max_cols, size_t start_off)
Wrap a text to a maximum number of columns.
char * ec_str_quote(const char *str, char quote, bool force)
Quote a string, escaping nested quotes.