summaryrefslogtreecommitdiff
path: root/tools/utils.h
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-08-01 00:47:39 (GMT)
committerJohn Denker <jsd@av8n.com>2012-08-01 00:47:39 (GMT)
commitefb6301f794cc272173fa09ad83293ad3aa79ad4 (patch)
tree54ef2f8c20d913877b8f33fb21b850ebec441b8a /tools/utils.h
parentc9652f33e6a4c1769cb9c54a54f2a6bd78e5f434 (diff)
smarter utils
Diffstat (limited to 'tools/utils.h')
-rw-r--r--tools/utils.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/utils.h b/tools/utils.h
index cbcb795..2c531b8 100644
--- a/tools/utils.h
+++ b/tools/utils.h
@@ -3,5 +3,12 @@ int prefix(const std::string shorter, const std::string longer);
std::string time_out(const int _ttt);
std::string toLower(const std::string a);
-std::string ltrim(const std::string a);
std::string purify(const std::string arg);
+std::string ltrim(const std::string foo,
+ const std::string strip = " \t\r\n");
+
+std::string rtrim(const std::string foo,
+ const std::string strip = " \t\r\n");
+
+std::string trim(const std::string foo,
+ const std::string strip = " \t\r\n");