1#line 2 "src/Glb/Core.h"
9#include <Wt/Json/Object.h>
10#include <Wt/WTemplate.h>
30std::vector<std::string>
split(
const std::string & value,
char delim );
33std::string &
rtrim( std::string & s,
const char* t =
trim_ws );
34std::string &
ltrim( std::string & s,
const char* t =
trim_ws );
35std::string &
trim( std::string & s,
const char* t =
trim_ws );
36std::string
toupper(
const std::string & s );
37std::string
tolower(
const std::string & s );
41std::string
hexDump(
const std::string & data,
int start = -1,
int end = -1 );
75bool fileExists(
const std::string & fileName );
91std::vector<std::string>
fileList(
const std::string & folder );
100std::vector<std::string>
findFiles(
const std::string & folder,
const std::string & match );
106int stoi(
const std::string & value );
112std::string
itos(
int value );
118double stof(
const std::string & value );
124std::string
ftos(
double value,
int decimals = 2 );
125std::string
ftos(
double value,
const std::string & suffix,
int decimals = 2 );
126std::string
ftos(
const std::string & prefix,
double value,
int decimals = 2 );
127std::string
ftom(
double value,
int decimals = 2 );
128std::string
ftom(
const std::string & prefix,
double value,
int decimals = 2 );
134bool ends_with(
const std::string & value,
const std::string & ending );
143std::string
append(
const std::string & s,
const std::string &
append,
const std::string & separator );
153std::string
prepend(
const std::string & s,
int length = 0,
char pad =
'0' );
160std::string
ucase(
const std::string & value );
167std::string
lcase(
const std::string & value );
200std::string
replace(
const std::string &
string,
const std::string & before,
const std::string & after );
202std::vector<std::string>
readCSVRow(
const std::string & row );
208bool feq(
double a,
double b,
double epsilon = 0.005f,
bool trace =
false );
struct GCW::Core::CharConv CharConv_t
int system_command(const std::string &cmd, bool show=false)
Execute a system command.
int roundUp(float value)
Round a number up.
double stof(const std::string &value)
Convert a String to Float.
std::string toupper(const std::string &s)
std::string lcase(const std::string &value)
Lower Case a string.
auto currentDateTime() -> Wt::WDateTime
Current Date/Time.
std::string ucase(const std::string &value)
Upper Case a string.
std::string tolower(const std::string &s)
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 ftom(double value, int decimals=2)
auto dateTimeDisplayString(const Wt::WDateTime &_dateTime) -> std::string
bool fileExists(const std::string &fileName)
Check if a File or Folder exists.
std::string append(const std::string &s, const std::string &append, const std::string &separator)
Append a string to string.
std::string ftos(double value, int decimals=2)
Convert a Float to String with decimal precision.
std::vector< std::string > split(const std::string &value, char delim)
bool feq(double a, double b, double epsilon=0.005f, bool trace=false)
float roundCurrency(float value)
Round a number for Currency.
std::string itos(int value)
Convert an Integer to a String.
auto dateStorageString(const Wt::WDate *_date) -> std::string
std::string & trim(std::string &s, const char *t=trim_ws)
std::string & ltrim(std::string &s, const char *t=trim_ws)
std::string replace(const std::string &string, const std::string &before, const std::string &after)
Replace a String.
std::string makeFileName(const std::string &value)
Make File Name.
std::vector< std::string > findFiles(const std::string &folder, const std::string &match)
Find File.
int stoi(const std::string &value)
Convert a String to an Integer.
auto currentDateTimeDisplayString() -> std::string
std::string prepend(const std::string &s, int length=0, char pad='0')
Prepend some number of characters in front of another string.
const CharConv_t g_iso8859Conv[256]
std::string hexDump(const std::string &data, int start=-1, int end=-1)
std::string to_string(Wt::WTemplate &templt)
std::string & rtrim(std::string &s, const char *t=trim_ws)
bool to_htmlfile(Wt::WTemplate &templt, const std::string &folderName, const std::string &fileName)
Wt::Json::Object toJson(Wt::WTreeView *_view)
std::vector< std::string > readCSVRow(const std::string &row)
auto dateTimeStorageString(const Wt::WDateTime &_dateTime) -> std::string
auto newGuid() -> std::string
Generate new GUID string value.
auto currentDateTimeStorageString() -> std::string
std::vector< std::string > fileList(const std::string &folder)
File Listing.