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

Regex engine class based on SRELL library. More...

#include <upa/regex_engine_srell.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 SRELL library.

This class implements the regex engine interface required by upa::urlpattern using the SRELL library from https://www.akenotsuki.com/misc/srell/en/. It can be used as template argument for upa::urlpattern. For example:

We recommend using this class because SRELL complies with the latest ECMAScript standard, so upa::urlpattern passes all URL Pattern Web Platform tests when using it. The SRELL version 4.066 or later is required.

Definition at line 31 of file regex_engine_srell.h.

Member Function Documentation

◆ exec()

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

Definition at line 60 of file regex_engine_srell.h.

◆ init()

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

Definition at line 49 of file regex_engine_srell.h.

◆ test()

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

Definition at line 63 of file regex_engine_srell.h.


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