mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
LibURL/Pattern: Implement matching a URLPattern
This commit is contained in:
parent
2a44420e52
commit
6b1fa3ecd0
Notes:
github-actions[bot]
2025-04-06 12:27:06 +00:00
Author: https://github.com/shannonbooth
Commit: 6b1fa3ecd0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3847
Reviewed-by: https://github.com/trflynn89
3 changed files with 270 additions and 46 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <LibURL/Pattern/Component.h>
|
||||
#include <LibURL/Pattern/Init.h>
|
||||
#include <LibURL/Pattern/PatternError.h>
|
||||
#include <LibURL/URL.h>
|
||||
|
||||
namespace URL::Pattern {
|
||||
|
||||
|
@ -44,7 +45,7 @@ class Pattern {
|
|||
public:
|
||||
static PatternErrorOr<Pattern> create(Input const&, Optional<String> const& base_url = {}, IgnoreCase = IgnoreCase::No);
|
||||
|
||||
PatternErrorOr<Optional<Result>> match(Input const&, Optional<String> const& base_url_string) const;
|
||||
PatternErrorOr<Optional<Result>> match(Variant<String, Init, URL> const&, Optional<String> const& base_url_string) const;
|
||||
|
||||
bool has_regexp_groups() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue