#include <stdlib.h>#include <time.h>#include "Util.h"Go to the source code of this file.
Namespaces | |
| namespace | Util |
Functions | |
| string | Util::StringF (const char *const format,...) |
| void | Util::removeEmptyStrings (vector< string > &s) |
| string | Util::Clean (string s) |
| void | Util::clean (string &s) |
| void | Util::clean (vector< string > &sa) |
| string | Util::chomp (const string &s) |
| string | Util::squeeze (const string &s, char tosearch) |
| string | Util::replace (const string &s, char tosearch, char toreplace) |
| string | Util::uppercase (const string &s) |
| string | Util::toupper (const string &s) |
| string | Util::lowercase (const string &s) |
| string | Util::tolower (const string &s) |
| vector< string > | Util::tokenize (const string &s, const string &delim, bool squeeze_delim) |
| string | Util::trim (string in) |
| string | Util::Trim (string in) |
| bool | Util::readPipe (vector< string > &dest, string command) |
| string | Util::runCommand (string command) |
| string | Util::CheckDir (const string &folder) |
| const char * | Util::basename (const char *filename) |
| void | Util::outProgress (int progress, int period, ostream &out) |
| void | Util::OutProgress (int progress, int period, ostream &out) |
| void | Util::endProgress (int end, ostream &out) |
| void | Util::EndProgress (int end, ostream &out) |
| void | Util::outProgressPercentage (int progress, int end, ostream &out) |
| void | Util::endProgressPercentage (ostream &out) |
| istream & | Util::readTag (istream &is, const char *tag) |
| ostream & | Util::writeTag (ostream &os, const char *tag) |
| void | Util::initrand () |
| int | Util::irand (int min, int max) |
| double | Util::urand (double min, double max) |
| double | Util::grand (double mean, double std) |
| double | Util::square (double v) |
| short | Util::tofixed (float v) |
| float | Util::tofloat (short v) |
| bool | Util::firstCombination (vector< uint > &counters, uint n, uint k) |
| bool | Util::nextCombination (vector< uint > &counters, uint n, uint k) |
| void | Util::printCombination (vector< uint > &counters, uint n, uint k) |
1.5.1