Add PQmbdsplen() which returns the "display length" of a character.
Tatsuo Ishii <ishii@postgresql.org>
Add PQmbdsplen() which returns the "display length" of a character. Still some works needed: - UTF-8, MULE_INTERNAL always returns 1
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/mb/mbutils.c | modified | +8 −1 |
| src/backend/utils/mb/wchar.c | modified | +229 −38 |
| src/bin/psql/common.c | modified | +3 −3 |
| src/include/mb/pg_wchar.h | modified | +6 −1 |
| src/interfaces/libpq/fe-misc.c | modified | +11 −1 |
| src/interfaces/libpq/libpq-fe.h | modified | +4 −1 |