| 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
|
|
4382
|
use strict; |
|
|
8
|
|
|
|
|
18
|
|
|
|
8
|
|
|
|
|
223
|
|
|
16
|
8
|
|
|
8
|
|
46
|
use warnings; |
|
|
8
|
|
|
|
|
14
|
|
|
|
8
|
|
|
|
|
450
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our ($VERSION, @ISA, $AUTOLOAD); |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
$VERSION = '3.1.2'; |
|
21
|
|
|
|
|
|
|
|
|
22
|
8
|
|
|
8
|
|
45
|
use Carp; |
|
|
8
|
|
|
|
|
17
|
|
|
|
8
|
|
|
|
|
436
|
|
|
23
|
8
|
|
|
8
|
|
3500
|
use Text::Soundex; |
|
|
8
|
|
|
|
|
19723
|
|
|
|
8
|
|
|
|
|
1316
|
|
|
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
|
|
|
|
|
598
|
|
|
44
|
|
|
|
|
|
|
} |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |