by kazinator 6 hours ago

Decomposing things just to have different equality notions doesn't generalize.

How would you decompose a character string so that you could have a case-insensitive versus sensitive comparison?

:)

Nevermark an hour ago | [-1 more]

> How would you decompose a character string

With a capitalization bit mask of course!

And you can speed up full equality comparisons with a quick cap equality check first.

(That is the how. The when is probably "never". :)

Rygian 29 minutes ago | [-0 more]

Don't forget to store the locale used for capitalization, too.