Skip to content

Commit fcd5b78

Browse files
jensmaurerzygoloid
authored andcommitted
[stringbuf] Use phrases from [bitmask.types].
1 parent 4a222ea commit fcd5b78

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

source/iostreams.tex

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8036,15 +8036,14 @@
80368036

80378037
\pnum
80388038
The function can make a write position available only if
8039-
\tcode{(mode \& ios_base::out) != 0}.
8039+
\tcode{ios_base::out} is set in \tcode{mode}.
80408040
To make a write position available,
80418041
the function reallocates (or initially allocates) an array object
80428042
with a sufficient number of elements to hold
80438043
the current array object (if any), plus
80448044
at least
80458045
one additional write position.
8046-
If
8047-
\tcode{(mode \& ios_base::in) != 0},
8046+
If \tcode{ios_base::in} is set in \tcode{mode},
80488047
the function alters the read end pointer
80498048
\tcode{egptr()}
80508049
to point just past the new write position.
@@ -8065,15 +8064,12 @@
80658064

80668065
\begin{libtab2}{\tcode{seekoff} positioning}{stringbuf.seekoff.pos}
80678066
{p{2.5in}l}{Conditions}{Result}
8068-
\tcode{(which \& ios_base::in)}\tcode{ == ios_base::in} &
8067+
\tcode{ios_base::in} is set in \tcode{which} &
80698068
positions the input sequence \\ \rowsep
8070-
\tcode{(which \& ios_base::out)}\tcode{ == ios_base::out} &
8069+
\tcode{ios_base::out} is set in \tcode{which} &
80718070
positions the output sequence \\ \rowsep
8072-
\tcode{(which \& (ios_base::in |}\br
8073-
\tcode{ios_base::out)) ==}\br
8074-
\tcode{(ios_base::in |}\br
8075-
\tcode{ios_base::out)}\br
8076-
and either\br
8071+
both \tcode{ios_base::in} and \tcode{ios_base::out} are
8072+
set in \tcode{which} and either\br
80778073
\tcode{way == ios_base::beg} or\br
80788074
\tcode{way == ios_base::end} &
80798075
positions both the input and the output sequences \\ \rowsep
@@ -9492,7 +9488,7 @@
94929488

94939489
\pnum
94949490
If the open operation succeeds and
9495-
\tcode{(mode \& ios_base::ate) != 0},
9491+
\tcode{ios_base::ate} is set in \tcode{mode},
94969492
positions the file to the end
94979493
(as if by calling \tcode{fseek(file, 0, SEEK_END)}, where
94989494
\tcode{file} is the pointer returned by calling \tcode{fopen}).%

0 commit comments

Comments
 (0)