C++ Logo

sg16

Advanced search

Re: [SG16] Feedback on D2071R1 Named universal character escapes

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Thu, 21 Oct 2021 12:11:21 +0200
On 20/10/2021 23.14, Steve Downey wrote:
>
>
> On Wed, Oct 20, 2021 at 4:26 PM Jens Maurer via SG16 <sg16_at_[hidden] <mailto:sg16_at_[hidden]>> wrote:
>
> On 20/10/2021 21.30, Jens Maurer via SG16 wrote:
> > - n-char: use U+0020 SPACE (or whatever the name is) to designate "space"
>
> n-char cannot represent - and _, it seems.
>
>
> The current list is supposed to be.
> |
> | _n-char_: one of
> | A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
> | a b c d e f g h i j k l m n o p q r s t u v w x y z
> | 0 1 2 3 4 5 6 7 8 9
> | - space
> |
>
> I will re-review what is getting mis-escaped, and I believe we implicitly removed _ as it's not used by the Unicode Database, just by the LM2 matching algorithm. But yes, this would have been inconsistent as it's a before/after problem. Thank you!

Ah, the "-" before space is the "-".

Maybe use the Unicode U+00xx NAME designation for the hyphen, too,
so that it doesn't get overlooked.

Thanks,
Jens

Received on 2021-10-21 05:11:25