Upa URL C++ library
A WHATWG URL Standard implementation
Loading...
Searching...
No Matches
upa::regex_engine_std Class Reference

Regex engine class based on std::regex. More...

#include <upa/regex_engine_std.h>

Classes

class  result

Public Member Functions

bool init (std::string_view regex_str, bool ignore_case)
bool exec (std::string_view input, result &res) const
bool test (std::string_view input) const

Detailed Description

Regex engine class based on std::regex.

This class implements the regex engine interface required by upa::urlpattern using std::regex. It can be used as template argument for upa::urlpattern.

However, it can only be used for simple use cases, as some URL Pattern Web Platform tests are not passed by upa::urlpattern when it is used. We recommend using upa::regex_engine_srell instead.

Definition at line 24 of file regex_engine_std.h.

Member Function Documentation

◆ exec()

bool upa::regex_engine_std::exec ( std::string_view input,
result & res ) const
inline

Definition at line 58 of file regex_engine_std.h.

◆ init()

bool upa::regex_engine_std::init ( std::string_view regex_str,
bool ignore_case )
inline

Definition at line 42 of file regex_engine_std.h.

◆ test()

bool upa::regex_engine_std::test ( std::string_view input) const
inline

Definition at line 61 of file regex_engine_std.h.


The documentation for this class was generated from the following file: