Skip to content

Commit 54ba6d2

Browse files
committed
P2862R1 text_encoding::name() should never return null values
1 parent d017ce4 commit 54ba6d2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

source/text.tex

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5113,7 +5113,7 @@
51135113
\tcode{e.mib() == text_encoding::id::other} is \tcode{false}
51145114
maintains the following invariants:
51155115
\begin{itemize}
5116-
\item \tcode{e.name() == nullptr} is \tcode{false}, and
5116+
\item \tcode{*e.name() == '\textbackslash 0'} is \tcode{false}, and
51175117
\item \tcode{e.mib() == text_encoding(e.name()).mib()} is \tcode{true}.
51185118
\end{itemize}
51195119

@@ -5213,13 +5213,10 @@
52135213
\begin{itemdescr}
52145214
\pnum
52155215
\returns
5216-
\exposid{name_} if \tcode{(\exposid{name_}[0] != '\textbackslash 0')}
5217-
is \tcode{true}, and
5218-
\keyword{nullptr} otherwise.
5216+
\exposid{name_}.
52195217

52205218
\pnum
52215219
\remarks
5222-
If \tcode{name() == nullptr} is \tcode{false},
52235220
\tcode{name()} is an \ntbs{} and
52245221
accessing elements of \exposid{name_}
52255222
outside of the range \countedrange{name()}{strlen(name()) + 1}

0 commit comments

Comments
 (0)