|
std::string | teditor::format (const char *fmt,...) |
|
std::string | teditor::format (const char *fmt, va_list &vl) |
|
bool | teditor::allStringsEmpty (const Strings &strs) |
|
template<typename T > |
bool | teditor::same (const std::vector< T > &s1, const std::vector< T > &s2) |
|
std::string | teditor::env (const std::string &s) |
|
std::string | teditor::expandEnvVars (const std::string &str) |
|
bool | teditor::startsWith (const char *s1, int len1, const char *s2) |
|
Strings | teditor::split (const std::string &str, char delim) |
|
std::string | teditor::join (const Strings &s, char delim, int start, int end) |
|
std::string | teditor::num2str (int num) |
|
int | teditor::str2num (const std::string &str) |
|
float | teditor::str2real (const std::string &str) |
|
double | teditor::str2double (const std::string &str) |
|
bool | teditor::isUnderGit (const std::string &dir) |
|
std::string | teditor::gitBranchName (const std::string &dir) |
|
CmdStatus | teditor::check_output (const std::string &cmd) |
|
CmdStatus | teditor::check_output (const std::string &cmd, const std::string &host) |
|
std::string | teditor::urlHexify (const std::string &url) |
| Hexify the input url. More...
|
|
void | teditor::downloadUrl (const std::string &url, const std::string &file, const std::string &dnldProg="curl", const std::string &dnldProgOpts="-s") |
| Download the content of input url into the given file. More...
|
|
std::string | teditor::downloadUrlToString (const std::string &url, const std::string &dnldProg="curl", const std::string &dnldProgOpts="-s") |
| Download the content of input url into a string. More...
|
|
bool | teditor::isOpenParen (char c) |
|
bool | teditor::isCloseParen (char c) |
|
bool | teditor::isParen (char c) |
|
char | teditor::getMatchingParen (char c) |
|
bool | teditor::strFind (const std::string &line, const std::string &str) |
|
bool | teditor::iStrFind (const std::string &line, const std::string &str) |
|
void | teditor::dos2unix (std::string &in) |
|
std::string | teditor::dos2unix (const std::string &in) |
|
unsigned | teditor::numThreads () |
|
template<typename K , typename V > |
std::vector< K > | teditor::sortedKeys (const std::unordered_map< K, V > &map) |
|