mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibURL/Pattern: Add some scaffolding for the URLPattern constructor
This commit is contained in:
parent
873f7e4b3d
commit
ff07cc1a6c
Notes:
github-actions[bot]
2025-03-04 21:53:00 +00:00
Author: https://github.com/shannonbooth
Commit: ff07cc1a6c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3739
Reviewed-by: https://github.com/trflynn89
2 changed files with 86 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <AK/Vector.h>
|
||||
#include <LibURL/Pattern/Component.h>
|
||||
#include <LibURL/Pattern/Init.h>
|
||||
#include <LibURL/Pattern/PatternError.h>
|
||||
|
||||
namespace URL::Pattern {
|
||||
|
||||
|
@ -46,6 +47,8 @@ struct Result {
|
|||
// https://urlpattern.spec.whatwg.org/#url-pattern
|
||||
class Pattern {
|
||||
public:
|
||||
static PatternErrorOr<Pattern> create(Input const&, Optional<String> const& base_url = {}, Options const& = {});
|
||||
|
||||
bool has_regexp_groups() const;
|
||||
|
||||
Component const& protocol_component() const { return m_protocol_component; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue