mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:22:45 +00:00 
			
		
		
		
	LibUnicode: Tweak the definition of the plurality "many"
As noted at the top of this method, this is a naive implementation of the Unicode plurality specification. But for now, we should tweak the defintion of "many" to be "more than 2" (which is what I had in mind when I wrote this, but forgot about fractions).
This commit is contained in:
		
							parent
							
								
									c24a350a18
								
							
						
					
					
						commit
						80493908d3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -995,7 +995,7 @@ Optional<NumberFormat> select_pattern_with_plurality(Vector<NumberFormat> const& | |||
|     } else if (number == 2) { | ||||
|         if (auto patterns = find_plurality(NumberFormat::Plurality::Two); patterns.has_value()) | ||||
|             return patterns; | ||||
|     } else { | ||||
|     } else if (number > 2) { | ||||
|         if (auto patterns = find_plurality(NumberFormat::Plurality::Many); patterns.has_value()) | ||||
|             return patterns; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn