blob: e5bc19d3e2cde53af7f5a26c9a46829be546f5a3 (
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 Algorithm._
import 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)
}
|