File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed
app/src/test/kotlin/org/fossify/keyboard/services Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -177,29 +177,4 @@ class VietnameseTelexTest {
177177 return word
178178 }
179179
180- /* *
181- * Helper function that applies rules with case-insensitive matching.
182- * Matches rules regardless of input case and preserves case in output.
183- */
184- private fun applyRulesCaseInsensitive (word : String ): String {
185- for (length in word.length downTo 1 ) {
186- val suffix = word.substring(word.length - length)
187- val suffixLower = suffix.lowercase()
188-
189- if (telexRules.containsKey(suffixLower)) {
190- val prefix = word.substring(0 , word.length - length)
191- val transformed = telexRules[suffixLower]!!
192-
193- val result = if (suffix[0 ].isUpperCase() && transformed.isNotEmpty()) {
194- transformed[0 ].uppercaseChar() + transformed.substring(1 )
195- } else {
196- transformed
197- }
198-
199- return prefix + result
200- }
201- }
202-
203- return word
204- }
205- }
180+ }
You can’t perform that action at this time.
0 commit comments