mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Refactorized multiple prototypes
This commit is contained in:
parent
d63d8849a8
commit
6dd00be229
@ -135,10 +135,6 @@ std::string string_to_hex(const std::string& input) {
|
||||
return output;
|
||||
}
|
||||
|
||||
std::string toHexIfNeeded(const std::string &str) {
|
||||
return toHexIfNeeded(str, false);
|
||||
}
|
||||
|
||||
std::string toHexIfNeeded(const std::string &str, bool escape_spec) {
|
||||
// escape_spec: escape special chars or not
|
||||
// spec chars: '"' (quotation mark, ascii 34), '\' (backslash, ascii 92)
|
||||
|
@ -61,8 +61,7 @@ std::string dash_if_empty(const std::string *str);
|
||||
std::string limitTo(int amount, const std::string &str);
|
||||
std::string removeBracketsIfNeeded(std::string a);
|
||||
std::string string_to_hex(const std::string& input);
|
||||
std::string toHexIfNeeded(const std::string &str);
|
||||
std::string toHexIfNeeded(const std::string &str, bool escape_spec);
|
||||
std::string toHexIfNeeded(const std::string &str, bool escape_spec = false);
|
||||
std::string tolower(std::string str);
|
||||
std::string toupper(std::string str);
|
||||
std::vector<std::string> ssplit(std::string str, char delimiter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user