pull/32/head
kunfei 5 years ago
parent 1444ee6639
commit 59d5255175
  1. 4
      app/src/main/java/io/legado/app/utils/StringExtensions.kt

@ -37,7 +37,9 @@ fun String.startWithIgnoreCase(start: String): Boolean {
return if (this.isBlank()) false else startsWith(start, true)
}
/**
* 计算相似度
*/
fun String.similarity(target: String): Float {
//计算两个字符串的长度。
val len1 = this.length

Loading…
Cancel
Save