bwstring
struct bwstring *
ignore_case(struct bwstring *str)
bws_disorder_warnx(struct bwstring *s, const char *fn, size_t pos)
bwsprintf(FILE *f, struct bwstring *bws, const char *prefix, const char *suffix)
const void* bwsrawdata(const struct bwstring *bws)
size_t bwsrawlen(const struct bwstring *bws)
bws_memsize(const struct bwstring *bws)
(bws->cdata.len + 2 + sizeof(struct bwstring)) :
(SIZEOF_WCHAR_STRING(bws->wdata.len + 1) + sizeof(struct bwstring)));
bws_setlen(struct bwstring *bws, size_t newlen)
struct bwstring *
struct bwstring *ret;
ret = sort_malloc(sizeof(struct bwstring) + 1 + sz);
sizeof(struct bwstring) + SIZEOF_WCHAR_STRING(sz + 1));
struct bwstring *
bwsdup(const struct bwstring *s)
struct bwstring *ret = bwsalloc(BWSLEN(s));
struct bwstring *
struct bwstring *ret;
struct bwstring *
struct bwstring *ret;
bwsfree(const struct bwstring *s)
struct bwstring *
bwsnocpy(struct bwstring *dst, const struct bwstring *src, size_t offset,
bwsfwrite(struct bwstring *bws, FILE *f, bool zero_ended)
bwsncmp(const struct bwstring *bws1, const struct bwstring *bws2,
bwscmp(const struct bwstring *bws1, const struct bwstring *bws2, size_t offset)
bwscoll(const struct bwstring *bws1, const struct bwstring *bws2, size_t offset)
bwstod(struct bwstring *s0, bool *empty)
bws_month_score(const struct bwstring *s0)
struct bwstring *
ignore_leading_blanks(struct bwstring *str)
struct bwstring *
ignore_nonprinting(struct bwstring *str)
struct bwstring *
dictionary_order(struct bwstring *str)
bws_begin(struct bwstring *bws)
bws_end(struct bwstring *bws)
struct bwstring *bwsalloc(size_t sz);
size_t bwsrawlen(const struct bwstring *bws);
const void* bwsrawdata(const struct bwstring *bws);
void bws_setlen(struct bwstring *bws, size_t newlen);
size_t bws_memsize(const struct bwstring *bws);
double bwstod(struct bwstring *s0, bool *empty);
int bws_month_score(const struct bwstring *s0);
struct bwstring *ignore_leading_blanks(struct bwstring *str);
struct bwstring *ignore_nonprinting(struct bwstring *str);
struct bwstring *dictionary_order(struct bwstring *str);
struct bwstring *ignore_case(struct bwstring *str);
void bwsprintf(FILE*, struct bwstring*, const char *prefix, const char *suffix);
void bws_disorder_warnx(struct bwstring *s, const char *fn, size_t pos);
struct bwstring *bwsdup(const struct bwstring *s);
struct bwstring *bwssbdup(const wchar_t *str, size_t size);
struct bwstring *bwscsbdup(const unsigned char *str, size_t size);
void bwsfree(const struct bwstring *s);
struct bwstring *bwsnocpy(struct bwstring *dst, const struct bwstring *src, size_t offset, size_t size);
int bwscmp(const struct bwstring *bws1, const struct bwstring *bws2, size_t offset);
int bwsncmp(const struct bwstring *bws1, const struct bwstring *bws2, size_t offset, size_t len);
int bwscoll(const struct bwstring *bws1, const struct bwstring *bws2, size_t offset);
size_t bwsfwrite(struct bwstring *bws, FILE *f, bool zero_ended);
clean_keys_array(const struct bwstring *s, struct keys_array *ka)
struct bwstring *s1, *s2;
set_key_on_keys_array(struct keys_array *ka, struct bwstring *s, size_t ind)
sort_list_item_set(struct sort_list_item *si, struct bwstring *str)
skip_cols_to_start(const struct bwstring *s, size_t cols, size_t start,
skip_fields_to_start(const struct bwstring *s, size_t fields, bool *empty_field)
find_field_start(const struct bwstring *s, struct key_specs *ks,
find_field_end(const struct bwstring *s, struct key_specs *ks)
static struct bwstring *
cut_field(const struct bwstring *s, struct key_specs *ks)
struct bwstring *ret = NULL;
preproc(struct bwstring *s, struct keys_array *ka)
struct bwstring *key;
struct bwstring *ret = NULL;
top_level_str_coll(const struct bwstring *s1, const struct bwstring *s2)
const struct bwstring *tmp;
str_list_coll(struct bwstring *str1, struct sort_list_item **ss2)
read_number(struct bwstring *s0, int *sign, wchar_t *smain, size_t *main_len, wchar_t *sfrac, size_t *frac_len, unsigned char *si)
struct bwstring *s1, *s2;
struct bwstring *s1, *s2;
struct bwstring *k; /* key string */
struct bwstring *str;
void set_key_on_keys_array(struct keys_array *ka, struct bwstring *s, size_t ind);
void clean_keys_array(const struct bwstring *s, struct keys_array *ka);
void sort_list_item_set(struct sort_list_item *si, struct bwstring *str);
int preproc(struct bwstring *s, struct keys_array *ka);
int top_level_str_coll(const struct bwstring *, const struct bwstring *);
int str_list_coll(struct bwstring *str1, struct sort_list_item **ss2);
sort_list_add(struct sort_list *l, struct bwstring *str)
struct bwstring *s1, *s2, *s1disorder, *s2disorder;
struct bwstring *
struct bwstring *ret = NULL;
struct bwstring *bws;
struct bwstring *line;
struct bwstring *str;
struct bwstring *tmp;
struct bwstring *file_reader_readline(struct file_reader *fr);
void sort_list_add(struct sort_list *l, struct bwstring *str);
const struct bwstring *bws;
vcmp(struct bwstring *s1, struct bwstring *s2)
int vcmp(struct bwstring *s1, struct bwstring *s2);