Allow multi-character source strings in contrib/unaccent.
Tom Lane <tgl@sss.pgh.pa.us>
Allow multi-character source strings in contrib/unaccent. This could be useful in languages where diacritic signs are represented as separate characters; more generally it supports using unaccent dictionaries for substring substitutions beyond narrowly conceived "diacritic removal". In any case, since the rule-file parser doesn't complain about multi-character source strings, it behooves us to do something unsurprising with them.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/unaccent/unaccent.c | modified | +59 −32 |
| doc/src/sgml/unaccent.sgml | modified | +8 −0 |