Remove unused withoutAccents extension function
This commit is contained in:
parent
babaa7351f
commit
a3147b4a10
1 changed files with 0 additions and 6 deletions
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
package io.element.android.libraries.core.extensions
|
||||
|
||||
import java.text.Normalizer
|
||||
import java.util.Locale
|
||||
|
||||
fun Boolean.toOnOff() = if (this) "ON" else "OFF"
|
||||
|
|
@ -86,11 +85,6 @@ fun String.safeCapitalize(): String {
|
|||
}
|
||||
}
|
||||
|
||||
fun String.withoutAccents(): String {
|
||||
return Normalizer.normalize(this, Normalizer.Form.NFD)
|
||||
.replace("\\p{Mn}+".toRegex(), "")
|
||||
}
|
||||
|
||||
private const val RTL_OVERRIDE_CHAR = '\u202E'
|
||||
private const val LTR_OVERRIDE_CHAR = '\u202D'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue