File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
lib/src/main/kotlin/dev/sphericalkat/sublimefuzzy Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ object Fuzzy {
6
6
*
7
7
* @param pattern the pattern to match
8
8
* @param str the string to search
9
+ * @return A boolean representing the match status
9
10
*/
10
11
fun fuzzyMatchSimple (pattern : String , str : String ): Boolean {
11
12
var patternIdx = 0
@@ -164,6 +165,12 @@ object Fuzzy {
164
165
return Pair (false , outScore)
165
166
}
166
167
168
+ /* *
169
+ * Performs a fuzzy search to find pattern inside a string
170
+ * @param pattern the the pattern to match
171
+ * @param str the string to search
172
+ * @return a [Pair] containing the match status as a [Boolean] and match score as an [Int]
173
+ */
167
174
fun fuzzyMatch (pattern : String , str : String ): Pair <Boolean , Int > {
168
175
val recursionCount = 0
169
176
val recursionLimit = 10
You can’t perform that action at this time.
0 commit comments