blob: 07957c850acd3578d48127b38c2eaafc1174f5ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package com.rockymadden
package object stringmetric {
import scala.language.implicitConversions
import com.rockymadden.stringmetric.Algorithm._
import com.rockymadden.stringmetric.Metric._
type CompareTuple[T] = (Array[T], Array[T])
type MatchTuple[T] = (Array[T], Array[T])
implicit def stringToCharArray(s: String): Array[Char] =
s.toCharArray
implicit def stringAlgorithmToDecoratedStringAlgorithm(sa: StringAlgorithm): StringAlgorithmDecorator =
new StringAlgorithmDecorator(sa)
implicit def stringMetricToDecoratedStringMetric[A](sa: StringMetric[A]): StringMetricDecorator[A] =
new StringMetricDecorator[A](sa)
}
|