From Jason Turner

[facet.numpunct]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmph78e3ctj/{from.md → to.md} +11 -10
tmp/tmph78e3ctj/{from.md → to.md} RENAMED
@@ -5,12 +5,12 @@
5
  ``` cpp
6
  namespace std {
7
  template <class charT>
8
  class numpunct : public locale::facet {
9
  public:
10
- typedef charT char_type;
11
- typedef basic_string<charT> string_type;
12
 
13
  explicit numpunct(size_t refs = 0);
14
 
15
  char_type decimal_point() const;
16
  char_type thousands_sep() const;
@@ -69,23 +69,23 @@ thousands-separators, no grouping constraint is applied.
69
 
70
  ``` cpp
71
  char_type decimal_point() const;
72
  ```
73
 
74
- *Returns:* `do_decimal_point()`
75
 
76
  ``` cpp
77
  char_type thousands_sep() const;
78
  ```
79
 
80
- *Returns:* `do_thousands_sep()`
81
 
82
  ``` cpp
83
  string grouping() const;
84
  ```
85
 
86
- *Returns:* `do_grouping()`
87
 
88
  ``` cpp
89
  string_type truename() const;
90
  string_type falsename() const;
91
  ```
@@ -112,14 +112,14 @@ required specializations return `’,’` or `L’,’`.
112
  string do_grouping() const;
113
  ```
114
 
115
  *Returns:* A basic_string\<char\> `vec` used as a vector of integer
116
  values, in which each element `vec[i]` represents the number of
117
- digits[^12] in the group at position `i`, starting with position 0 as
118
  the rightmost group. If `vec.size() <= i`, the number is the same as
119
- group `(i-1)`; if `(i<0 || vec[i]<=0 || vec[i]==CHAR_MAX)`, the size of
120
- the digit group is unlimited.
121
 
122
  The required specializations return the empty string, indicating no
123
  grouping.
124
 
125
  ``` cpp
@@ -139,12 +139,13 @@ or `L"true"` and `L"false"`.
139
  namespace std {
140
  template <class charT>
141
  class numpunct_byname : public numpunct<charT> {
142
  // this class is specialized for char and wchar_t.
143
  public:
144
- typedef charT char_type;
145
- typedef basic_string<charT> string_type;
 
146
  explicit numpunct_byname(const char*, size_t refs = 0);
147
  explicit numpunct_byname(const string&, size_t refs = 0);
148
  protected:
149
  ~numpunct_byname();
150
  };
 
5
  ``` cpp
6
  namespace std {
7
  template <class charT>
8
  class numpunct : public locale::facet {
9
  public:
10
+ using char_type = charT;
11
+ using string_type = basic_string<charT>;
12
 
13
  explicit numpunct(size_t refs = 0);
14
 
15
  char_type decimal_point() const;
16
  char_type thousands_sep() const;
 
69
 
70
  ``` cpp
71
  char_type decimal_point() const;
72
  ```
73
 
74
+ *Returns:* `do_decimal_point()`.
75
 
76
  ``` cpp
77
  char_type thousands_sep() const;
78
  ```
79
 
80
+ *Returns:* `do_thousands_sep()`.
81
 
82
  ``` cpp
83
  string grouping() const;
84
  ```
85
 
86
+ *Returns:* `do_grouping()`.
87
 
88
  ``` cpp
89
  string_type truename() const;
90
  string_type falsename() const;
91
  ```
 
112
  string do_grouping() const;
113
  ```
114
 
115
  *Returns:* A basic_string\<char\> `vec` used as a vector of integer
116
  values, in which each element `vec[i]` represents the number of
117
+ digits[^13] in the group at position `i`, starting with position 0 as
118
  the rightmost group. If `vec.size() <= i`, the number is the same as
119
+ group `(i - 1)`; if `(i < 0 || vec[i] <= 0 || vec[i] == CHAR_MAX)`, the
120
+ size of the digit group is unlimited.
121
 
122
  The required specializations return the empty string, indicating no
123
  grouping.
124
 
125
  ``` cpp
 
139
  namespace std {
140
  template <class charT>
141
  class numpunct_byname : public numpunct<charT> {
142
  // this class is specialized for char and wchar_t.
143
  public:
144
+ using char_type = charT;
145
+ using string_type = basic_string<charT>;
146
+
147
  explicit numpunct_byname(const char*, size_t refs = 0);
148
  explicit numpunct_byname(const string&, size_t refs = 0);
149
  protected:
150
  ~numpunct_byname();
151
  };