Refactor routine to check for ASCII-only case

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-12-18T03:57:12Z
Lists: pgsql-hackers

Attachments

Hi all,

As mentioned in [1], there are three places where there is the same
routine to check if a string is made only of ASCII characters.

This makes for a small-ish but nice cleanup, as per the attached.

Thanks,

[1]: https://www.postgresql.org/message-id/X9lVLGRuG0hTHrVo@paquier.xyz
--
Michael

Commits

  1. Refactor logic to check for ASCII-only characters in string