mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:02:45 +00:00 
			
		
		
		
	 a419039bb2
			
		
	
	
		a419039bb2
		
	
	
	
	
		
			
			While DeprecatedString and StringView use ASCII case-insensitivity when matching, String uses the Unicode rules, so in order to match the spec, we need to *not* use `String::equals_ignoring_case()`. This function needs to be used everywhere that the spec refers to an "ASCII case-insensitive match".
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			650 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			650 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
 | |
|  * Copyright (c) 2022, networkException <networkexception@serenityos.org>
 | |
|  * Copyright (c) 2023, Kenneth Myhra <kennethmyhra@serenityos.org>
 | |
|  * Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Forward.h>
 | |
| 
 | |
| namespace Web::Infra {
 | |
| 
 | |
| bool is_ascii_case_insensitive_match(StringView a, StringView b);
 | |
| DeprecatedString strip_and_collapse_whitespace(StringView string);
 | |
| bool is_code_unit_prefix(StringView potential_prefix, StringView input);
 | |
| ErrorOr<String> convert_to_scalar_value_string(StringView string);
 | |
| 
 | |
| }
 |