Optimize string normalization

This commit is contained in:
MM20
2025-12-24 13:51:18 +01:00
parent 142b9429e1
commit 49d09c01c7
6 changed files with 50 additions and 19 deletions

View File

@@ -1,5 +1,11 @@
package de.mm20.launcher2.search
interface StringNormalizer {
/**
* A unique identifier for the normalization algorithm. Two normalizers that share the same ID must
* return the same normalized string for the same input.
*/
val id: String
fun normalize(input: String): String
}