mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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.
16 lines
444 B
Plaintext
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 → a string
|
|
|
|
<h4>Example</h4>
|
|
<pre> soundex('robert') → 'R163'</pre><br />
|
|
<pre> soundex('rupert') → 'R163'</pre><br />
|
|
<pre> soundex('rubin') → 'R150'</pre>
|
|
|