| 
									
										
										
										
											2022-10-01 18:39:40 +01:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2023-03-04 21:42:38 +00:00
										 |  |  |  * Copyright (c) 2022-2023, Linus Groh <linusg@serenityos.org> | 
					
						
							| 
									
										
										
										
											2022-10-23 04:02:56 +02:00
										 |  |  |  * Copyright (c) 2022, networkException <networkexception@serenityos.org> | 
					
						
							| 
									
										
										
										
											2023-02-03 21:49:54 +01:00
										 |  |  |  * Copyright (c) 2023, Kenneth Myhra <kennethmyhra@serenityos.org> | 
					
						
							| 
									
										
										
										
											2023-02-15 13:56:37 +00:00
										 |  |  |  * Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org> | 
					
						
							| 
									
										
										
										
											2022-10-01 18:39:40 +01:00
										 |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <AK/Forward.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Web::Infra { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-14 07:11:20 -04:00
										 |  |  | String normalize_newlines(String const&); | 
					
						
							| 
									
										
										
										
											2025-07-26 12:19:56 -04:00
										 |  |  | Utf16String normalize_newlines(Utf16String const&); | 
					
						
							| 
									
										
										
										
											2023-03-04 21:42:38 +00:00
										 |  |  | ErrorOr<String> strip_and_collapse_whitespace(StringView string); | 
					
						
							| 
									
										
										
										
											2025-07-28 09:46:06 -04:00
										 |  |  | Utf16String strip_and_collapse_whitespace(Utf16String const& string); | 
					
						
							| 
									
										
										
										
											2022-10-23 04:02:56 +02:00
										 |  |  | bool is_code_unit_prefix(StringView potential_prefix, StringView input); | 
					
						
							| 
									
										
										
										
											2023-02-03 21:49:54 +01:00
										 |  |  | ErrorOr<String> convert_to_scalar_value_string(StringView string); | 
					
						
							| 
									
										
										
										
											2024-10-21 14:45:35 +11:00
										 |  |  | ByteBuffer isomorphic_encode(StringView input); | 
					
						
							|  |  |  | String isomorphic_decode(ReadonlyBytes input); | 
					
						
							| 
									
										
										
										
											2024-11-11 10:47:16 +01:00
										 |  |  | bool code_unit_less_than(StringView a, StringView b); | 
					
						
							| 
									
										
										
										
											2022-10-01 18:39:40 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | } |