Simplify coding style of is_valid_ascii()
authorJohn Naylor <john.naylor@postgresql.org>
Fri, 5 Aug 2022 06:07:31 +0000 (13:07 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Fri, 5 Aug 2022 09:50:22 +0000 (16:50 +0700)
commit6b41a1579bd37aa95924d592d7a18a79d669662f
tree2459465c5ccb1567728d69231544336f805d4d15
parent82593b9a3d5f1c58157f6e8fd7d69ef0d6f6eeb3
Simplify coding style of is_valid_ascii()

Calculate end of input rather than maintaining length,
per prior suggestion from Heikki Linnakangas. In passing,
use more natural language in a comment.

Discussion: https://www.postgresql.org/message-id/b4648cc2-5e9c-c93a-52cc-51e5c658a4f6%40iki.fi
src/include/mb/pg_wchar.h