@@ -313,7 +313,7 @@ inline std::string_view constructor_string_parser::make_component_string() {
313
313
const auto end_index = token.index ;
314
314
// Return the code point substring from component start input index to end
315
315
// index within parser’s input.
316
- return input.substr (component_start_input_index, end_index);
316
+ return std::string_view ( input) .substr (component_start_input_index, end_index);
317
317
}
318
318
319
319
inline bool constructor_string_parser::is_an_identity_terminator () {
@@ -360,9 +360,9 @@ inline void Tokenizer::get_next_code_point() {
360
360
next_index++;
361
361
}
362
362
363
- inline void Tokenizer::seek_and_get_next_code_point (size_t index ) {
363
+ inline void Tokenizer::seek_and_get_next_code_point (size_t new_index ) {
364
364
// Set tokenizer’s next index to index.
365
- next_index = index ;
365
+ next_index = new_index ;
366
366
// Run get the next code point given tokenizer.
367
367
get_next_code_point ();
368
368
}
@@ -405,13 +405,13 @@ Tokenizer::process_tokenizing_error(size_t next_position,
405
405
}
406
406
407
407
// @see https://urlpattern.spec.whatwg.org/#is-a-valid-name-code-point
408
- inline bool Tokenizer::is_valid_name_code_point (char code_point , bool first) {
408
+ inline bool Tokenizer::is_valid_name_code_point (char cp , bool first) {
409
409
// If first is true return the result of checking if code point is contained
410
410
// in the IdentifierStart set of code points. Otherwise return the result of
411
411
// checking if code point is contained in the IdentifierPart set of code
412
412
// points.
413
413
// TODO: Implement this
414
- (void )code_point ;
414
+ (void )cp ;
415
415
(void )first;
416
416
return true ;
417
417
}
0 commit comments