summaryrefslogtreecommitdiffstats
path: root/core/utils/string.hh
diff options
context:
space:
mode:
Diffstat (limited to 'core/utils/string.hh')
-rw-r--r--core/utils/string.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/utils/string.hh b/core/utils/string.hh
new file mode 100644
index 0000000..3ba56a0
--- /dev/null
+++ b/core/utils/string.hh
@@ -0,0 +1,21 @@
+#ifndef CORE_UTILS_STRING_HH
+#define CORE_UTILS_STRING_HH 1
+#pragma once
+
+namespace utils
+{
+bool is_whitespace(const std::string& string);
+} // namespace utils
+
+namespace utils
+{
+std::string join(const std::vector<std::string>& strings, const std::string& separator);
+std::vector<std::string> split(const std::string& string, const std::string& separator);
+} // namespace utils
+
+namespace utils
+{
+std::string trim_whitespace(const std::string& string);
+} // namespace utils
+
+#endif // CORE_UTILS_STRING_HH