/* * Copyright (c) 2025, Shannon Booth * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace URL::Pattern { // https://urlpattern.spec.whatwg.org/#component struct Component { // https://urlpattern.spec.whatwg.org/#component-pattern-string // pattern string, a well formed pattern string String pattern_string; // https://urlpattern.spec.whatwg.org/#component-regular-expression // regular expression, a RegExp OwnPtr> regular_expression; // https://urlpattern.spec.whatwg.org/#component-group-name-list // group name list, a list of strings Vector group_name_list; // https://urlpattern.spec.whatwg.org/#component-has-regexp-groups // has regexp groups, a boolean bool has_regexp_groups {}; }; }