From Jason Turner

[locale.ctype.virtuals]

Diff to HTML by rtfpessoa

tmp/tmpmab16zwr/{from.md → to.md} RENAMED
@@ -1,11 +1,10 @@
1
  ##### `ctype` virtual functions <a id="locale.ctype.virtuals">[[locale.ctype.virtuals]]</a>
2
 
3
  ``` cpp
4
  bool do_is(mask m, charT c) const;
5
- const charT* do_is(const charT* low, const charT* high,
6
- mask* vec) const;
7
  ```
8
 
9
  *Effects:* Classifies a character or sequence of characters. For each
10
  argument character, identifies a value `M` of type `ctype_base::mask`.
11
  The second form identifies a value `M` of type `ctype_base::mask` for
@@ -63,18 +62,17 @@ which a corresponding lower-case character exists, with that character.
63
  if it is known to exist, or its argument if not. The second form returns
64
  `high`.
65
 
66
  ``` cpp
67
  charT do_widen(char c) const;
68
- const char* do_widen(const char* low, const char* high,
69
- charT* dest) const;
70
  ```
71
 
72
  *Effects:* Applies the simplest reasonable transformation from a `char`
73
  value or sequence of `char` values to the corresponding `charT` value or
74
  values.[^5] The only characters for which unique transformations are
75
- required are those in the basic source character set ([[lex.charset]]).
76
 
77
  For any named `ctype` category with a `ctype <charT>` facet `ctc` and
78
  valid `ctype_base::mask` value `M`,
79
  `(ctc.is(M, c) || !is(M, do_widen(c)) )` is `true`.[^6]
80
 
@@ -84,20 +82,19 @@ The second form transforms each character `*p` in the range \[`low`,
84
  *Returns:* The first form returns the transformed value. The second form
85
  returns `high`.
86
 
87
  ``` cpp
88
  char do_narrow(charT c, char dfault) const;
89
- const charT* do_narrow(const charT* low, const charT* high,
90
- char dfault, char* dest) const;
91
  ```
92
 
93
  *Effects:* Applies the simplest reasonable transformation from a `charT`
94
  value or sequence of `charT` values to the corresponding `char` value or
95
  values.
96
 
97
- For any character `c` in the basic source character
98
- set ([[lex.charset]]) the transformation is such that
99
 
100
  ``` cpp
101
  do_widen(do_narrow(c, 0)) == c
102
  ```
103
 
 
1
  ##### `ctype` virtual functions <a id="locale.ctype.virtuals">[[locale.ctype.virtuals]]</a>
2
 
3
  ``` cpp
4
  bool do_is(mask m, charT c) const;
5
+ const charT* do_is(const charT* low, const charT* high, mask* vec) const;
 
6
  ```
7
 
8
  *Effects:* Classifies a character or sequence of characters. For each
9
  argument character, identifies a value `M` of type `ctype_base::mask`.
10
  The second form identifies a value `M` of type `ctype_base::mask` for
 
62
  if it is known to exist, or its argument if not. The second form returns
63
  `high`.
64
 
65
  ``` cpp
66
  charT do_widen(char c) const;
67
+ const char* do_widen(const char* low, const char* high, charT* dest) const;
 
68
  ```
69
 
70
  *Effects:* Applies the simplest reasonable transformation from a `char`
71
  value or sequence of `char` values to the corresponding `charT` value or
72
  values.[^5] The only characters for which unique transformations are
73
+ required are those in the basic source character set [[lex.charset]].
74
 
75
  For any named `ctype` category with a `ctype <charT>` facet `ctc` and
76
  valid `ctype_base::mask` value `M`,
77
  `(ctc.is(M, c) || !is(M, do_widen(c)) )` is `true`.[^6]
78
 
 
82
  *Returns:* The first form returns the transformed value. The second form
83
  returns `high`.
84
 
85
  ``` cpp
86
  char do_narrow(charT c, char dfault) const;
87
+ const charT* do_narrow(const charT* low, const charT* high, char dfault, char* dest) const;
 
88
  ```
89
 
90
  *Effects:* Applies the simplest reasonable transformation from a `charT`
91
  value or sequence of `charT` values to the corresponding `char` value or
92
  values.
93
 
94
+ For any character `c` in the basic source character set [[lex.charset]]
95
+ the transformation is such that
96
 
97
  ``` cpp
98
  do_widen(do_narrow(c, 0)) == c
99
  ```
100