@@ -148,9 +148,9 @@ struct url_pattern_part {
148
148
struct url_pattern_compile_component_options {
149
149
url_pattern_compile_component_options () = default ;
150
150
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 ){};
154
154
155
155
// @see https://urlpattern.spec.whatwg.org/#options-delimiter-code-point
156
156
std::optional<char > delimiter{};
@@ -170,13 +170,13 @@ class url_pattern_component {
170
170
171
171
// This function explicitly takes a std::string because it is moved.
172
172
// 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 ){};
180
180
181
181
// @see https://urlpattern.spec.whatwg.org/#compile-a-component
182
182
template <url_pattern_encoding_callback F>
@@ -338,7 +338,7 @@ struct Token {
338
338
339
339
// @see https://urlpattern.spec.whatwg.org/#tokenizer
340
340
class Tokenizer {
341
- public:
341
+ public:
342
342
explicit Tokenizer (std::string_view input, token_policy policy)
343
343
: input(input), policy(policy) {}
344
344
0 commit comments