Nyall Dawson feb3bee858 Add a bunch of optimised fuzzy string matching algorithms.
A new QgsStringUtils class has been added containing some
common fuzzy matching algorithms, including Levenshtein edit
distance and Soundex. These can be used for finding "similar"
strings in a table.

Expression functions for these algorithms have also been
added to a new "Fuzzy Matching" group.
2015-06-27 11:51:56 +10:00

16 lines
444 B
Plaintext

<h3>soundex function</h3>
Returns the Soundex representation of a string. Soundex is a phonetic matching algorithm,
so strings with similar sounds should be represented by the same Soundex code.
<h4>Syntax</h4>
<pre>soundex(string)</pre>
<h4>Arguments</h4>
string &rarr; a string
<h4>Example</h4>
<pre> soundex('robert') &rarr; 'R163'</pre><br />
<pre> soundex('rupert') &rarr; 'R163'</pre><br />
<pre> soundex('rubin') &rarr; 'R150'</pre>