Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/engine/utility/include/string_utils.hpp

15 lines
556 B
C++
Raw Normal View History

2020-08-11 12:07:21 -04:00
#pragma once
#include <string>
#include <string_view>
#include <vector>
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);
2020-08-11 12:07:21 -04:00
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);
2020-08-11 12:07:21 -04:00
std::vector<std::string> tokenize(std::string_view string, const std::string_view& delimiters = ",");