Moves string related functions from utils' to utils/string'

This commit is contained in:
Felipe Zimmerle
2016-11-01 14:59:06 -03:00
parent 9733cacd4d
commit 73c4d69174
25 changed files with 403 additions and 236 deletions

View File

@@ -18,14 +18,17 @@
#include <string>
#include "src/utils.h"
#include "utils/msc_string.h"
using modsecurity::utils::String;
namespace modsecurity {
bool RulesExceptions::load(const std::string &a, std::string *error) {
std::vector<std::string> toRemove = modsecurity::split(a, ' ');
std::vector<std::string> toRemove = String::split(a, ' ');
for (std::string &a : toRemove) {
std::string b = removeBracketsIfNeeded(a);
std::string b = String::removeBracketsIfNeeded(a);
size_t dash = b.find('-');
if (dash != std::string::npos) {