mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:02:44 +00:00 
			
		
		
		
	LibWeb: Use code_points helper for getting delim CSS token codepoint
This is less code, and more expressive.
This commit is contained in:
		
							parent
							
								
									74284abcba
								
							
						
					
					
						commit
						2dce09b12e
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -8,7 +8,6 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <AK/FlyString.h> | ||||
| #include <AK/Utf8View.h> | ||||
| #include <LibWeb/CSS/Number.h> | ||||
| 
 | ||||
| namespace Web::CSS::Parser { | ||||
|  | @ -74,7 +73,7 @@ public: | |||
|     u32 delim() const | ||||
|     { | ||||
|         VERIFY(m_type == Type::Delim); | ||||
|         return *Utf8View(m_value.bytes_as_string_view()).begin(); | ||||
|         return *m_value.code_points().begin(); | ||||
|     } | ||||
| 
 | ||||
|     FlyString const& string() const | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shannon Booth
						Shannon Booth