|
1 | 1 | /* |
2 | 2 | * This is a port of the Double Metaphone algorithm for use in PostgreSQL. |
3 | 3 | * |
4 | | - * $PostgreSQL: pgsql/contrib/fuzzystrmatch/dmetaphone.c,v 1.13 2009/06/11 14:48:51 momjian Exp $ |
| 4 | + * $PostgreSQL: pgsql/contrib/fuzzystrmatch/dmetaphone.c,v 1.14 2010/04/05 02:46:20 adunstan Exp $ |
5 | 5 | * |
6 | 6 | * Double Metaphone computes 2 "sounds like" strings - a primary and an |
7 | 7 | * alternate. In most cases they are the same, but for foreign names |
@@ -461,7 +461,7 @@ DoubleMetaphone(char *str, char **codes) |
461 | 461 | current+=1; |
462 | 462 | break; |
463 | 463 |
|
464 | | -case'Ç': |
| 464 | +case'\xc7':/* C with cedilla */ |
465 | 465 | MetaphAdd(primary,"S"); |
466 | 466 | MetaphAdd(secondary,"S"); |
467 | 467 | current+=1; |
@@ -1037,7 +1037,7 @@ DoubleMetaphone(char *str, char **codes) |
1037 | 1037 | MetaphAdd(secondary,"N"); |
1038 | 1038 | break; |
1039 | 1039 |
|
1040 | | -case'Ñ': |
| 1040 | +case'\xd1':/* N with tilde */ |
1041 | 1041 | current+=1; |
1042 | 1042 | MetaphAdd(primary,"N"); |
1043 | 1043 | MetaphAdd(secondary,"N"); |
|