-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
#pragma once | ||
|
||
#include <regex> | ||
#include <vector> | ||
|
||
using namespace std; | ||
|
||
namespace obf { | ||
void stripSpecialChars(std::string&); | ||
inline regex int_regex = regex("[0-9]*"), | ||
double_regex = regex("[0-9]*(\\.[0-9]*)?"), | ||
boolt_regex = regex("([tT][rR][uU][eE])|1"), boolf_regex = regex("([fF][aA][lL][sS][eE])|0"); | ||
|
||
void splitString(const string&, vector<string>&, char); | ||
void stripSpecialChars(string&); | ||
|
||
int parseToml(const std::string&); | ||
int parseTomlFile(const std::string&); | ||
int parseToml(const string&); | ||
int parseTomlFile(const string&); | ||
|
||
void parseCommand(const std::string_view&); | ||
void parseCommand(const string&); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters