summaryrefslogtreecommitdiff
path: root/src/strings.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-02-28 21:50:44 +0100
committerJoel Klinghed <the_jk@yahoo.com>2017-02-28 21:50:44 +0100
commitc029d90d1975e124d237605f1edb2be16bd05b5d (patch)
tree9df87ffb365354bdb74a969440b32c8304bdbcb7 /src/strings.hh
Initial commit
Diffstat (limited to 'src/strings.hh')
-rw-r--r--src/strings.hh24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/strings.hh b/src/strings.hh
new file mode 100644
index 0000000..10e3edf
--- /dev/null
+++ b/src/strings.hh
@@ -0,0 +1,24 @@
+// -*- mode: c++; c-basic-offset: 2; -*-
+
+#ifndef STRINGS_HH
+#define STRINGS_HH
+
+#include <string>
+
+class Strings {
+public:
+ static void trim(std::string const& str, size_t* start, size_t* end);
+ static std::string trim(std::string const& str);
+ static std::string trim(std::string const& str, size_t start, size_t end);
+
+ static std::string quote(std::string const& str);
+ static std::string quote(std::string const& str, size_t start, size_t end);
+ static std::string unquote(std::string const& str);
+ static std::string unquote(std::string const& str, size_t start, size_t end);
+
+private:
+ ~Strings() {}
+ Strings() {}
+};
+
+#endif // STRINGS_HH