22 #include <mix/Types.h>
23 #include <mix/PortableDirs.h>
24 #include <mix/char2ops.h>
39 char* ltoa (
char* s,
long n);
53 char* lltoa (
char* s,
long long n);
60 void* mem_copy (
void* dst,
const void* src,
size_t sz);
68 Logic isspacechar (
char c);
82 char* strmalloc (
int n);
93 char* stralloc (
const char* s);
100 void strfree (
char* s);
116 STRLIST strlistalloc (
int n);
123 STRLIST strlistdup (STRLIST slist,
int n);
130 void strlistfree (STRLIST slist,
int n);
137 char* strlistgetitem (STRLIST slist,
int i);
144 void strlistputitem (STRLIST slist,
int i,
const char* s);
156 char* strword (
char* str);
162 char* strstripspaces (
char* s);
169 const char* strlword (
const char* s);
176 int strrcmp (
const char* s1,
const char* s2);
187 int strrmatch (
const char* s1,
const char* s2);
194 Logic stronlyspaces (
const char* s);
202 Logic strcaseeq (
const char* s1,
const char* s2);
210 char* strreplacebadch (
char* s,
char c);
217 char* strtoupper (
char* s);
223 char* strtolower (
char* s);
230 char* strnsepcpy (
char* dst,
const char* src,
size_t n,
char sep);
233 #define CHCL_EOS (1<<0)
234 #define CHCL_EOL (1<<1)
235 #define CHCL_SPACE (1<<2)
236 #define CHCL_PUNCT (1<<3)
237 #define CHCL_ALPHA (1<<4)
238 #define CHCL_DIGIT (1<<5)
244 char* chcl_skip (const char* s, int char_classes);
250 int chcl_class (
const char* s);
256 double Round (
double x);
269 unsigned long stop_timer ();
275 void sleep_awhile (
unsigned long usec);
293 typedef void (*QsExchangeProc)(
void* base,
unsigned i1,
unsigned i2);
295 typedef Compar (*QsCompareProc)(
void* base,
unsigned i1,
unsigned i2);
298 void QuickSort (
void *base,
unsigned num,
299 QsExchangeProc pExchangeProc,
300 QsCompareProc pCompareProc);
304 void qs_strlist_exchange (
void* base,
unsigned i1,
unsigned i2);
307 Compar qs_strlist_compare (
void* base,
unsigned i1,
unsigned i2);
316 int FracDigits (
double h1,
double h2);
327 int parse_int_list (
const char* s,
int** list);
334 char* produce_int_list (
int n,
int* list);
373 int* parse_options (
const char* buf,
OptionBase* base);
379 int* add_options (
const char* buf,
OptionBase* base);
383 const char* name,
const char* value);
388 char* serialize_options (
const OptionBase* base,
389 const char* start_line,
const char* end_line);
400 const char* startname);
410 Logic parse_ini_section (
const char* buf,
char** word1,
char** word2);
450 Logic isNaNQ (
float num);
453 Logic isInf (
float num);
456 Logic isNaNQorInf (
float num);
471 void vminmax (
const float a[],
int n,
float mm[2]);
char * value
Definition: misc.h:359
int key
Definition: misc.h:425
int items_num
Definition: misc.h:365
char * label
Definition: misc.h:426
char * name
Definition: misc.h:358
OptionItem * items
Definition: misc.h:366