Skip to content

Commit 464156d

Browse files
committed
NB GB-67 (C++17 CD): [charname] [lex.name]: Integrate Annex E contents
into description of identifiers.
1 parent 32df76c commit 464156d

File tree

3 files changed

+62
-33
lines changed

3 files changed

+62
-33
lines changed

source/charname.tex

Lines changed: 0 additions & 30 deletions
This file was deleted.

source/lex.tex

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,10 @@
549549
An identifier is an arbitrarily long sequence of letters and digits.
550550
Each \grammarterm{universal-character-name} in an identifier shall designate a
551551
character whose encoding in ISO 10646 falls into one of the ranges
552-
specified in~\ref{charname.allowed}.
552+
specified in Table~\ref{tab:charname.allowed}.
553553
The initial element shall not be a \grammarterm{universal-character-name}
554554
designating a character whose encoding falls into one of the ranges
555-
specified in~\ref{charname.disallowed}.
555+
specified in Table~\ref{tab:charname.disallowed}.
556556
Upper- and lower-case letters are
557557
different. All characters are significant.\footnote{On systems in which linkers cannot accept extended
558558
characters, an encoding of the \grammarterm{universal-character-name} may be used in
@@ -564,6 +564,66 @@
564564
identifiers. In \Cpp, upper- and lower-case letters are considered
565565
different for all identifiers, including external identifiers. }
566566

567+
\begin{floattable}{Ranges of characters allowed}{tab:charname.allowed}
568+
{lllll}
569+
\topline
570+
\tcode{00A8} &
571+
\tcode{00AA} &
572+
\tcode{00AD} &
573+
\tcode{00AF} &
574+
\tcode{00B2-00B5} \\
575+
\tcode{00B7-00BA} &
576+
\tcode{00BC-00BE} &
577+
\tcode{00C0-00D6} &
578+
\tcode{00D8-00F6} &
579+
\tcode{00F8-00FF} \\
580+
\tcode{0100-167F} &
581+
\tcode{1681-180D} &
582+
\tcode{180F-1FFF} &&\\
583+
\tcode{200B-200D} &
584+
\tcode{202A-202E} &
585+
\tcode{203F-2040} &
586+
\tcode{2054} &
587+
\tcode{2060-206F} \\
588+
\tcode{2070-218F} &
589+
\tcode{2460-24FF} &
590+
\tcode{2776-2793} &
591+
\tcode{2C00-2DFF} &
592+
\tcode{2E80-2FFF} \\
593+
\tcode{3004-3007} &
594+
\tcode{3021-302F} &
595+
\tcode{3031-D7FF} && \\
596+
\tcode{F900-FD3D} &
597+
\tcode{FD40-FDCF} &
598+
\tcode{FDF0-FE44} &
599+
\tcode{FE47-FFFD} & \\
600+
\tcode{10000-1FFFD} &
601+
\tcode{20000-2FFFD} &
602+
\tcode{30000-3FFFD} &
603+
\tcode{40000-4FFFD} &
604+
\tcode{50000-5FFFD} \\
605+
\tcode{60000-6FFFD} &
606+
\tcode{70000-7FFFD} &
607+
\tcode{80000-8FFFD} &
608+
\tcode{90000-9FFFD} &
609+
\tcode{A0000-AFFFD} \\
610+
\tcode{B0000-BFFFD} &
611+
\tcode{C0000-CFFFD} &
612+
\tcode{D0000-DFFFD} &
613+
\tcode{E0000-EFFFD} &
614+
\\
615+
\end{floattable}
616+
617+
\begin{floattable}{Ranges of characters disallowed initially (combining characters)}{tab:charname.disallowed}
618+
{llll}
619+
\topline
620+
\tcode{0300-036F} &
621+
% FIXME: Unicode v7 adds 1AB0-1AFF
622+
\tcode{1DC0-1DFF} &
623+
\tcode{20D0-20FF} &
624+
\tcode{FE20-FE2F} \\
625+
\end{floattable}
626+
567627
\pnum
568628
The identifiers in Table~\ref{tab:identifiers.special} have a special meaning when
569629
appearing in a certain context. When referred to in the grammar, these identifiers

source/std.tex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@
132132
\include{limits}
133133
\include{compatibility}
134134
\include{future}
135-
\include{charname}
136135

137136
%%--------------------------------------------------
138137
%% back matter

0 commit comments

Comments
 (0)