tmp/tmps39e8hmb/{from.md → to.md}
RENAMED
|
@@ -4,11 +4,11 @@
|
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
locale pubimbue(const locale& loc);
|
| 7 |
```
|
| 8 |
|
| 9 |
-
`loc == getloc()`.
|
| 10 |
|
| 11 |
*Effects:* Calls `imbue(loc)`.
|
| 12 |
|
| 13 |
*Returns:* Previous value of `getloc()`.
|
| 14 |
|
|
@@ -23,25 +23,27 @@ been called but before `pubimbue` has returned (i.e., from within the
|
|
| 23 |
call of `imbue()`) then it returns the previous value.
|
| 24 |
|
| 25 |
##### Buffer management and positioning <a id="streambuf.buffer">[[streambuf.buffer]]</a>
|
| 26 |
|
| 27 |
``` cpp
|
| 28 |
-
basic_streambuf
|
| 29 |
```
|
| 30 |
|
| 31 |
*Returns:* `setbuf(s, n)`.
|
| 32 |
|
| 33 |
``` cpp
|
| 34 |
pos_type pubseekoff(off_type off, ios_base::seekdir way,
|
| 35 |
-
|
|
|
|
| 36 |
```
|
| 37 |
|
| 38 |
*Returns:* `seekoff(off, way, which)`.
|
| 39 |
|
| 40 |
``` cpp
|
| 41 |
pos_type pubseekpos(pos_type sp,
|
| 42 |
-
|
|
|
|
| 43 |
```
|
| 44 |
|
| 45 |
*Returns:* `seekpos(sp, which)`.
|
| 46 |
|
| 47 |
``` cpp
|
|
@@ -94,11 +96,11 @@ streamsize sgetn(char_type* s, streamsize n);
|
|
| 94 |
``` cpp
|
| 95 |
int_type sputbackc(char_type c);
|
| 96 |
```
|
| 97 |
|
| 98 |
*Returns:* If the input sequence putback position is not available, or
|
| 99 |
-
if `traits::eq(c,gptr()[-1])` is false, returns
|
| 100 |
`pbackfail(traits::to_int_type(c))`. Otherwise, decrements the next
|
| 101 |
pointer for the input sequence and returns
|
| 102 |
`traits::to_int_type(*gptr())`.
|
| 103 |
|
| 104 |
``` cpp
|
|
|
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
locale pubimbue(const locale& loc);
|
| 7 |
```
|
| 8 |
|
| 9 |
+
*Postconditions:* `loc == getloc()`.
|
| 10 |
|
| 11 |
*Effects:* Calls `imbue(loc)`.
|
| 12 |
|
| 13 |
*Returns:* Previous value of `getloc()`.
|
| 14 |
|
|
|
|
| 23 |
call of `imbue()`) then it returns the previous value.
|
| 24 |
|
| 25 |
##### Buffer management and positioning <a id="streambuf.buffer">[[streambuf.buffer]]</a>
|
| 26 |
|
| 27 |
``` cpp
|
| 28 |
+
basic_streambuf* pubsetbuf(char_type* s, streamsize n);
|
| 29 |
```
|
| 30 |
|
| 31 |
*Returns:* `setbuf(s, n)`.
|
| 32 |
|
| 33 |
``` cpp
|
| 34 |
pos_type pubseekoff(off_type off, ios_base::seekdir way,
|
| 35 |
+
ios_base::openmode which
|
| 36 |
+
= ios_base::in | ios_base::out);
|
| 37 |
```
|
| 38 |
|
| 39 |
*Returns:* `seekoff(off, way, which)`.
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
pos_type pubseekpos(pos_type sp,
|
| 43 |
+
ios_base::openmode which
|
| 44 |
+
= ios_base::in | ios_base::out);
|
| 45 |
```
|
| 46 |
|
| 47 |
*Returns:* `seekpos(sp, which)`.
|
| 48 |
|
| 49 |
``` cpp
|
|
|
|
| 96 |
``` cpp
|
| 97 |
int_type sputbackc(char_type c);
|
| 98 |
```
|
| 99 |
|
| 100 |
*Returns:* If the input sequence putback position is not available, or
|
| 101 |
+
if `traits::eq(c, gptr()[-1])` is `false`, returns
|
| 102 |
`pbackfail(traits::to_int_type(c))`. Otherwise, decrements the next
|
| 103 |
pointer for the input sequence and returns
|
| 104 |
`traits::to_int_type(*gptr())`.
|
| 105 |
|
| 106 |
``` cpp
|