@@ -15963,12 +15963,20 @@
15963
15963
\begin{itemize}
15964
15964
\item
15965
15965
\placeholder{CE} is UTF-8, UTF-16, or UTF-32 and
15966
- \placeholder{C} corresponds to either
15967
- a Unicode scalar value whose Unicode property \tcode{General_Category}
15968
- has a value in the groups \tcode{Separator} (\tcode{Z}) or \tcode{Other} (\tcode{C}) or to
15969
- a Unicode scalar value with the Unicode property \tcode{Grapheme_Extend=Yes},
15966
+ \placeholder{C} corresponds to a Unicode scalar value
15967
+ whose Unicode property \tcode{General_Category} has a value in the groups
15968
+ \tcode{Separator} (\tcode{Z}) or \tcode{Other} (\tcode{C}),
15970
15969
as described by \UAX{44} of the Unicode Standard, or
15971
15970
15971
+ \item
15972
+ \placeholder{CE} is UTF-8, UTF-16, or UTF-32 and
15973
+ \placeholder{C} corresponds to a Unicode scalar value
15974
+ with the Unicode property \tcode{Grapheme_Extend=Yes}
15975
+ as described by \UAX{44} of the Unicode Standard and
15976
+ \placeholder{C} is not immediately preceded in \placeholder{S} by
15977
+ a character \placeholder{P} appended to \placeholder{E}
15978
+ without translation to an escape sequence, or
15979
+
15972
15980
\item
15973
15981
\placeholder{CE} is neither UTF-8, UTF-16, nor UTF-32 and
15974
15982
\placeholder{C} is one of an implementation-defined set
16050
16058
then \placeholder{C} is appended unchanged.
16051
16059
\end{itemize}
16052
16060
16053
- %% FIXME: Example is incomplete; s2 and s6 are missing below;
16061
+ %% FIXME: Example is incomplete; s2 and s6 from P2286R8
16062
+ %% and s8 (which should be s9) from P2713R1 are missing below;
16054
16063
%% FIXME: their Unicode characters are not available in our font (Latin Modern).
16055
16064
\begin{example}
16056
16065
\begin{codeblock}
16062
16071
string s4 = format("[{:?}]", string("\0 \n \t \x02 \x1b", 9));
16063
16072
// \tcode{s4} has value: \tcode{["\textbackslash u\{0\} \textbackslash n \textbackslash t \textbackslash u\{2\} \textbackslash u\{1b\}"]}
16064
16073
string s5 = format("[{:?}]", "\xc3\x28"); // invalid UTF-8, \tcode{s5} has value: \tcode{["\textbackslash x\{c3\}("]}
16074
+ string s7 = format("[{:?}]", "\u0301"); // \tcode{s7} has value: \tcode{["\textbackslash u{301}"]}
16075
+ string s8 = format("[{:?}]", "\\\u0301"); // \tcode{s8} has value: \tcode{["\textbackslash \textbackslash \textbackslash u{301}"]}
16065
16076
\end{codeblock}
16066
16077
\end{example}
16067
16078
0 commit comments