From Jason Turner

[filebuf.virtuals]

Diff to HTML by rtfpessoa

tmp/tmp89wa15ku/{from.md → to.md} RENAMED
@@ -5,12 +5,12 @@ 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
 
14
  ``` cpp
15
  int_type underflow() override;
16
  ```
@@ -132,10 +132,15 @@ operation fails. Otherwise, if `way != basic_ios::cur` or `off != 0`,
132
  and if the last operation was output, then update the output sequence
133
  and write any unshift sequence. Next, seek to the new position: if
134
  `width > 0`, call `fseek(file, width * off, whence)`, otherwise call
135
  `fseek(file, 0, whence)`.
136
 
 
 
 
 
 
137
  *Remarks:* “The last operation was output” means either the last virtual
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
@@ -148,16 +153,10 @@ for the argument `whence`, of type `int`, as indicated in
148
  | ---------------- | ------------------ |
149
  | `basic_ios::beg` | `SEEK_SET` |
150
  | `basic_ios::cur` | `SEEK_CUR` |
151
  | `basic_ios::end` | `SEEK_END` |
152
 
153
-
154
- *Returns:* A newly constructed `pos_type` object that stores the
155
- resultant stream position, if possible. If the positioning operation
156
- fails, or if the object cannot represent the resultant stream position,
157
- returns `pos_type(off_type(-1))`.
158
-
159
  ``` cpp
160
  pos_type seekpos(pos_type sp,
161
  ios_base::openmode which
162
  = ios_base::in | ios_base::out) override;
163
  ```
 
5
  ```
6
 
7
  *Effects:* Behaves the same as `basic_streambuf::showmanyc()`
8
  [[streambuf.virtuals]].
9
 
10
+ *Remarks:* An implementation may provide an overriding definition for
11
+ this function signature if it can determine whether more characters can
12
  be read from the input sequence.
13
 
14
  ``` cpp
15
  int_type underflow() override;
16
  ```
 
132
  and if the last operation was output, then update the output sequence
133
  and write any unshift sequence. Next, seek to the new position: if
134
  `width > 0`, call `fseek(file, width * off, whence)`, otherwise call
135
  `fseek(file, 0, whence)`.
136
 
137
+ *Returns:* A newly constructed `pos_type` object that stores the
138
+ resultant stream position, if possible. If the positioning operation
139
+ fails, or if the object cannot represent the resultant stream position,
140
+ returns `pos_type(off_type(-1))`.
141
+
142
  *Remarks:* “The last operation was output” means either the last virtual
143
  operation was overflow or the put buffer is non-empty. “Write any
144
  unshift sequence” means, if `width` if less than zero then call
145
  `a_codecvt.unshift(state, xbuf, xbuf+XSIZE, xbuf_end)` and output the
146
  resulting unshift sequence. The function determines one of three values
 
153
  | ---------------- | ------------------ |
154
  | `basic_ios::beg` | `SEEK_SET` |
155
  | `basic_ios::cur` | `SEEK_CUR` |
156
  | `basic_ios::end` | `SEEK_END` |
157
 
 
 
 
 
 
 
158
  ``` cpp
159
  pos_type seekpos(pos_type sp,
160
  ios_base::openmode which
161
  = ios_base::in | ios_base::out) override;
162
  ```