Get rid of wrap-string-view
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#define UTIL_HPP
|
||||
|
||||
#include "wrap-string.hpp"
|
||||
#include "wrap-string-view.hpp"
|
||||
#include "wrap-set.hpp"
|
||||
#include "wrap-map.hpp"
|
||||
#include "wrap-algorithm.hpp"
|
||||
@@ -11,6 +10,8 @@
|
||||
#include "wrap-memory.hpp"
|
||||
#include "wrap-utility.hpp"
|
||||
|
||||
#include <string_view>
|
||||
|
||||
#include "luastack.hpp"
|
||||
#include "spookyv2.hpp"
|
||||
|
||||
@@ -101,17 +102,17 @@ int64_t strtoint(const eng::string &value, int64_t errval);
|
||||
double strtodouble(const eng::string &value);
|
||||
|
||||
// Trim a string_view
|
||||
eng::string_view sv_ltrim(eng::string_view v);
|
||||
eng::string_view sv_rtrim(eng::string_view v);
|
||||
eng::string_view sv_trim(eng::string_view v);
|
||||
std::string_view sv_ltrim(std::string_view v);
|
||||
std::string_view sv_rtrim(std::string_view v);
|
||||
std::string_view sv_trim(std::string_view v);
|
||||
|
||||
// Trim strings: left end, right end, both ends.
|
||||
eng::string ltrim(eng::string_view s);
|
||||
eng::string rtrim(eng::string_view s);
|
||||
eng::string trim(eng::string_view s);
|
||||
eng::string ltrim(std::string_view s);
|
||||
eng::string rtrim(std::string_view s);
|
||||
eng::string trim(std::string_view s);
|
||||
|
||||
// Read a line from a string_view
|
||||
eng::string_view sv_read_line(eng::string_view &source);
|
||||
std::string_view sv_read_line(std::string_view &source);
|
||||
|
||||
// Calculate distance between two points
|
||||
double distance_squared(double x1, double y1, double x2, double y2);
|
||||
|
||||
Reference in New Issue
Block a user