8#include <Wt/WItemDelegate.h>
9#include <Wt/WTemplate.h>
36std::vector<std::string>
fileList(
const std::string & folder );
45std::vector<std::string>
findFiles(
const std::string & folder,
const std::string & match );
51int stoi(
const std::string & value );
57std::string
itos(
int value );
63double stof(
const std::string & value );
69std::string
ftos(
double value,
int decimals = 2 );
70std::string
ftos(
double value,
const std::string & suffix,
int decimals = 2 );
71std::string
ftos(
const std::string & prefix,
double value,
int decimals = 2 );
72std::string
ftom(
double value,
int decimals = 2 );
73std::string
ftom(
const std::string & prefix,
double value,
int decimals = 2 );
79bool ends_with(
const std::string & value,
const std::string & ending );
88std::string
append(
const std::string & s,
const std::string &
append,
const std::string & separator );
98std::string
prepend(
const std::string & s,
int length = 0,
char pad =
'0' );
105std::string
ucase(
const std::string & value );
112std::string
lcase(
const std::string & value );
145std::string
replace(
const std::string &
string,
const std::string & before,
const std::string & after );
154std::vector<std::string>
readCSVRow(
const std::string & row );
160bool feq(
double a,
double b,
double epsilon = 0.005f,
bool trace =
false );
168std::string
hexDump(
const std::string & data,
int start = -1,
int end = -1 );
std::string lcase(const std::string &value)
Lower Case a string.
bool to_htmlfile(Wt::WTemplate &templt, const std::string &folderName, const std::string &fileName)
bool ends_with(const std::string &value, const std::string &ending)
Check if a string ends with another string.
int roundDown(float value)
Round a number down.
std::string hexDump(const std::string &data, int start=-1, int end=-1)
const CharConv_t g_iso8859Conv[256]
bool fileExists(const std::string &fileName)
Check if a File or Folder exists.
bool feq(double a, double b, double epsilon=0.005f, bool trace=false)
std::string trim_copy(std::string s)
std::string to_string(Wt::WTemplate &templt)
void rtrim(std::string &s)
int stoi(const std::string &value)
Convert a String to an Integer.
std::string ltrim_copy(std::string s)
struct GCW::CharConv CharConv_t
double stof(const std::string &value)
Convert a String to Float.
std::string ftom(double value, int decimals=2)
int system_command(const std::string &cmd, bool show=false)
Execute a system command.
std::string append(const std::string &s, const std::string &append, const std::string &separator)
Append a string to string.
float roundCurrency(float value)
Round a number for Currency.
std::vector< std::string > fileList(const std::string &folder)
File Listing.
std::string makeFileName(const std::string &value)
std::string replace(const std::string &string, const std::string &before, const std::string &after)
Replace a String.
std::string prepend(const std::string &s, int length=0, char pad='0')
Prepend some number of characters in front of another string.
std::vector< std::string > findFiles(const std::string &folder, const std::string &match)
Find File.
std::string rtrim_copy(std::string s)
void ltrim(std::string &s)
int roundUp(float value)
Round a number up.
std::vector< std::string > readCSVRow(const std::string &row)
std::string ftos(double value, int decimals=2)
Convert a Float to String with decimal precision.
std::string itos(int value)
Convert an Integer to a String.
void trim(std::string &s)
std::string ucase(const std::string &value)
Upper Case a string.