tmp/tmppe7z4u17/{from.md → to.md}
RENAMED
|
@@ -3,12 +3,12 @@
|
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
template <class charT>
|
| 6 |
class numpunct : public locale::facet {
|
| 7 |
public:
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
| 11 |
explicit numpunct(size_t refs = 0);
|
| 12 |
|
| 13 |
char_type decimal_point() const;
|
| 14 |
char_type thousands_sep() const;
|
|
@@ -67,23 +67,23 @@ thousands-separators, no grouping constraint is applied.
|
|
| 67 |
|
| 68 |
``` cpp
|
| 69 |
char_type decimal_point() const;
|
| 70 |
```
|
| 71 |
|
| 72 |
-
*Returns:* `do_decimal_point()`
|
| 73 |
|
| 74 |
``` cpp
|
| 75 |
char_type thousands_sep() const;
|
| 76 |
```
|
| 77 |
|
| 78 |
-
*Returns:* `do_thousands_sep()`
|
| 79 |
|
| 80 |
``` cpp
|
| 81 |
string grouping() const;
|
| 82 |
```
|
| 83 |
|
| 84 |
-
*Returns:* `do_grouping()`
|
| 85 |
|
| 86 |
``` cpp
|
| 87 |
string_type truename() const;
|
| 88 |
string_type falsename() const;
|
| 89 |
```
|
|
@@ -110,14 +110,14 @@ required specializations return `’,’` or `L’,’`.
|
|
| 110 |
string do_grouping() const;
|
| 111 |
```
|
| 112 |
|
| 113 |
*Returns:* A basic_string\<char\> `vec` used as a vector of integer
|
| 114 |
values, in which each element `vec[i]` represents the number of
|
| 115 |
-
digits[^
|
| 116 |
the rightmost group. If `vec.size() <= i`, the number is the same as
|
| 117 |
-
group `(i-1)`; if `(i<0 || vec[i]<=0 || vec[i]==CHAR_MAX)`, the
|
| 118 |
-
the digit group is unlimited.
|
| 119 |
|
| 120 |
The required specializations return the empty string, indicating no
|
| 121 |
grouping.
|
| 122 |
|
| 123 |
``` cpp
|
|
|
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
template <class charT>
|
| 6 |
class numpunct : public locale::facet {
|
| 7 |
public:
|
| 8 |
+
using char_type = charT;
|
| 9 |
+
using string_type = basic_string<charT>;
|
| 10 |
|
| 11 |
explicit numpunct(size_t refs = 0);
|
| 12 |
|
| 13 |
char_type decimal_point() const;
|
| 14 |
char_type thousands_sep() const;
|
|
|
|
| 67 |
|
| 68 |
``` cpp
|
| 69 |
char_type decimal_point() const;
|
| 70 |
```
|
| 71 |
|
| 72 |
+
*Returns:* `do_decimal_point()`.
|
| 73 |
|
| 74 |
``` cpp
|
| 75 |
char_type thousands_sep() const;
|
| 76 |
```
|
| 77 |
|
| 78 |
+
*Returns:* `do_thousands_sep()`.
|
| 79 |
|
| 80 |
``` cpp
|
| 81 |
string grouping() const;
|
| 82 |
```
|
| 83 |
|
| 84 |
+
*Returns:* `do_grouping()`.
|
| 85 |
|
| 86 |
``` cpp
|
| 87 |
string_type truename() const;
|
| 88 |
string_type falsename() const;
|
| 89 |
```
|
|
|
|
| 110 |
string do_grouping() const;
|
| 111 |
```
|
| 112 |
|
| 113 |
*Returns:* A basic_string\<char\> `vec` used as a vector of integer
|
| 114 |
values, in which each element `vec[i]` represents the number of
|
| 115 |
+
digits[^13] in the group at position `i`, starting with position 0 as
|
| 116 |
the rightmost group. If `vec.size() <= i`, the number is the same as
|
| 117 |
+
group `(i - 1)`; if `(i < 0 || vec[i] <= 0 || vec[i] == CHAR_MAX)`, the
|
| 118 |
+
size of the digit group is unlimited.
|
| 119 |
|
| 120 |
The required specializations return the empty string, indicating no
|
| 121 |
grouping.
|
| 122 |
|
| 123 |
``` cpp
|