Added Sring.isDKS()
This commit is contained in:
parent
7e72dfe268
commit
a1af609c28
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
*/
|
*/
|
||||||
package net.thauvin.erik.android.tesremoteprogrammer.util
|
package net.thauvin.erik.android.tesremoteprogrammer.util
|
||||||
|
|
||||||
fun String.isDigits() : Boolean {
|
fun String.isDigits(): Boolean {
|
||||||
if (isBlank()) {
|
if (isBlank()) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,10 @@ fun String.isDigits() : Boolean {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun String.isDKS(): Boolean {
|
||||||
|
return this.equals(Dtmf.DKS, true)
|
||||||
|
}
|
||||||
|
|
||||||
fun String.replaceAll(replace: Array<Pair<String, String>>): String {
|
fun String.replaceAll(replace: Array<Pair<String, String>>): String {
|
||||||
val result = StringBuilder(this)
|
val result = StringBuilder(this)
|
||||||
var offset: Int
|
var offset: Int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue