mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	These control how a pattern string is generated, which can vary for different components and is also impacted by the 'ignoreCase' option that can be provided in the URLPattern constructor.
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			663 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			663 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2025, Shannon Booth <shannon@serenityos.org>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include <AK/Optional.h>
 | 
						|
 | 
						|
namespace URL::Pattern {
 | 
						|
 | 
						|
// https://urlpattern.spec.whatwg.org/#options
 | 
						|
struct Options {
 | 
						|
    // https://urlpattern.spec.whatwg.org/#options-delimiter-code-point
 | 
						|
    Optional<char> delimiter_code_point;
 | 
						|
 | 
						|
    // https://urlpattern.spec.whatwg.org/#options-prefix-code-point
 | 
						|
    Optional<char> prefix_code_point;
 | 
						|
 | 
						|
    // https://urlpattern.spec.whatwg.org/#options-ignore-case
 | 
						|
    bool ignore_case { false };
 | 
						|
 | 
						|
    static Options default_();
 | 
						|
    static Options hostname();
 | 
						|
    static Options pathname();
 | 
						|
};
 | 
						|
;
 | 
						|
 | 
						|
}
 |