mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Remove unused withoutAccents extension function
This commit is contained in:
-6
@@ -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'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user