mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:32:43 +00:00 
			
		
		
		
	LibGfx: Change Emoji::emoji_for_code_points to accept const code points
Span<u32 const> is the type used when converting a constant Vector<u32> to a Span.
This commit is contained in:
		
							parent
							
								
									35b74ebbfc
								
							
						
					
					
						commit
						98f99a9f7e
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -25,7 +25,7 @@ Bitmap const* Emoji::emoji_for_code_point(u32 code_point) | |||
|     return emoji_for_code_points(Array { code_point }); | ||||
| } | ||||
| 
 | ||||
| Bitmap const* Emoji::emoji_for_code_points(Span<u32> const& code_points) | ||||
| Bitmap const* Emoji::emoji_for_code_points(Span<u32 const> const& code_points) | ||||
| { | ||||
|     // FIXME: This function is definitely not fast.
 | ||||
|     auto basename = String::join('_', code_points, "U+{:X}"sv); | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ class Bitmap; | |||
| class Emoji { | ||||
| public: | ||||
|     static Gfx::Bitmap const* emoji_for_code_point(u32 code_point); | ||||
|     static Gfx::Bitmap const* emoji_for_code_points(Span<u32> const&); | ||||
|     static Gfx::Bitmap const* emoji_for_code_points(Span<u32 const> const&); | ||||
|     static Gfx::Bitmap const* emoji_for_code_point_iterator(Utf8CodePointIterator&); | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn