Refactor convert_case() to prepare for optimizations.
authorJeff Davis <jdavis@postgresql.org>
Thu, 13 Mar 2025 04:51:52 +0000 (21:51 -0700)
committerJeff Davis <jdavis@postgresql.org>
Thu, 13 Mar 2025 04:51:52 +0000 (21:51 -0700)
commitd3b2e5e1ab5ca3e9738d20409debfdd299e65a2e
tree531de309f73c308f35afd5aa980c896e2f1d23cc
parent3abe9dc18892b9f69bb48a2eb21fbe5cf348a489
Refactor convert_case() to prepare for optimizations.

Upcoming optimizations will add complexity to convert_case(). This
patch reorganizes slightly so that the complexity can be contained
within the logic to convert the case of a single character, rather
than mixing it in with logic to iterate through the string.

Reviewed-by: Alexander Borisov <lex.borisov@gmail.com>
Discussion: https://postgr.es/m/44005c3d-88f4-4a26-981f-fd82dfa8e313@gmail.com
src/common/unicode_case.c