GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
Util.h File Reference
#include <string>
#include <vector>
#include <Wt/WItemDelegate.h>
#include <Wt/WTemplate.h>
+ Include dependency graph for Util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GCW::CharConv
 

Namespaces

namespace  GCW
 

Typedefs

typedef struct GCW::CharConv GCW::CharConv_t
 

Functions

std::string GCW::makeFileName (const std::string &value)
 
bool GCW::fileExists (const std::string &fileName)
 Check if a File or Folder exists.
 
int GCW::system_command (const std::string &cmd, bool show=false)
 Execute a system command.
 
std::vector< std::string > GCW::fileList (const std::string &folder)
 File Listing.
 
std::vector< std::string > GCW::findFiles (const std::string &folder, const std::string &match)
 Find File.
 
int GCW::stoi (const std::string &value)
 Convert a String to an Integer.
 
std::string GCW::itos (int value)
 Convert an Integer to a String.
 
double GCW::stof (const std::string &value)
 Convert a String to Float.
 
std::string GCW::ftos (double value, int decimals=2)
 Convert a Float to String with decimal precision.
 
std::string GCW::ftos (double value, const std::string &suffix, int decimals=2)
 
std::string GCW::ftos (const std::string &prefix, double value, int decimals=2)
 
std::string GCW::ftom (double value, int decimals=2)
 
std::string GCW::ftom (const std::string &prefix, double value, int decimals=2)
 
bool GCW::ends_with (const std::string &value, const std::string &ending)
 Check if a string ends with another string.
 
std::string GCW::append (const std::string &s, const std::string &append, const std::string &separator)
 Append a string to string.
 
std::string GCW::prepend (const std::string &s, int length=0, char pad='0')
 Prepend some number of characters in front of another string.
 
std::string GCW::ucase (const std::string &value)
 Upper Case a string.
 
std::string GCW::lcase (const std::string &value)
 Lower Case a string.
 
int GCW::roundUp (float value)
 Round a number up.
 
int GCW::roundDown (float value)
 Round a number down.
 
float GCW::roundCurrency (float value)
 Round a number for Currency.
 
std::string GCW::replace (const std::string &string, const std::string &before, const std::string &after)
 Replace a String.
 
void GCW::ltrim (std::string &s)
 
void GCW::rtrim (std::string &s)
 
void GCW::trim (std::string &s)
 
std::string GCW::ltrim_copy (std::string s)
 
std::string GCW::rtrim_copy (std::string s)
 
std::string GCW::trim_copy (std::string s)
 
std::vector< std::string > GCW::readCSVRow (const std::string &row)
 
bool GCW::feq (double a, double b, double epsilon=0.005f, bool trace=false)
 
std::string GCW::to_string (Wt::WTemplate &templt)
 
std::string GCW::to_string (Wt::WTemplate *templt)
 
bool GCW::to_htmlfile (Wt::WTemplate &templt, const std::string &folderName, const std::string &fileName)
 
bool GCW::to_htmlfile (Wt::WTemplate *templt, const std::string &folderName, const std::string &fileName)
 
std::string GCW::hexDump (const std::string &data, int start=-1, int end=-1)
 

Variables

const CharConv_t GCW::g_iso8859Conv [256]