From Jason Turner

[locale.numpunct]

Diff to HTML by rtfpessoa

tmp/tmptf8g6qnw/{from.md → to.md} RENAMED
@@ -1,7 +1,9 @@
1
  #### Class template `numpunct` <a id="locale.numpunct">[[locale.numpunct]]</a>
2
 
 
 
3
  ``` cpp
4
  namespace std {
5
  template<class charT>
6
  class numpunct : public locale::facet {
7
  public:
@@ -27,14 +29,12 @@ namespace std {
27
  virtual string_type do_falsename() const; // for bool
28
  };
29
  }
30
  ```
31
 
32
- `numpunct<>`
33
-
34
- specifies numeric punctuation. The specializations required in
35
- [[locale.category.facets]] [[locale.category]], namely
36
  `numpunct<{}wchar_t>` and `numpunct<char>`, provide classic `"C"`
37
  numeric formats, i.e., they contain information equivalent to that
38
  contained in the `"C"` locale or their wide character counterparts as if
39
  obtained by a call to `widen`.
40
 
@@ -139,14 +139,15 @@ required specializations return `’,’` or `L’,’`.
139
  ``` cpp
140
  string do_grouping() const;
141
  ```
142
 
143
  *Returns:* A `string` `vec` used as a vector of integer values, in which
144
- each element `vec[i]` represents the number of digits[^13] in the group
145
- at position `i`, starting with position 0 as the rightmost group. If
146
- `vec.size() <= i`, the number is the same as group `(i - 1)`; if
147
- `(i < 0 || vec[i] <= 0 || vec[i] == CHAR_MAX)`, the size of the digit
 
148
  group is unlimited.
149
 
150
  The required specializations return the empty string, indicating no
151
  grouping.
152
 
 
1
  #### Class template `numpunct` <a id="locale.numpunct">[[locale.numpunct]]</a>
2
 
3
+ ##### General <a id="locale.numpunct.general">[[locale.numpunct.general]]</a>
4
+
5
  ``` cpp
6
  namespace std {
7
  template<class charT>
8
  class numpunct : public locale::facet {
9
  public:
 
29
  virtual string_type do_falsename() const; // for bool
30
  };
31
  }
32
  ```
33
 
34
+ `numpunct<>` specifies numeric punctuation. The specializations required
35
+ in [[locale.category.facets]] [[locale.category]], namely
 
 
36
  `numpunct<{}wchar_t>` and `numpunct<char>`, provide classic `"C"`
37
  numeric formats, i.e., they contain information equivalent to that
38
  contained in the `"C"` locale or their wide character counterparts as if
39
  obtained by a call to `widen`.
40
 
 
139
  ``` cpp
140
  string do_grouping() const;
141
  ```
142
 
143
  *Returns:* A `string` `vec` used as a vector of integer values, in which
144
+ each element `vec[i]` represents the number of digits[^13]
145
+
146
+ in the group at position `i`, starting with position 0 as the rightmost
147
+ group. If `vec.size() <= i`, the number is the same as group `(i - 1)`;
148
+ if `(i < 0 || vec[i] <= 0 || vec[i] == CHAR_MAX)`, the size of the digit
149
  group is unlimited.
150
 
151
  The required specializations return the empty string, indicating no
152
  grouping.
153