tmp/tmpdtwnuvg2/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
#####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
dateorder do_date_order() const;
|
| 5 |
```
|
| 6 |
|
|
@@ -30,14 +30,13 @@ iter_type do_get_date(iter_type s, iter_type end, ios_base& str,
|
|
| 30 |
|
| 31 |
*Effects:* Reads characters starting at `s` until it has extracted those
|
| 32 |
`struct tm` members and remaining format characters used by
|
| 33 |
`time_put<>::put` to produce one of the following formats, or until it
|
| 34 |
encounters an error. The format depends on the value returned by
|
| 35 |
-
`date_order()` as shown in
|
| 36 |
-
Table [[tab:lib.locale.time.get.virtuals.dogetdate]].
|
| 37 |
|
| 38 |
-
**Table: `do_get_date` effects** <a id="
|
| 39 |
|
| 40 |
| `date_order()` | Format |
|
| 41 |
| -------------- | ---------- |
|
| 42 |
| `no_order` | `"%m%d%y"` |
|
| 43 |
| `dmy` | `"%d%m%y"` |
|
|
@@ -84,11 +83,11 @@ recognized as part of a valid year identifier.
|
|
| 84 |
``` cpp
|
| 85 |
iter_type do_get(iter_type s, iter_type end, ios_base& f,
|
| 86 |
ios_base::iostate& err, tm* t, char format, char modifier) const;
|
| 87 |
```
|
| 88 |
|
| 89 |
-
*
|
| 90 |
|
| 91 |
*Effects:* The function starts by evaluating `err = ios_base::goodbit`.
|
| 92 |
It then reads characters starting at `s` until it encounters an error,
|
| 93 |
or until it has extracted and assigned those `struct tm` members, and
|
| 94 |
any remaining format characters, corresponding to a conversion directive
|
|
@@ -108,11 +107,11 @@ members from the input sequence \[`s`, `end`), it evaluates
|
|
| 108 |
members are unspecified and may be outside their valid range.
|
| 109 |
|
| 110 |
*Remarks:* It is unspecified whether multiple calls to `do_get()` with
|
| 111 |
the address of the same `struct tm` object will update the current
|
| 112 |
contents of the object or simply overwrite its members. Portable
|
| 113 |
-
programs
|
| 114 |
|
| 115 |
*Returns:* An iterator pointing immediately beyond the last character
|
| 116 |
recognized as possibly part of a valid input sequence for the given
|
| 117 |
`format` and `modifier`.
|
| 118 |
|
|
|
|
| 1 |
+
##### Virtual functions <a id="locale.time.get.virtuals">[[locale.time.get.virtuals]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
dateorder do_date_order() const;
|
| 5 |
```
|
| 6 |
|
|
|
|
| 30 |
|
| 31 |
*Effects:* Reads characters starting at `s` until it has extracted those
|
| 32 |
`struct tm` members and remaining format characters used by
|
| 33 |
`time_put<>::put` to produce one of the following formats, or until it
|
| 34 |
encounters an error. The format depends on the value returned by
|
| 35 |
+
`date_order()` as shown in [[locale.time.get.dogetdate]].
|
|
|
|
| 36 |
|
| 37 |
+
**Table: `do_get_date` effects** <a id="locale.time.get.dogetdate">[locale.time.get.dogetdate]</a>
|
| 38 |
|
| 39 |
| `date_order()` | Format |
|
| 40 |
| -------------- | ---------- |
|
| 41 |
| `no_order` | `"%m%d%y"` |
|
| 42 |
| `dmy` | `"%d%m%y"` |
|
|
|
|
| 83 |
``` cpp
|
| 84 |
iter_type do_get(iter_type s, iter_type end, ios_base& f,
|
| 85 |
ios_base::iostate& err, tm* t, char format, char modifier) const;
|
| 86 |
```
|
| 87 |
|
| 88 |
+
*Preconditions:* `t` points to an object.
|
| 89 |
|
| 90 |
*Effects:* The function starts by evaluating `err = ios_base::goodbit`.
|
| 91 |
It then reads characters starting at `s` until it encounters an error,
|
| 92 |
or until it has extracted and assigned those `struct tm` members, and
|
| 93 |
any remaining format characters, corresponding to a conversion directive
|
|
|
|
| 107 |
members are unspecified and may be outside their valid range.
|
| 108 |
|
| 109 |
*Remarks:* It is unspecified whether multiple calls to `do_get()` with
|
| 110 |
the address of the same `struct tm` object will update the current
|
| 111 |
contents of the object or simply overwrite its members. Portable
|
| 112 |
+
programs should zero out the object before invoking the function.
|
| 113 |
|
| 114 |
*Returns:* An iterator pointing immediately beyond the last character
|
| 115 |
recognized as possibly part of a valid input sequence for the given
|
| 116 |
`format` and `modifier`.
|
| 117 |
|