tmp/tmp4utdggpw/{from.md → to.md}
RENAMED
|
@@ -64,11 +64,11 @@ namespace std {
|
|
| 64 |
```
|
| 65 |
|
| 66 |
The facet `num_get` is used to parse numeric values from an input
|
| 67 |
sequence such as an istream.
|
| 68 |
|
| 69 |
-
#####
|
| 70 |
|
| 71 |
``` cpp
|
| 72 |
iter_type get(iter_type in, iter_type end, ios_base& str,
|
| 73 |
ios_base::iostate& err, bool& val) const;
|
| 74 |
iter_type get(iter_type in, iter_type end, ios_base& str,
|
|
@@ -93,11 +93,11 @@ iter_type get(iter_type in, iter_type end, ios_base& str,
|
|
| 93 |
ios_base::iostate& err, void*& val) const;
|
| 94 |
```
|
| 95 |
|
| 96 |
*Returns:* `do_get(in, end, str, err, val)`.
|
| 97 |
|
| 98 |
-
#####
|
| 99 |
|
| 100 |
``` cpp
|
| 101 |
iter_type do_get(iter_type in, iter_type end, ios_base& str,
|
| 102 |
ios_base::iostate& err, long& val) const;
|
| 103 |
iter_type do_get(iter_type in, iter_type end, ios_base& str,
|
|
@@ -144,32 +144,32 @@ fmtflags basefield = (flags & ios_base::basefield);
|
|
| 144 |
fmtflags uppercase = (flags & ios_base::uppercase);
|
| 145 |
fmtflags boolalpha = (flags & ios_base::boolalpha);
|
| 146 |
```
|
| 147 |
|
| 148 |
For conversion to an integral type, the function determines the integral
|
| 149 |
-
conversion specifier as indicated in
|
| 150 |
-
|
| 151 |
-
|
| 152 |
|
| 153 |
-
**Table: Integer conversions** <a id="
|
| 154 |
|
| 155 |
| State | `stdio` equivalent |
|
| 156 |
| ------------------------ | ------------------ |
|
| 157 |
| `basefield == oct` | `%o` |
|
| 158 |
| `basefield == hex` | `%X` |
|
| 159 |
| `basefield == 0` | `%i` `signed` integral type | `%d` |
|
| 160 |
| `unsigned` integral type | `%u` |
|
| 161 |
|
| 162 |
|
| 163 |
-
For conversions to a floating type the specifier is `%g`.
|
| 164 |
|
| 165 |
For conversions to `void*` the specifier is `%p`.
|
| 166 |
|
| 167 |
A length modifier is added to the conversion specification, if needed,
|
| 168 |
-
as indicated in
|
| 169 |
|
| 170 |
-
**Table: Length modifier** <a id="
|
| 171 |
|
| 172 |
| Type | Length modifier |
|
| 173 |
| -------------------- | --------------- |
|
| 174 |
| `short` | `h` |
|
| 175 |
| `unsigned short` | `h` |
|
|
|
|
| 64 |
```
|
| 65 |
|
| 66 |
The facet `num_get` is used to parse numeric values from an input
|
| 67 |
sequence such as an istream.
|
| 68 |
|
| 69 |
+
##### Members <a id="facet.num.get.members">[[facet.num.get.members]]</a>
|
| 70 |
|
| 71 |
``` cpp
|
| 72 |
iter_type get(iter_type in, iter_type end, ios_base& str,
|
| 73 |
ios_base::iostate& err, bool& val) const;
|
| 74 |
iter_type get(iter_type in, iter_type end, ios_base& str,
|
|
|
|
| 93 |
ios_base::iostate& err, void*& val) const;
|
| 94 |
```
|
| 95 |
|
| 96 |
*Returns:* `do_get(in, end, str, err, val)`.
|
| 97 |
|
| 98 |
+
##### Virtual functions <a id="facet.num.get.virtuals">[[facet.num.get.virtuals]]</a>
|
| 99 |
|
| 100 |
``` cpp
|
| 101 |
iter_type do_get(iter_type in, iter_type end, ios_base& str,
|
| 102 |
ios_base::iostate& err, long& val) const;
|
| 103 |
iter_type do_get(iter_type in, iter_type end, ios_base& str,
|
|
|
|
| 144 |
fmtflags uppercase = (flags & ios_base::uppercase);
|
| 145 |
fmtflags boolalpha = (flags & ios_base::boolalpha);
|
| 146 |
```
|
| 147 |
|
| 148 |
For conversion to an integral type, the function determines the integral
|
| 149 |
+
conversion specifier as indicated in [[facet.num.get.int]]. The
|
| 150 |
+
table is ordered. That is, the first line whose condition is true
|
| 151 |
+
applies.
|
| 152 |
|
| 153 |
+
**Table: Integer conversions** <a id="facet.num.get.int">[facet.num.get.int]</a>
|
| 154 |
|
| 155 |
| State | `stdio` equivalent |
|
| 156 |
| ------------------------ | ------------------ |
|
| 157 |
| `basefield == oct` | `%o` |
|
| 158 |
| `basefield == hex` | `%X` |
|
| 159 |
| `basefield == 0` | `%i` `signed` integral type | `%d` |
|
| 160 |
| `unsigned` integral type | `%u` |
|
| 161 |
|
| 162 |
|
| 163 |
+
For conversions to a floating-point type the specifier is `%g`.
|
| 164 |
|
| 165 |
For conversions to `void*` the specifier is `%p`.
|
| 166 |
|
| 167 |
A length modifier is added to the conversion specification, if needed,
|
| 168 |
+
as indicated in [[facet.num.get.length]].
|
| 169 |
|
| 170 |
+
**Table: Length modifier** <a id="facet.num.get.length">[facet.num.get.length]</a>
|
| 171 |
|
| 172 |
| Type | Length modifier |
|
| 173 |
| -------------------- | --------------- |
|
| 174 |
| `short` | `h` |
|
| 175 |
| `unsigned short` | `h` |
|