Major string_view refactor. Added namespace sv
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
|
||||
#include "wrap-string.hpp"
|
||||
#include "wrap-vector.hpp"
|
||||
#include "util.hpp"
|
||||
#include "spookyv2.hpp"
|
||||
#include "driver-util.hpp"
|
||||
#include "luastack.hpp"
|
||||
|
||||
#include <string_view>
|
||||
#include <fstream>
|
||||
#include <ios>
|
||||
#include <iostream>
|
||||
|
||||
#include "spookyv2.hpp"
|
||||
#include "driver-util.hpp"
|
||||
#include "luastack.hpp"
|
||||
#include "util.hpp"
|
||||
|
||||
#define RLOG_BUFSIZE (1024 * 1024)
|
||||
#define MAX_ARGC 1024
|
||||
|
||||
@@ -47,8 +46,8 @@ void split_target(std::string_view target, std::string &cert, std::string &host,
|
||||
std::vector<std::string> parse_control_lst(std::string_view ctrl) {
|
||||
std::vector<std::string> result;
|
||||
while (!ctrl.empty()) {
|
||||
std::string_view line = util::sv_read_line(ctrl);
|
||||
std::string_view trimmed = util::sv_trim(line);
|
||||
std::string_view line = sv::read_to_line(ctrl);
|
||||
std::string_view trimmed = sv::trim(line);
|
||||
if ((trimmed.size() > 0) && (trimmed[0] != '#')) {
|
||||
result.emplace_back(trimmed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user