23 #ifndef _LAX_STRMANIP_H
24 #define _LAX_STRMANIP_H
29 char *
itoa(
int a,
char *dest,
int base=10);
31 char *
numtostr(
double num,
int par=0);
32 char *
numtostr(
char *dest,
int buflen,
double num,
int par=0);
33 char *
newstr(
const char *str);
34 char *
newnstr(
const char *str,
int n);
35 char *
makestr(
char *&dest,
const char *src);
36 char *
makenstr(
char *&dest,
const char *src,
unsigned int n);
37 char *
insertstr(
char *&dest,
const char *data,
int atpos);
38 char *
prependnstr(
char *&dest,
const char *src,
int n);
40 char *
appendnstr(
char *&dest,
const char *src,
int n);
41 char *
appendstr(
char *&dest,
const char *src);
45 char *
extendstr(
char *&dest,
int &curmax,
int n);
46 char *
stripws(
char *dest,
char where=3);
47 int squish(
char *exprs,
int p1,
int p2);
50 char *
replace(
char *&dest,
const char *data,
int s,
int e,
int *newe);
52 char *
replaceall(
const char *dest,
const char *old,
const char *newn,
int s=0,
int e=-1);
53 char *
replaceallname(
const char *dest,
const char *old,
const char *newn);
56 char **
splitspace(
const char *stro,
int *n_ret);
58 char **
split(
const char *str,
char delim,
int *n_ret);
59 char **
spliton(
char *str,
char delim,
int *n_ret);
63 char *
lax_dirname(
const char *path,
char appendslash);
Mon Feb 17 2014 11:52:57, Laxkit