Refactor uppercase-inclusion in libutf
Previously, the to*rune function would have to jiggle with two arrays, and it somehow evaded me that it is actually way simpler to just add another entry to the arrays if needed. Binary size goes slightly down, e.g. tr statically linked against musl: 68072 -> 67688 Behind the scenes though the conversion should be a bit faster and, more importantly, the scary case-conversion function is simplified and easier to understand. It also drops nearly half the LOC in upperrune.c and lowerrune.c.
This commit is contained in:
		
							
								
								
									
										4297
									
								
								libutf/lowerrune.c
									
									
									
									
									
								
							
							
						
						
									
										4297
									
								
								libutf/lowerrune.c
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										3307
									
								
								libutf/upperrune.c
									
									
									
									
									
								
							
							
						
						
									
										3307
									
								
								libutf/upperrune.c
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user