|
GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
|
helper functions and features More...
Functions | |
| std::vector< std::string > | split (const std::string &value, char delim) |
| std::string & | rtrim (std::string &s, const char *t=trim_ws) |
| std::string & | ltrim (std::string &s, const char *t=trim_ws) |
| std::string & | trim (std::string &s, const char *t=trim_ws) |
| std::string | toupper (const std::string &s) |
| std::string | tolower (const std::string &s) |
| Wt::Json::Object | toJson (Wt::WTreeView *_view) |
| std::string | hexDump (const std::string &data, int start=-1, int end=-1) |
| auto | newGuid () -> std::string |
| Generate new GUID string value. | |
| auto | currentDateTime () -> Wt::WDateTime |
| Current Date/Time. | |
| auto | currentDateTimeStorageString () -> std::string |
| auto | currentDateTimeDisplayString () -> std::string |
Variables | |
| const char * | trim_ws = " \t\n\r\f\v" |
helper functions and features
| auto GCW::Core::currentDateTime | ( | ) | -> Wt::WDateTime |
Current Date/Time.
This will return the current date/time suitable for back-end storage
Definition at line 259 of file Core.cpp.
References Wt::WDateTime::currentDateTime().
Referenced by currentDateTimeDisplayString(), and currentDateTimeStorageString().
| auto GCW::Core::currentDateTimeDisplayString | ( | ) | -> std::string |
Definition at line 286 of file Core.cpp.
References currentDateTime(), and GCW_DATE_FORMAT_DISPLAY.
Referenced by GCW::Gui::BillPay::PaymentWidget::loadData().
| auto GCW::Core::currentDateTimeStorageString | ( | ) | -> std::string |
Definition at line 273 of file Core.cpp.
References currentDateTime(), and GCW_DATETIME_FORMAT_STORAGE.
| auto GCW::Core::hexDump | ( | const std::string & | data, |
| int | start = -1, |
||
| int | end = -1 |
||
| ) |
| std::string & GCW::Core::ltrim | ( | std::string & | s, |
| const char * | t = trim_ws |
||
| ) |
| auto GCW::Core::newGuid | ( | ) | -> std::string |
Generate new GUID string value.
This GUID is suitable for use as the primary-guid-key value for the data tables.
Definition at line 234 of file Core.cpp.
Referenced by GCW::Eng::Transaction::Manager::newTransaction(), and GCW::Gui::BillPay::EditWidget::saveData().
| std::string & GCW::Core::rtrim | ( | std::string & | s, |
| const char * | t = trim_ws |
||
| ) |
| std::vector< std::string > GCW::Core::split | ( | const std::string & | value, |
| char | delim | ||
| ) |
Definition at line 29 of file Core.cpp.
References split().
Referenced by GCW::Dbo::Accounts::byFullName().
| Wt::Json::Object GCW::Core::toJson | ( | Wt::WTreeView * | _view | ) |
Definition at line 147 of file Core.cpp.
References Wt::WString::arg(), iterate(), and Wt::WString::toUTF8().
| std::string & GCW::Core::trim | ( | std::string & | s, |
| const char * | t = trim_ws |
||
| ) |