Re: Fwd: QT4CG meeting 069 draft minutes, 12 March 2024

On Wed, 2024-03-13 at 17:19 -0700, Dimitre Novatchev wrote:
> > Sorry, I replied just to Michael, but intended to reply  all:
> > 
> > For a simplified example, revert("abc") would produce "zyx" . This
> > is
> > doable and really valuable.

More likely it'd produce MAXCHAR - 'a' || MAXCHAR - 'b' and so on.

I’d maybe call it invert().

Unfortunately the results are not guaranteed to be valid Unicode
sequences.

The need to sort values in a descending order, or to treat some values
specially, is part of why some languages use a comparison function
rather than generating a surrogate key. It’s also a memory/cpu trade-
off of course.

There are other cases where we have an irritating collation argument. I
was sad that the HTML collation wasn’t the default for contains-
token(), but it can’t be changed now, and i’m not sure there was a
default that wouldn’t cause surprises for some users. So there's also
cases where it often won't be an empty sequence.



-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org

Received on Thursday, 14 March 2024 04:09:08 UTC