From Jason Turner

[facet.numpunct]

Diff to HTML by rtfpessoa

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