Change mbbisearch to return the character range
John Naylor <john.naylor@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/common/unicode/generate-unicode_width_table.pl | modified | +2 −2 |
| src/common/wchar.c | modified | +13 −8 |
| src/include/common/unicode_width_table.h | modified | +193 −193 |
Discussion
- badly calculated width of emoji in psql 37 messages · 2021-04-02 → 2021-08-26