From Jason Turner

[facet.ctype.char.members]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp52qm_8qf/{from.md → to.md} +9 -15
tmp/tmp52qm_8qf/{from.md → to.md} RENAMED
@@ -1,37 +1,34 @@
1
- ##### `ctype<char>` members <a id="facet.ctype.char.members">[[facet.ctype.char.members]]</a>
2
 
3
  In the following member descriptions, for `unsigned char` values `v`
4
  where `v >= table_size`, `table()[v]` is assumed to have an
5
  implementation-specific value (possibly different for each such value
6
  `v`) without performing the array lookup.
7
 
8
  ``` cpp
9
- explicit ctype(const mask* tbl = 0, bool del = false,
10
- size_t refs = 0);
11
  ```
12
 
13
- *Requires:* `tbl` either 0 or an array of at least `table_size`
14
- elements.
15
 
16
  *Effects:* Passes its `refs` argument to its base class constructor.
17
 
18
  ``` cpp
19
  bool is(mask m, char c) const;
20
- const char* is(const char* low, const char* high,
21
- mask* vec) const;
22
  ```
23
 
24
  *Effects:* The second form, for all `*p` in the range \[`low`, `high`),
25
  assigns into `vec[p - low]` the value `table()[(unsigned char)*p]`.
26
 
27
  *Returns:* The first form returns `table()[(unsigned char)c] & m`; the
28
  second form returns `high`.
29
 
30
  ``` cpp
31
- const char* scan_is(mask m,
32
- const char* low, const char* high) const;
33
  ```
34
 
35
  *Returns:* The smallest `p` in the range \[`low`, `high`) such that
36
 
37
  ``` cpp
@@ -39,12 +36,11 @@ table()[(unsigned char) *p] & m
39
  ```
40
 
41
  is `true`.
42
 
43
  ``` cpp
44
- const char* scan_not(mask m,
45
- const char* low, const char* high) const;
46
  ```
47
 
48
  *Returns:* The smallest `p` in the range \[`low`, `high`) such that
49
 
50
  ``` cpp
@@ -67,20 +63,18 @@ const char* tolower(char* low, const char* high) const;
67
 
68
  *Returns:* `do_tolower(c)` or `do_tolower(low, high)`, respectively.
69
 
70
  ``` cpp
71
  char widen(char c) const;
72
- const char* widen(const char* low, const char* high,
73
- char* to) const;
74
  ```
75
 
76
  *Returns:* `do_widen(c)` or `do_widen(low, high, to)`, respectively.
77
 
78
  ``` cpp
79
  char narrow(char c, char dfault) const;
80
- const char* narrow(const char* low, const char* high,
81
- char dfault, char* to) const;
82
  ```
83
 
84
  *Returns:* `do_narrow(c, dfault)` or `do_narrow(low, high, dfault, to)`,
85
  respectively.
86
 
 
1
+ ##### Members <a id="facet.ctype.char.members">[[facet.ctype.char.members]]</a>
2
 
3
  In the following member descriptions, for `unsigned char` values `v`
4
  where `v >= table_size`, `table()[v]` is assumed to have an
5
  implementation-specific value (possibly different for each such value
6
  `v`) without performing the array lookup.
7
 
8
  ``` cpp
9
+ explicit ctype(const mask* tbl = nullptr, bool del = false, size_t refs = 0);
 
10
  ```
11
 
12
+ *Preconditions:* Either `tbl == nullptr` is `true` or \[`tbl`,
13
+ `tbl+table_size`) is a valid range.
14
 
15
  *Effects:* Passes its `refs` argument to its base class constructor.
16
 
17
  ``` cpp
18
  bool is(mask m, char c) const;
19
+ const char* is(const char* low, const char* high, mask* vec) const;
 
20
  ```
21
 
22
  *Effects:* The second form, for all `*p` in the range \[`low`, `high`),
23
  assigns into `vec[p - low]` the value `table()[(unsigned char)*p]`.
24
 
25
  *Returns:* The first form returns `table()[(unsigned char)c] & m`; the
26
  second form returns `high`.
27
 
28
  ``` cpp
29
+ const char* scan_is(mask m, const char* low, const char* high) const;
 
30
  ```
31
 
32
  *Returns:* The smallest `p` in the range \[`low`, `high`) such that
33
 
34
  ``` cpp
 
36
  ```
37
 
38
  is `true`.
39
 
40
  ``` cpp
41
+ const char* scan_not(mask m, const char* low, const char* high) const;
 
42
  ```
43
 
44
  *Returns:* The smallest `p` in the range \[`low`, `high`) such that
45
 
46
  ``` cpp
 
63
 
64
  *Returns:* `do_tolower(c)` or `do_tolower(low, high)`, respectively.
65
 
66
  ``` cpp
67
  char widen(char c) const;
68
+ const char* widen(const char* low, const char* high, char* to) const;
 
69
  ```
70
 
71
  *Returns:* `do_widen(c)` or `do_widen(low, high, to)`, respectively.
72
 
73
  ``` cpp
74
  char narrow(char c, char dfault) const;
75
+ const char* narrow(const char* low, const char* high, char dfault, char* to) const;
 
76
  ```
77
 
78
  *Returns:* `do_narrow(c, dfault)` or `do_narrow(low, high, dfault, to)`,
79
  respectively.
80