diff options
| author | Leonetienne <leonetienne@hotmail.de> | 2022-03-14 12:17:15 +0100 |
|---|---|---|
| committer | Leonetienne <leonetienne@hotmail.de> | 2022-03-14 12:17:15 +0100 |
| commit | cca5439be1d772e67b7f5d48db572df90b02d41e (patch) | |
| tree | 8915373e547c6a952393bf35ea67602ae36eeea6 /Src/StringTools.h | |
| parent | 88f0fdc840555f00ee2cc4127e7671f309271e18 (diff) | |
Added padding functionality
Diffstat (limited to 'Src/StringTools.h')
| -rw-r--r-- | Src/StringTools.h | 6 |
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();
|
