mirror of
https://github.com/simon987/pg_asciifold.git
synced 2025-04-10 14:06:42 +00:00
update README
This commit is contained in:
parent
6609b86e07
commit
a9c7edcfa9
@ -1,6 +1,7 @@
|
|||||||
# PostgreSQL ASCII folding
|
# PostgreSQL ASCII folding
|
||||||
|
|
||||||
Reasonably fast ASCII folding functions (based on [Lucene asciifolding filter](https://lucene.apache.org/core/4_0_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html)) for PostgreSQL
|
Reasonably fast (tested on Musicbrainz dataset, is 40% faster than a simple `UPPER()`)
|
||||||
|
ASCII folding functions based on [Lucene's ASCIIFoldingFilter](https://lucene.apache.org/core/4_0_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html) for PostgreSQL
|
||||||
|
|
||||||
*Example:*
|
*Example:*
|
||||||
```
|
```
|
||||||
@ -9,6 +10,12 @@ postgres=# SELECT asciifold('Hello, ⒩ᴐⱤú⒴⁈~!');
|
|||||||
----------------------
|
----------------------
|
||||||
Hello, (n)ORu(y)?!~!
|
Hello, (n)ORu(y)?!~!
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
|
postgres=# SELECT asciifold_lower('Hello, ⒩ᴐⱤú⒴⁈~!');
|
||||||
|
asciifold
|
||||||
|
----------------------
|
||||||
|
hello, (n)oru(y)?!~!
|
||||||
|
(1 row)
|
||||||
```
|
```
|
||||||
|
|
||||||
UTF8 input string is not sanitized (invalid UTF8 might lead to undefined behavior)
|
UTF8 input string is not sanitized (invalid UTF8 might lead to undefined behavior)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user