Refactor routine to check for ASCII-only case
Refactor routine to check for ASCII-only case
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
Re: Refactor routine to check for ASCII-only case
От:
Heikki Linnakangas <hlinnaka@iki.fi>
Дата:
On 18/12/2020 05:57, Michael Paquier wrote: > 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. +1 - Heikki
Re: Refactor routine to check for ASCII-only case
Greetings, * Heikki Linnakangas (hlinnaka@iki.fi) wrote: > On 18/12/2020 05:57, Michael Paquier wrote: > >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. > > +1 Yeah, in a quick look, this looks like a good improvement. Thanks, Stephen