Re: locale-aware string comparisons

From: James Cloos <cloos_at_jhcloos.com>
Date: Tue, 01 Jan 2013 20:43:09 -0500

>>>>> "MD" == Mark Davis ☕ <mark_at_macchiato.com> writes:

MD> All of these are different, all of them still have over 200
MD> differences from either compare(lower(x),lower(y)) or compare(upper
MD> (x),upper(y))

What about, then:

  compare(lower(x),lower(y)) || compare(upper(x),upper(y))

Or, to emphasize that I mentioned C only as a pseudocode, akin to SQL:

  LOWER(x) LIKE LOWER(y) OR UPPER(x) LIKE UPPER(y)

Would that cover all of the outliers?

-JimC

-- 
James Cloos <cloos_at_jhcloos.com>         OpenPGP: 1024D/ED7DAEA6
Received on Tue Jan 01 2013 - 19:53:56 CST

This archive was generated by hypermail 2.2.0 : Tue Jan 01 2013 - 19:53:56 CST