Skip to content

[file.streams] Change sub-clauses to rSec2, similar to [string.streams] #385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions source/iostreams.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
& & \tcode{<ostream>} \\
& & \tcode{<iomanip>} \\ \rowsep
\ref{string.streams} & String streams & \tcode{<sstream>} \\ \rowsep
\ref{file.streams} & File streams & \tcode{<fstream>} \\
& & \tcode{<cstdio>} \\
& & \tcode{<cinttypes>} \\
\ref{file.streams} & File streams & \tcode{<fstream>} \\ \rowsep
\ref{c.files} & C library files & \tcode{<cstdio>} \\
& & \tcode{<cinttypes>} \\
\end{libsumtab}

\pnum
Expand Down Expand Up @@ -382,6 +382,15 @@
}
\end{codeblock}

\pnum
In this Clause, the type name \tcode{FILE} refers to
the type
\tcode{FILE}
declared in
\tcode{<cstdio>}
\indexlibrary{\idxhdr{cstdio}}%
(\ref{c.files}).

\pnum
The header
\tcode{<iostream>}
Expand Down Expand Up @@ -8393,7 +8402,7 @@

\rSec1[file.streams]{File-based streams}

\rSec2[fstreams]{File streams}
\rSec2[fstreams]{Overview}

\pnum
The header
Expand Down Expand Up @@ -8440,23 +8449,14 @@
}
\end{codeblock}

\pnum
In this subclause, the type name \tcode{FILE} refers to
the type
\tcode{FILE}
declared in
\tcode{<cstdio>}
\indexlibrary{\idxhdr{cstdio}}%
(\ref{c.files}).

\pnum
\enternote The class template \tcode{basic_filebuf} treats a file as a source or
sink of bytes. In an environment that uses a large character set, the file
typically holds multibyte character sequences and the \tcode{basic_filebuf}
object converts those multibyte sequences into wide character sequences.
\exitnote

\rSec3[filebuf]{Class template \tcode{basic_filebuf}}
\rSec2[filebuf]{Class template \tcode{basic_filebuf}}

\indexlibrary{\idxcode{basic_filebuf}}%
\begin{codeblock}
Expand Down Expand Up @@ -9224,7 +9224,7 @@
the original contents of the file.
\end{itemdescr}

\rSec3[ifstream]{Class template \tcode{basic_ifstream}}
\rSec2[ifstream]{Class template \tcode{basic_ifstream}}

\indexlibrary{\idxcode{basic_ifstream}}%
\begin{codeblock}
Expand Down Expand Up @@ -9464,7 +9464,7 @@
\tcode{ios_base::failure}~(\ref{iostate.flags})).
\end{itemdescr}

\rSec3[ofstream]{Class template \tcode{basic_ofstream}}
\rSec2[ofstream]{Class template \tcode{basic_ofstream}}

\indexlibrary{\idxcode{basic_ofstream}}%
\begin{codeblock}
Expand Down Expand Up @@ -9701,7 +9701,7 @@
\effects calls \tcode{open(s.c_str(), mode);}
\end{itemdescr}

\rSec3[fstream]{Class template \tcode{basic_fstream}}
\rSec2[fstream]{Class template \tcode{basic_fstream}}

\indexlibrary{\idxcode{basic_fstream}}%
\begin{codeblock}
Expand Down Expand Up @@ -9947,7 +9947,7 @@
\tcode{ios_base::failure}).
\end{itemdescr}

\rSec2[c.files]{C library files}
\rSec1[c.files]{C library files}

\pnum
Table~\ref{tab:iostreams.hdr.cstdio} describes header \tcode{<cstdio>}.
Expand Down