Archived
1
Fork 0

Remove unnecessary const in string_utils.hpp

This commit is contained in:
Joshua Goins 2022-02-21 00:12:51 -05:00
parent 82ea9d17a2
commit e2eaf2edb8

View file

@ -4,11 +4,11 @@
#include <string_view>
#include <vector>
std::string remove_substring(const std::string_view string, const std::string_view substring);
std::string replace_substring(const std::string_view string, const std::string_view substring, const std::string_view replacement);
std::string remove_substring(std::string_view string, std::string_view substring);
std::string replace_substring(std::string_view string, std::string_view substring, std::string_view replacement);
bool string_contains(const std::string_view a, const std::string_view b);
bool string_starts_with(const std::string_view haystack, const std::string_view needle);
bool is_numeric(const std::string_view string);
bool string_contains(std::string_view a, std::string_view b);
bool string_starts_with(std::string_view haystack, std::string_view needle);
bool is_numeric(std::string_view string);
std::vector<std::string> tokenize(const std::string_view string, const std::string_view& delimiters = ",");
std::vector<std::string> tokenize(std::string_view string, const std::string_view& delimiters = ",");