23 #include <tjutils/tjutils.h>
25 #include <tjutils/tjtools.h>
32 #define _DEFAULT_DIGITS_ 5
33 #define _DEFAULT_LINEWIDTH_ 74
36 #define SEPARATOR_STR "\\"
37 #define SEPARATOR_CHAR '\\'
39 #define SEPARATOR_STR "/"
40 #define SEPARATOR_CHAR '/'
49 static const char* get_compName();
72 STD_string
replaceStr(
const STD_string& s,
const STD_string& searchstring,
const STD_string& replacement,
whichOccurences mode=allOccurences);
84 STD_string
extract(
const STD_string& s,
const STD_string& blockbegin,
const STD_string& blockend,
bool hierachical=
false,
int beginpos=0);
96 STD_string
rmblock(
const STD_string& s,
const STD_string& blockbegin,
const STD_string& blockend,
97 bool rmbegin=
true,
bool rmend=
true,
bool rmall=
true,
bool hierachical=
false);
126 STD_string
ftos (
double f,
unsigned int digits=_DEFAULT_DIGITS_,
expFormat eformat=autoExp);
135 STD_string
itos (
int i,
unsigned int maxabs=0);
141 STD_string
ptos (
const void* p);
147 STD_string
n_times(
const STD_string& s,
unsigned int n);
153 STD_string
justificate(
const STD_string& s,
unsigned int indention=0,
bool ignore_firstline=
false,
unsigned int linewidth=_DEFAULT_LINEWIDTH_);
162 int textbegin(
const STD_string& s,
int startpos=0,
const char custom_separator=0);
170 int sepbegin(
const STD_string& s,
int startpos=0,
const char custom_separator=0);
183 int noccur(
const STD_string& s,
const STD_string& searchstring);
196 int load(STD_string& str,
const STD_string& filename);
204 int write(
const STD_string& str,
const STD_string& filename,
fopenMode mode=overwriteMode);
STD_string n_times(const STD_string &s, unsigned int n)
int load(STD_string &str, const STD_string &filename)
int textbegin(const STD_string &s, int startpos=0, const char custom_separator=0)
STD_string extract(const STD_string &s, const STD_string &blockbegin, const STD_string &blockend, bool hierachical=false, int beginpos=0)
STD_string ptos(const void *p)
STD_string tolowerstr(const STD_string &s)
int write(const STD_string &str, const STD_string &filename, fopenMode mode=overwriteMode)
int sepbegin(const STD_string &s, int startpos=0, const char custom_separator=0)
STD_string replaceStr(const STD_string &s, const STD_string &searchstring, const STD_string &replacement, whichOccurences mode=allOccurences)
STD_string justificate(const STD_string &s, unsigned int indention=0, bool ignore_firstline=false, unsigned int linewidth=_DEFAULT_LINEWIDTH_)
STD_string rmblock(const STD_string &s, const STD_string &blockbegin, const STD_string &blockend, bool rmbegin=true, bool rmend=true, bool rmall=true, bool hierachical=false)
int noccur(const STD_string &s, const STD_string &searchstring)
STD_string toupperstr(const STD_string &s)
STD_string shrink(const STD_string &s)
STD_string ftos(double f, unsigned int digits=_DEFAULT_DIGITS_, expFormat eformat=autoExp)
STD_string dos2unix(const STD_string &s)
STD_string itos(int i, unsigned int maxabs=0)