Remove unused withoutAccents extension function
This commit is contained in:
parent
9641d3ef4f
commit
b3b15b3764
1 changed files with 0 additions and 6 deletions
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
package io.element.android.libraries.core.extensions
|
package io.element.android.libraries.core.extensions
|
||||||
|
|
||||||
import java.text.Normalizer
|
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
||||||
fun Boolean.toOnOff() = if (this) "ON" else "OFF"
|
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 RTL_OVERRIDE_CHAR = '\u202E'
|
||||||
private const val LTR_OVERRIDE_CHAR = '\u202D'
|
private const val LTR_OVERRIDE_CHAR = '\u202D'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue