pgsql: Change mbbisearch to return the character range

From: John Naylor <john(dot)naylor(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Change mbbisearch to return the character range
Date: 2021-08-25 17:10:46
Message-ID: E1mIwQI-0000tT-CK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Change mbbisearch to return the character range

Add a width field to mbinterval and have mbbisearch return a
pointer to the found range rather than just bool for success.
A future commit will add another width besides zero, and this
will allow that to use the same search.

Reviewed by Jacob Champion
Discussion: https://www.postgresql.org/message-id/CAFBsxsGOCpzV7c-f3a8ADsA1n4uZ%3D8puCctQp%2Bx7W0vgkv%3Dw%2Bg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/78ab944cd4b9977732becd9d0bc83223b88af9a2

Modified Files
--------------
src/common/unicode/generate-unicode_width_table.pl | 4 +-
src/common/wchar.c | 21 +-
src/include/common/unicode_width_table.h | 386 ++++++++++-----------
3 files changed, 208 insertions(+), 203 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2021-08-26 01:46:49 Re: Separate out FileSet from SharedFileSet (was Re: pgsql: pgstat: Bring up pgstat in BaseInit() to fix uninitialized use o)
Previous Message Tom Lane 2021-08-25 15:06:42 pgsql: Remove redundant test.