Small alias for boost::regex / std::regex without huge includes.
Definition in file regex.hpp.
Go to the source code of this file.
Classes | |
class | utils::regex |
Small alias for boost::regex / std::regex without huge includes. More... | |
class | utils::match_results |
Small alias for boost::smatch / std::regex without huge includes. More... | |
Namespaces | |
namespace | utils |
Utilities. | |
Functions | |
bool | utils::regex_match (std::string_view str, const regex &pattern) |
Determines whether the regular expression matches the entire target character sequence. | |
bool | utils::regex_match (std::string_view str, match_results &m, const regex &pattern) |
Returns true if the specified regular expression matches the whole of the input. Fills in what matched in m. | |
bool | utils::regex_search (std::string_view str, match_results &m, const regex &pattern) |
Determines whether the regular expression matches anywhere in the target character sequence. Fills in what matched in m. | |
bool | utils::regex_search (std::string_view str, const regex &pattern) |
Determines whether the regular expression matches anywhere in the target character sequence. | |
std::string | utils::regex_replace (std::string_view str, const regex &pattern, std::string_view repl) |
Create a new string where all regular expression matches replaced with repl. | |