line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# Symbol::Approx::Sub::Text::Soundex |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Transformer plugin for Symbol::Approx::Sub; |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# Copyright (c) 2001, Magnum Solutions Ltd. All rights reserved. |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# This module is free software; you can redistribute it and/or |
9
|
|
|
|
|
|
|
# modify it under the same terms as Perl itself. |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
package Symbol::Approx::Sub::Text::Soundex; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
require 5.006_000; |
15
|
8
|
|
|
8
|
|
4824
|
use strict; |
|
8
|
|
|
|
|
20
|
|
|
8
|
|
|
|
|
260
|
|
16
|
8
|
|
|
8
|
|
45
|
use warnings; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
489
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our ($VERSION, @ISA, $AUTOLOAD); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
$VERSION = '3.1.3'; |
21
|
|
|
|
|
|
|
|
22
|
8
|
|
|
8
|
|
52
|
use Carp; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
510
|
|
23
|
8
|
|
|
8
|
|
4283
|
use Text::Soundex; |
|
8
|
|
|
|
|
22867
|
|
|
8
|
|
|
|
|
1560
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Symbol::Approx::Sub::Text::Soundex |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
See L |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 METHODS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 transform |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Returns the array it is passed with all values converted to their soundex |
38
|
|
|
|
|
|
|
equivalent. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub transform { |
43
|
12
|
|
|
12
|
1
|
33
|
map { soundex($_) } @_; |
|
321
|
|
|
|
|
688
|
|
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |