Date: Sun, 29 Dec 2019 21:12:54 -0300
On Saturday, 28 December 2019 07:26:00 -03 Lyberta via Std-Discussion wrote:
> Which means that current design of regex from C++11 (and text processing
> in general) is broken and requires the new design and deprecation of old
> one.
And at that point, don't bother with any encoding except the three main UTF
ones. Just provide the tools to convert to and from one of those and arbitrary
encodings.
Aside from the locale encoding and possibly the terminal one (where
different), all other encodings are runtime-enumerable only, so there can be
no static typing for them.
> Which means that current design of regex from C++11 (and text processing
> in general) is broken and requires the new design and deprecation of old
> one.
And at that point, don't bother with any encoding except the three main UTF
ones. Just provide the tools to convert to and from one of those and arbitrary
encodings.
Aside from the locale encoding and possibly the terminal one (where
different), all other encodings are runtime-enumerable only, so there can be
no static typing for them.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel System Software Products
Received on 2019-12-29 18:15:25