Added padding functionality

This commit is contained in:
Leonetienne
2022-03-14 12:17:15 +01:00
parent 88f0fdc840
commit cca5439be1
7 changed files with 117 additions and 1 deletions

View File

@@ -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();