postgresql/contrib/unaccent
Peter Eisentraut d3aad4ac57 Remove ts_locale.c's t_isdigit(), t_isspace(), t_isprint()
These do the same thing as the standard isdigit(), isspace(), and
isprint() but with multibyte and encoding support.  But all the
callers are only interested in analyzing single-byte ASCII characters.
So this extra layer is overkill and we can replace the uses with the
standard functions.

All the t_is*() functions in ts_locale.c are under scrutiny because
they don't use the common locale provider framework but instead use
the global libc locale settings.  For the functions being touched by
this patch, we don't need all that anyway, as mentioned above, so the
simplest solution is to just remove them.  The few remaining t_is*()
functions will need a different treatment in a separate patch.

pg_trgm has some compile-time options with macros such as
KEEPONLYALNUM.  These are not documented, and the non-default variant
is not supported by any test cases.  As part of this undertaking, I'm
removing the non-default variant, as it is in the way of cleanup.  So
in this case, the not-KEEPONLYALNUM code path is gone.

Reviewed-by: Jeff Davis <pgsql@j-davis.com>
Discussion: https://www.postgresql.org/message-id/flat/653f3b84-fc87-45a7-9a0c-bfb4fcab3e7d%40eisentraut.org
2024-12-17 12:52:29 +01:00
..
expected Add simple codepoint redirections to unaccent.rules. 2024-07-05 15:25:31 +12:00
sql unaccent: Add support for quoted translated characters 2023-09-20 12:29:36 +09:00
.gitignore Add support for automatically updating Unicode derived files 2020-01-09 10:08:14 +01:00
generate_unaccent_rules.py Add simple codepoint redirections to unaccent.rules. 2024-07-05 15:25:31 +12:00
Makefile unaccent: Tweak value of PYTHON when building without Python support 2023-09-27 14:40:23 +09:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
unaccent--1.0--1.1.sql Update unaccent extension for parallel query. 2016-06-14 14:55:49 -04:00
unaccent--1.1.sql Update unaccent extension for parallel query. 2016-06-14 14:55:49 -04:00
unaccent.c Remove ts_locale.c's t_isdigit(), t_isspace(), t_isprint() 2024-12-17 12:52:29 +01:00
unaccent.control Mark some contrib modules as "trusted". 2020-02-13 15:02:35 -05:00
unaccent.rules Add simple codepoint redirections to unaccent.rules. 2024-07-05 15:25:31 +12:00