mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:32:44 +00:00 
			
		
		
		
	AK: Rename CaseInsensitiveStringViewTraits to reflect intent
Now it is called `CaseInsensitiveASCIIStringViewTraits`, so we can be more specific about what data structure does it operate onto. ;)
This commit is contained in:
		
							parent
							
								
									8ba6cd6ab9
								
							
						
					
					
						commit
						5141c86587
					
				
					 7 changed files with 10 additions and 11 deletions
				
			
		|  | @ -1316,7 +1316,7 @@ bool code_point_has_@enum_snake@(u32 code_point, @enum_title@ @enum_snake@) | |||
| 
 | ||||
|         for (auto const& prop : prop_list) { | ||||
|             if constexpr (IsSame<RemoveCVReference<decltype(prop)>, DeprecatedString>) { | ||||
|                 hashes.set(CaseInsensitiveStringViewTraits::hash(prop), prop); | ||||
|                 hashes.set(CaseInsensitiveASCIIStringViewTraits::hash(prop), prop); | ||||
|                 options.sensitivity = CaseSensitivity::CaseInsensitive; | ||||
|             } else { | ||||
|                 hashes.set(prop.key.hash(), prop.key); | ||||
|  |  | |||
|  | @ -454,7 +454,7 @@ Optional<@return_type@> @method_name@(StringView key) | |||
| )~~~"); | ||||
|     } else { | ||||
|         generator.append(R"~~~( | ||||
|     auto hash = CaseInsensitiveStringViewTraits::hash(key); | ||||
|     auto hash = CaseInsensitiveASCIIStringViewTraits::hash(key); | ||||
| )~~~"); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 gustrb
						gustrb