mirror of
https://github.com/simon987/pg_asciifold.git
synced 2025-04-10 14:06:42 +00:00
PostgreSQL ASCII folding
Reasonably fast ASCII folding functions (based on Lucene asciifolding filter) for PostgreSQL
Example:
postgres=# SELECT asciifold('Hello, ⒩ᴐⱤú⒴⁈~!');
asciifold
----------------------
Hello, (n)ORu(y)?!~!
(1 row)
UTF8 input string is not sanitized (invalid UTF8 might lead to undefined behavior)
Compiling from source (CMake)
apt install postgresql-server-11-dev
cmake .
make
See asciifolding.c & build.sh for more information
Description
Languages
C
81.5%
Python
18%
Shell
0.3%
CMake
0.2%