@@ -148,9 +148,9 @@ struct url_pattern_part {
148148struct url_pattern_compile_component_options {
149149 url_pattern_compile_component_options () = default ;
150150 explicit url_pattern_compile_component_options (
151- std::optional<char > delimiter = std::nullopt ,
152- std::optional<char > prefix = std::nullopt )
153- : delimiter(delimiter ), prefix(prefix ){};
151+ std::optional<char > new_delimiter = std::nullopt ,
152+ std::optional<char > new_prefix = std::nullopt )
153+ : delimiter(new_delimiter ), prefix(new_prefix ){};
154154
155155 // @see https://urlpattern.spec.whatwg.org/#options-delimiter-code-point
156156 std::optional<char > delimiter{};
@@ -170,13 +170,13 @@ class url_pattern_component {
170170
171171 // This function explicitly takes a std::string because it is moved.
172172 // To avoid unnecessary copy, move each value while calling the constructor.
173- url_pattern_component (std::string pattern , std::string regexp ,
174- std::vector<std::string> group_name_list ,
175- bool has_regexp_groups )
176- : pattern(std::move(pattern )),
177- regexp (std::move(regexp )),
178- group_name_list(std::move(group_name_list )),
179- has_regexp_groups_(has_regexp_groups ){};
173+ url_pattern_component (std::string new_pattern , std::string new_regexp ,
174+ std::vector<std::string> new_group_name_list ,
175+ bool new_has_regexp_groups )
176+ : pattern(std::move(new_pattern )),
177+ regexp (std::move(new_regexp )),
178+ group_name_list(std::move(new_group_name_list )),
179+ has_regexp_groups_(new_has_regexp_groups ){};
180180
181181 // @see https://urlpattern.spec.whatwg.org/#compile-a-component
182182 template <url_pattern_encoding_callback F>
@@ -338,7 +338,7 @@ struct Token {
338338
339339// @see https://urlpattern.spec.whatwg.org/#tokenizer
340340class Tokenizer {
341- public:
341+ public:
342342 explicit Tokenizer (std::string_view input, token_policy policy)
343343 : input(input), policy(policy) {}
344344
0 commit comments