25 #define STR_BLOCKSIZE 16 63 extern const char str_lcase_digits[36] __DEPRECATED__;
72 #define str_ready(S,SZ) str_alloc(S,SZ,0) 74 #define str_realloc(S,SZ) str_alloc(S,SZ,1) 88 int str_copy3s(
str*
s,
const char* a,
const char* b,
const char* c);
89 int str_copy4s(
str*
s,
const char* a,
const char* b,
const char* c,
const char* d);
90 int str_copy5s(
str*
s,
const char* a,
const char* b,
const char* c,
const char* d,
const char* e);
91 int str_copy6s(
str*
s,
const char* a,
const char* b,
const char* c,
const char* d,
const char* e,
const char* f);
105 int str_catuw(
str*
s,
unsigned long in,
unsigned width,
char pad);
107 int str_catxw(
str*
s,
unsigned long in,
unsigned width,
char pad);
111 int str_catuwll(
str*
s,
unsigned long long in,
unsigned width,
char pad);
113 int str_catxwll(
str*
s,
unsigned long long in,
unsigned width,
char pad);
115 unsigned base,
const char* digits);
117 unsigned base,
const char* digits);
119 unsigned base,
const char* digits);
121 unsigned base,
const char* digits);
124 int str_cat3s(
str*
s,
const char* a,
const char* b,
const char* c);
125 int str_cat4s(
str*
s,
const char* a,
const char* b,
const char* c,
const char* d);
126 int str_cat5s(
str*
s,
const char* a,
const char* b,
const char* c,
const char* d,
const char* e);
127 int str_cat6s(
str*
s,
const char* a,
const char* b,
const char* c,
const char* d,
const char* e,
const char* f);
141 #define str_strip(S) (str_rstrip(S), str_lstrip(S)) 146 int str_splice(
str* s,
unsigned start,
unsigned len,
const str* r);
147 int str_splices(
str* s,
unsigned start,
unsigned len,
const char* r);
148 int str_spliceb(
str* s,
unsigned start,
unsigned len,
149 const char* r,
unsigned rlen);
150 long str_xlate(
str* s,
const char* from,
const char* to,
unsigned nchars);
155 int str_cmp(
const str* a,
unsigned aoffset,
const str* b,
unsigned boffset);
156 int str_cmps(
const str* a,
unsigned offset,
const char* b);
157 int str_cmpb(
const str* a,
unsigned offset,
const char* b,
unsigned len);
185 #define str_findfirst(S,C) str_findnext(S,C,0) 186 #define str_findfirstof(S,L) str_findnextof(S,L,0) 187 #define str_findfirstnot(S,L) str_findnextnot(S,L,0) 188 #define str_findlast(S,C) str_findprev(S,C,-1) 189 #define str_findlastof(S,L) str_findprevof(S,L,-1) 190 #define str_findlastnot(S,L) str_findprevof(S,L,-1) 202 int str_matchb(
const str* s,
const char* pptr,
unsigned plen);
207 int str_glob(
const str* s,
const str* pattern);
208 int str_globb(
const str* s,
const char* pptr,
unsigned plen);
209 int str_globs(
const str* s,
const char* pattern);
210 int str_case_glob(
const str* s,
const str* pattern);
211 int str_case_globb(
const str* s,
const char* pptr,
unsigned plen);
212 int str_case_globs(
const str* s,
const char* pattern);
long str_xlate(str *s, const char *from, const char *to, unsigned nchars)
Definition: xlate.c:24
int str_findprevof(const str *s, const char *list, unsigned pos)
Definition: findprevof.c:22
int str_copy2s(str *s, const char *a, const char *b)
Definition: copy2s.c:22
int str_catc(str *s, char in)
Definition: cat.c:34
int str_endb(const str *a, const char *b, unsigned len)
Definition: end.c:35
int str_diffb(const str *a, const char *b, unsigned len)
Definition: diff.c:41
char * s
Definition: str.h:36
int str_cat5s(str *s, const char *a, const char *b, const char *c, const char *d, const char *e)
Definition: cat5s.c:22
int str_matchs(const str *s, const char *pattern)
Definition: str/match.c:55
int str_copyns(str *s, unsigned int count,...)
Definition: copyns.c:23
int str_copy(str *s, const str *in)
Definition: copy.c:22
int str_findprev(const str *s, char ch, unsigned pos)
Definition: findprev.c:21
int str_copy5s(str *s, const char *a, const char *b, const char *c, const char *d, const char *e)
Definition: copy5s.c:22
int str_catsllnumw(str *s, long long in, unsigned width, char pad, unsigned base, const char *digits)
Definition: catsllnum.c:23
int str_diffs(const str *a, const char *b)
Definition: diff.c:35
int str_cat3s(str *s, const char *a, const char *b, const char *c)
Definition: cat3s.c:22
int str_copy4s(str *s, const char *a, const char *b, const char *c, const char *d)
Definition: copy4s.c:22
int str_catf(str *s, const char *format,...)
Definition: catf.c:40
int str_findprevnot(const str *s, const char *list, unsigned pos)
Definition: findprevnot.c:22
int str_catb(str *s, const char *in, unsigned len)
Definition: cat.c:43
int str_copy6s(str *s, const char *a, const char *b, const char *c, const char *d, const char *e, const char *f)
Definition: copy6s.c:22
int str_cat2s(str *s, const char *a, const char *b)
Definition: cat2s.c:22
int str_diff(const str *a, const str *b)
Definition: diff.c:29
void str_lstrip(str *s)
Definition: lstrip.c:23
void str_rcut(str *s, unsigned count)
Definition: cut.c:22
int str_catxwll(str *s, unsigned long long in, unsigned width, char pad)
Definition: catxwll.c:29
void str_upper(str *s)
Definition: upper.c:22
int str_catuw(str *s, unsigned long in, unsigned width, char pad)
Definition: catuw.c:22
unsigned str_countof(const str *s, const char *list)
Definition: countof.c:21
int str_catu(str *s, unsigned long in)
Definition: catuw.c:28
unsigned len
Definition: str.h:40
int str_ends(const str *a, const char *b)
Definition: end.c:23
int str_copyf(str *s, const char *format,...)
Definition: copyf.c:40
int str_cmps(const str *a, unsigned offset, const char *b)
Definition: cmp.c:34
int str_copy3s(str *s, const char *a, const char *b, const char *c)
Definition: copy3s.c:22
int str_catfv(str *s, const char *format, va_list ap)
Definition: catf.c:22
int str_cmpb(const str *a, unsigned offset, const char *b, unsigned len)
Definition: cmp.c:40
int str_case_start(const str *a, const str *b)
Definition: case_start.c:45
int str_case_match(const str *s, const str *pattern)
Definition: case_match.c:57
int str_catx(str *s, unsigned long in)
Definition: catxw.c:28
int str_matchb(const str *s, const char *pptr, unsigned plen)
Definition: str/match.c:23
void str_lcut(str *s, unsigned count)
Definition: cut.c:30
int str_end(const str *a, const str *b)
Definition: end.c:29
unsigned str_count(const str *s, char ch)
Definition: count.c:21
int str_catns(str *s, unsigned int count,...)
Definition: catns.c:23
int str_join(str *s, char sep, const str *t)
Definition: join.c:22
const char str_ucase_digits[36]
Definition: digits.c:7
int str_joins(str *s, char sep, const char *in)
Definition: join.c:28
int str_copyb(str *s, const char *in, unsigned len)
Definition: copy.c:34
int str_sort(str *s, char sep, long count, int(*fn)(const str_sortentry *a, const str_sortentry *b))
Definition: sort.c:51
unsigned size
Definition: str.h:42
void str_rstrip(str *s)
Definition: rstrip.c:22
int str_case_endb(const str *a, const char *b, unsigned len)
Definition: case_end.c:24
int str_truncate(str *s, unsigned len)
Definition: truncate.c:27
int str_case_starts(const str *a, const char *b)
Definition: case_start.c:39
int str_case_matchs(const str *s, const char *pattern)
Definition: case_match.c:63
void str_lower(str *s)
Definition: lower.c:22
void str_buildmap(int map[256], const char *list)
Definition: buildmap.c:27
int str_catullnumw(str *s, unsigned long long in, unsigned width, char pad, unsigned base, const char *digits)
Definition: catullnum.c:23
int str_copyfv(str *s, const char *format, va_list ap)
Definition: copyf.c:22
int str_findnextof(const str *s, const char *list, unsigned pos)
Definition: findnextof.c:22
int str_case_end(const str *a, const str *b)
Definition: case_end.c:45
int str_catunumw(str *s, unsigned long in, unsigned width, char pad, unsigned base, const char *digits)
Definition: catunum.c:22
void str_free(str *s)
Definition: free.c:24
int str_catill(str *s, long long in)
Definition: catiwll.c:22
int str_alloc(str *s, unsigned size, int copy)
Definition: alloc.c:32
int str_catiwll(str *s, long long in, unsigned width, char pad)
Definition: catiwll.c:29
int str_joinb(str *s, char sep, const char *in, unsigned len)
Definition: join.c:34
int str_cmp(const str *a, unsigned aoffset, const str *b, unsigned boffset)
Definition: cmp.c:28
int str_cat6s(str *s, const char *a, const char *b, const char *c, const char *d, const char *e, const char *f)
Definition: cat6s.c:22
int str_case_ends(const str *a, const char *b)
Definition: case_end.c:39
int str_startb(const str *a, const char *b, unsigned len)
Definition: start.c:35
int str_cats(str *s, const char *in)
Definition: cat.c:28
int str_catiw(str *s, long in, unsigned width, char pad)
Definition: catiw.c:28
int str_catull(str *s, unsigned long long in)
Definition: catuwll.c:22
int str_catsnumw(str *s, long in, unsigned width, char pad, unsigned base, const char *digits)
Definition: catsnum.c:22
int str_cat(str *s, const str *in)
Definition: cat.c:22
int str_copys(str *s, const char *in)
Definition: copy.c:28
int str_cat4s(str *s, const char *a, const char *b, const char *c, const char *d)
Definition: cat4s.c:22
int str_cati(str *s, long in)
Definition: catiw.c:22
unsigned long len
Definition: str.h:56
int str_findnextnot(const str *s, const char *list, unsigned pos)
Definition: findnextnot.c:22
int str_case_matchb(const str *s, const char *pptr, unsigned plen)
Definition: case_match.c:24
int str_start(const str *a, const str *b)
Definition: start.c:29
int str_starts(const str *a, const char *b)
Definition: start.c:23
int str_findnext(const str *s, char ch, unsigned pos)
Definition: findnext.c:22
int str_init(str *s)
Definition: init.c:22
int str_case_startb(const str *a, const char *b, unsigned len)
Definition: case_start.c:24
const char * str
Definition: str.h:54
int str_catxw(str *s, unsigned long in, unsigned width, char pad)
Definition: catxw.c:22
int str_catxll(str *s, unsigned long long in)
Definition: catxwll.c:22
int str_match(const str *s, const str *pattern)
Definition: str/match.c:49
long str_subst(str *s, char from, char to)
Definition: subst.c:24
int str_catuwll(str *s, unsigned long long in, unsigned width, char pad)
Definition: catuwll.c:29