Commit 2025-11-12 23:50 c52e083d
View on Github →refactor: simplify dictionary in fixAbbreviation (#29352)
- Improve capitalization algorithm: you now don't have to give entries twice in
fixAbbreviation(nowabbreviationDict). - The new algorithm uses the fact that we can easily find the
lowerCamelCasename from theUpperCamelCasename, namely by applyingString.decapitalizeSeq. This means that bothnameDictandabbreviationDicthave as inputlowerCamelCaseand as outputUpperCamelCase. - This removes the need to especially fix
NSMul/ZSMuland similar. abbreviationDictstill needs two entries if bothsnake_caseand eithercamelCaseneed to be translated.