Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
naveensingh committed Mar 17, 2024
1 parent 18ad1dd commit ad6ff7c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ fun String.highlightTextPart(textToHighlight: String, color: Int, highlightAll:
return spannableString
}

// TODO: Use KMP search algorithm
fun String.searchMatches(textToHighlight: String): ArrayList<Int> {
val indexes = arrayListOf<Int>()
var indexOf = indexOf(textToHighlight, 0, true)
Expand Down

0 comments on commit ad6ff7c

Please sign in to comment.