Re: Hide exposed impl detail of wchar.c
John Naylor <johncnaylorls@gmail.com>
From: John Naylor <johncnaylorls@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Jubilee Young <workingjubilee@gmail.com>,
pgsql-hackers@lists.postgresql.org
Date: 2023-11-17T10:26:20Z
Lists: pgsql-hackers
On Fri, Nov 17, 2023 at 5:54 AM Nathan Bossart <nathandbossart@gmail.com> wrote: > > It looks like is_valid_ascii() was originally added to pg_wchar.h so that > it could easily be used elsewhere [0] [1], but that doesn't seem to have > happened yet. > > Would moving this definition to a separate header file be a viable option? Seems fine to me. (I believe the original motivation for making it an inline function was for in pg_mbstrlen_with_len(), but trying that hasn't been a priority.)
Commits
-
Move is_valid_ascii() to ascii.h.
- 3726c1cb0e3b 15.6 landed
- 1b924a86e696 16.2 landed
- 97287bdfae41 17.0 landed
-
Use SSE2 in is_valid_ascii() where available.
- 121d2d3d70ec 16.0 cited