WIP: Script-Creator!

This commit is contained in:
StackZ committed 2020-06-21 16:41:48 +02:00
1 parent 984d363533
commit 91615d7891
8 files changed
+131 -155

No files matched your search

+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);