diff options
author | Rocky Madden <git@rockymadden.com> | 2012-11-27 08:58:28 -0700 |
---|---|---|
committer | Rocky Madden <git@rockymadden.com> | 2012-11-27 08:58:28 -0700 |
commit | 7593bccca1b81fd29b1382cbd978f69ea93fc8ae (patch) | |
tree | 8f36999f72db06c925d5646278aa88de168888dc /core | |
parent | d88418dc98fafec114f7b608a8fe6323d5096479 (diff) | |
download | stringmetric-7593bccca1b81fd29b1382cbd978f69ea93fc8ae.tar.gz stringmetric-7593bccca1b81fd29b1382cbd978f69ea93fc8ae.tar.bz2 stringmetric-7593bccca1b81fd29b1382cbd978f69ea93fc8ae.zip |
Changed anonymous function to nested.
Diffstat (limited to 'core')
3 files changed, 3 insertions, 3 deletions
diff --git a/core/source/core/scala/org/hashtree/stringmetric/phonetic/MetaphoneAlgorithm.scala b/core/source/core/scala/org/hashtree/stringmetric/phonetic/MetaphoneAlgorithm.scala index 39fe96d..d766f09 100755 --- a/core/source/core/scala/org/hashtree/stringmetric/phonetic/MetaphoneAlgorithm.scala +++ b/core/source/core/scala/org/hashtree/stringmetric/phonetic/MetaphoneAlgorithm.scala @@ -30,7 +30,7 @@ object MetaphoneAlgorithm extends StringAlgorithm with FilterableStringAlgorithm private[this] def transcode(l: Array[Char], c: Char, r: Array[Char], o: Array[Char]): Array[Char] = { if (c == '\0' && r.length == 0) o else { - val shift = (d: Int, ca: Array[Char]) => { + def shift(d: Int, ca: Array[Char]) = { val sca = r.splitAt(d - 1) ( diff --git a/core/source/core/scala/org/hashtree/stringmetric/phonetic/NysiisAlgorithm.scala b/core/source/core/scala/org/hashtree/stringmetric/phonetic/NysiisAlgorithm.scala index 1c6278c..cd45fc3 100755 --- a/core/source/core/scala/org/hashtree/stringmetric/phonetic/NysiisAlgorithm.scala +++ b/core/source/core/scala/org/hashtree/stringmetric/phonetic/NysiisAlgorithm.scala @@ -44,7 +44,7 @@ object NysiisAlgorithm extends StringAlgorithm with FilterableStringAlgorithm { private[this] def transcodeCenter(l: Array[Char], c: Char, r: Array[Char], o: Array[Char]): Array[Char] = { if (c == '\0' && r.length == 0) o else { - val shift = (d: Int, ca: Array[Char]) => { + def shift(d: Int, ca: Array[Char]) = { val sca = r.splitAt(d - 1) ( diff --git a/core/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedNysiisAlgorithm.scala b/core/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedNysiisAlgorithm.scala index 393b24f..59affaf 100755 --- a/core/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedNysiisAlgorithm.scala +++ b/core/source/core/scala/org/hashtree/stringmetric/phonetic/RefinedNysiisAlgorithm.scala @@ -41,7 +41,7 @@ object RefinedNysiisAlgorithm extends StringAlgorithm with FilterableStringAlgor private[this] def transcode(l: Array[Char], c: Char, r: Array[Char], o: Array[Char]): Array[Char] = { if (c == '\0' && r.length == 0) o else { - val shift = (d: Int, ca: Array[Char]) => { + def shift(d: Int, ca: Array[Char]) = { val sca = r.splitAt(d - 1) ( |