lots of work on determinism in the linux driver.
This commit is contained in:
@@ -100,10 +100,18 @@ int64_t strtoint(const std::string &value, int64_t errval);
|
||||
// String to double. Returns NAN if the number is not parseable.
|
||||
double strtodouble(const std::string &value);
|
||||
|
||||
// Trim a string_view
|
||||
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.
|
||||
std::string ltrim(std::string s);
|
||||
std::string rtrim(std::string s);
|
||||
std::string trim(std::string s);
|
||||
std::string ltrim(std::string_view s);
|
||||
std::string rtrim(std::string_view s);
|
||||
std::string trim(std::string_view s);
|
||||
|
||||
// Read a line from a string_view
|
||||
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