From Jason Turner

[filebuf.virtuals]

Diff to HTML by rtfpessoa

tmp/tmpehg1zywf/{from.md → to.md} RENAMED
@@ -2,12 +2,12 @@
2
 
3
  ``` cpp
4
  streamsize showmanyc() override;
5
  ```
6
 
7
- *Effects:* Behaves the same as
8
- `basic_streambuf::showmanyc()` ([[streambuf.virtuals]]).
9
 
10
  *Remarks:* An implementation might well provide an overriding definition
11
  for this function signature if it can determine that more characters can
12
  be read from the input sequence.
13
 
@@ -64,11 +64,11 @@ sequence, if possible, in one of three ways:
64
  either the input sequence has a putback position available or the
65
  function makes a putback position available, decrements the next
66
  pointer for the input sequence, `gptr()`. Returns:
67
  `traits::not_eof(c)`.
68
 
69
- *Returns:* `traits::eof()` to indicate failure.
70
 
71
  *Remarks:* If `is_open() == false`, the function always fails.
72
 
73
  The function does not put back a character directly to the input
74
  sequence.
@@ -138,13 +138,13 @@ and write any unshift sequence. Next, seek to the new position: if
138
  operation was overflow or the put buffer is non-empty. “Write any
139
  unshift sequence” means, if `width` if less than zero then call
140
  `a_codecvt.unshift(state, xbuf, xbuf+XSIZE, xbuf_end)` and output the
141
  resulting unshift sequence. The function determines one of three values
142
  for the argument `whence`, of type `int`, as indicated in
143
- Table  [[tab:iostreams.seekoff.effects]].
144
 
145
- **Table: `seekoff` effects** <a id="tab:iostreams.seekoff.effects">[tab:iostreams.seekoff.effects]</a>
146
 
147
  | `way` Value | `stdio` Equivalent |
148
  | ---------------- | ------------------ |
149
  | `basic_ios::beg` | `SEEK_SET` |
150
  | `basic_ios::cur` | `SEEK_CUR` |
@@ -193,13 +193,13 @@ characters to the file, then flushes the file as if by calling
193
 
194
  ``` cpp
195
  void imbue(const locale& loc) override;
196
  ```
197
 
198
- *Requires:* If the file is not positioned at its beginning and the
199
  encoding of the current locale as determined by `a_codecvt.encoding()`
200
- is state-dependent ([[locale.codecvt.virtuals]]) then that facet is the
201
  same as the corresponding facet of `loc`.
202
 
203
  *Effects:* Causes characters inserted or extracted after this call to be
204
  converted according to `loc` until another call of `imbue`.
205
 
 
2
 
3
  ``` cpp
4
  streamsize showmanyc() override;
5
  ```
6
 
7
+ *Effects:* Behaves the same as `basic_streambuf::showmanyc()`
8
+ [[streambuf.virtuals]].
9
 
10
  *Remarks:* An implementation might well provide an overriding definition
11
  for this function signature if it can determine that more characters can
12
  be read from the input sequence.
13
 
 
64
  either the input sequence has a putback position available or the
65
  function makes a putback position available, decrements the next
66
  pointer for the input sequence, `gptr()`. Returns:
67
  `traits::not_eof(c)`.
68
 
69
+ *Returns:* As specified above, or `traits::eof()` to indicate failure.
70
 
71
  *Remarks:* If `is_open() == false`, the function always fails.
72
 
73
  The function does not put back a character directly to the input
74
  sequence.
 
138
  operation was overflow or the put buffer is non-empty. “Write any
139
  unshift sequence” means, if `width` if less than zero then call
140
  `a_codecvt.unshift(state, xbuf, xbuf+XSIZE, xbuf_end)` and output the
141
  resulting unshift sequence. The function determines one of three values
142
  for the argument `whence`, of type `int`, as indicated in
143
+ [[filebuf.seekoff]].
144
 
145
+ **Table: `seekoff` effects** <a id="filebuf.seekoff">[filebuf.seekoff]</a>
146
 
147
  | `way` Value | `stdio` Equivalent |
148
  | ---------------- | ------------------ |
149
  | `basic_ios::beg` | `SEEK_SET` |
150
  | `basic_ios::cur` | `SEEK_CUR` |
 
193
 
194
  ``` cpp
195
  void imbue(const locale& loc) override;
196
  ```
197
 
198
+ *Preconditions:* If the file is not positioned at its beginning and the
199
  encoding of the current locale as determined by `a_codecvt.encoding()`
200
+ is state-dependent [[locale.codecvt.virtuals]] then that facet is the
201
  same as the corresponding facet of `loc`.
202
 
203
  *Effects:* Causes characters inserted or extracted after this call to be
204
  converted according to `loc` until another call of `imbue`.
205