summaryrefslogtreecommitdiffstats
path: root/Src/StringTools.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/StringTools.h')
-rw-r--r--Src/StringTools.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/StringTools.h b/Src/StringTools.h
index d65772a..e8de59d 100644
--- a/Src/StringTools.h
+++ b/Src/StringTools.h
@@ -29,6 +29,12 @@ public:
//! Will split a string by a string seperator
static std::vector<std::string> Split(const std::string& str, const std::string& seperator);
+ //! Will pad a string to the left to length l
+ static std::string PadLeft(const std::string& str, const char pad, const std::size_t len);
+
+ //! Will pad a string to the right to length l
+ static std::string PadRight(const std::string& str, const char pad, const std::size_t len);
+
private:
// No instanciation! >:(
StringTools();