pgsql: Simplify code for getting a unicode codepoint's canonical class.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Simplify code for getting a unicode codepoint's canonical class.
Дата
Msg-id E1kmr2U-0005KH-Oj@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Simplify code for getting a unicode codepoint's canonical class.

Three places of unicode_norm.c use a similar logic for getting the
combining class from a codepoint.  Commit 2991ac5 has added the function
get_canonical_class() for this purpose, but it was only called by the
backend.  This commit refactors the code to use this function in all
the places where the combining class is retrieved from a given
codepoint.

Author: John Naylor
Discussion: https://postgr.es/m/CAFBsxsHUV7s7YrOm6hFz-Jq8Sc7K_yxTkfNZxsDV-DuM-k-gwg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/16c302f51235eaec05a1f85a11c1df04ef3a6785

Modified Files
--------------
src/common/unicode_norm.c | 47 ++++++++++++++++++++++-------------------------
1 file changed, 22 insertions(+), 25 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: jit: Reference function pointer types via llvmjit_types.c.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Change get_constraint_index() to use pg_constraint.conindid