Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c40cd36

Browse files
committed
One of the web pages mentioned in dmetaphone.c has moved. Also fix
a few typos in comments. The dictionaries I checked list "altho" as a variant of "although," but I didn't find any other instances of the former in the source tree so I changed it. Michael Fuhr
1 parent b4a7213 commit c40cd36

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

contrib/fuzzystrmatch/dmetaphone.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* especially they can be a bit different, depending on pronunciation.
77
*
88
* Information on using Double Metaphone can be found at
9-
* http://www.codeproject.com/useritems/dmetaphone1.asp
9+
* http://www.codeproject.com/string/dmetaphone1.asp
1010
* and the original article describing it can be found at
1111
* http://www.cuj.com/documents/s=8038/cuj0006philips/
1212
*
13-
* For PostgrSQL we provide 2 functions - one for the primary and one for
13+
* For PostgreSQL we provide 2 functions - one for the primary and one for
1414
* the alternate. That way the functions are pure text->text mappings that
1515
* are useful in functional indexes. These are 'dmetaphone' for the
1616
* primary and 'dmetaphone_alt' for the alternate.
@@ -48,8 +48,8 @@
4848

4949

5050
/*
51-
* $Revision: 1.4 $
52-
* $Id: dmetaphone.c,v 1.4 2004/10/07 15:21:49 momjian Exp $
51+
* $Revision: 1.5 $
52+
* $Id: dmetaphone.c,v 1.5 2005/09/30 22:38:44 momjian Exp $
5353
*/
5454

5555

@@ -252,7 +252,7 @@ dmetaphone_alt(PG_FUNCTION_ARGS)
252252

253253

254254

255-
/* this typedef was orignally in the perl module's .h file */
255+
/* this typedef was originally in the perl module's .h file */
256256

257257
typedef struct
258258
{
@@ -1188,7 +1188,7 @@ DoubleMetaphone(char *str, char **codes)
11881188
/*
11891189
* german & anglicisations, e.g. 'smith' match 'schmidt',
11901190
* 'snider' match 'schneider' also, -sz- in slavic
1191-
* language altho in hungarian it is pronounced 's'
1191+
* language although in hungarian it is pronounced 's'
11921192
*/
11931193
if (((current == 0)
11941194
&& StringAt(original, (current + 1), 1,

contrib/fuzzystrmatch/fuzzystrmatch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ levenshtein(PG_FUNCTION_ARGS)
119119
str_s0 = str_s;
120120

121121
/*
122-
* Loop throught the rows, starting at row 1. Row 0 is used for the
122+
* Loop through the rows, starting at row 1. Row 0 is used for the
123123
* initial "upper" row.
124124
*/
125125
for (j = 1; j < rows; j++)

0 commit comments

Comments
 (0)