WIP: Script-Creator!

This commit is contained in:
StackZ
2020-06-21 16:41:48 +02:00
parent 984d363533
commit 91615d7891
8 changed files with 131 additions and 155 deletions
+2 -4
View File
@@ -1,13 +1,11 @@
#include "stringutils.hpp"
bool matchPattern(std::string pattern, std::string tested)
{
bool matchPattern(std::string pattern, std::string tested) {
std::regex patternRegex(pattern);
return regex_match(tested, patternRegex);
}
std::string StringUtils::format(const std::string& fmt_str, ...)
{
std::string StringUtils::format(const std::string& fmt_str, ...) {
va_list ap;
char* fp = NULL;
va_start(ap, fmt_str);