Changed brace-style

This commit is contained in:
Leonetienne
2022-02-12 18:19:17 +01:00
parent 91d7f8da33
commit cf397f3af8
2 changed files with 13 additions and 15 deletions

View File

@@ -1,4 +1,6 @@
#pragma once
#ifndef STRINGTOOLS_STRINGTOOLS_H
#define STRINGTOOLS_STRINGTOOLS_H
#include <string>
/* Handy utensils to manipulate strings */
@@ -17,13 +19,15 @@ public:
//! Will replace every occurence of `find` in `str` by `subst`.
static std::string Replace(const std::string& str, const std::string& find, const char subst);
//! Will make a string all-lowercase. Only works with latin and german umlautes, plus some extras.
//! Will make a string all-lowercase.
static std::string Lower(const std::string& str);
//! Will make a string all-uppercase. Only works with latin and german umlautes, plus some extras.
//! Will make a string all-uppercase.
static std::string Upper(const std::string& str);
private:
// No instanciation! >:(
StringTools();
};
#endif //STRINGTOOLS_STRINGTOOLS_H