From Jason Turner

[category.collate]

Diff to HTML by rtfpessoa

tmp/tmpb_gkho3p/{from.md → to.md} RENAMED
@@ -1,10 +1,10 @@
1
- ### The collate category <a id="category.collate">[[category.collate]]</a>
2
 
3
- #### Class template `collate` <a id="locale.collate">[[locale.collate]]</a>
4
 
5
- ##### General <a id="locale.collate.general">[[locale.collate.general]]</a>
6
 
7
  ``` cpp
8
  namespace std {
9
  template<class charT>
10
  class collate : public locale::facet {
@@ -41,11 +41,11 @@ and `collate<wchar_t>`, apply lexicographical ordering
41
  [[alg.lex.comparison]].
42
 
43
  Each function compares a string of characters `*p` in the range \[`low`,
44
  `high`).
45
 
46
- ##### Members <a id="locale.collate.members">[[locale.collate.members]]</a>
47
 
48
  ``` cpp
49
  int compare(const charT* low1, const charT* high1,
50
  const charT* low2, const charT* high2) const;
51
  ```
@@ -62,11 +62,11 @@ string_type transform(const charT* low, const charT* high) const;
62
  long hash(const charT* low, const charT* high) const;
63
  ```
64
 
65
  *Returns:* `do_hash(low, high)`.
66
 
67
- ##### Virtual functions <a id="locale.collate.virtuals">[[locale.collate.virtuals]]</a>
68
 
69
  ``` cpp
70
  int do_compare(const charT* low1, const charT* high1,
71
  const charT* low2, const charT* high2) const;
72
  ```
@@ -96,11 +96,11 @@ the two strings.
96
 
97
  *Recommended practice:* The probability that the result equals that for
98
  another string which does not compare equal should be very small,
99
  approaching `(1.0/numeric_limits<unsigned long>::max())`.
100
 
101
- #### Class template `collate_byname` <a id="locale.collate.byname">[[locale.collate.byname]]</a>
102
 
103
  ``` cpp
104
  namespace std {
105
  template<class charT>
106
  class collate_byname : public collate<charT> {
 
1
+ #### The collate category <a id="category.collate">[[category.collate]]</a>
2
 
3
+ ##### Class template `collate` <a id="locale.collate">[[locale.collate]]</a>
4
 
5
+ ###### General <a id="locale.collate.general">[[locale.collate.general]]</a>
6
 
7
  ``` cpp
8
  namespace std {
9
  template<class charT>
10
  class collate : public locale::facet {
 
41
  [[alg.lex.comparison]].
42
 
43
  Each function compares a string of characters `*p` in the range \[`low`,
44
  `high`).
45
 
46
+ ###### Members <a id="locale.collate.members">[[locale.collate.members]]</a>
47
 
48
  ``` cpp
49
  int compare(const charT* low1, const charT* high1,
50
  const charT* low2, const charT* high2) const;
51
  ```
 
62
  long hash(const charT* low, const charT* high) const;
63
  ```
64
 
65
  *Returns:* `do_hash(low, high)`.
66
 
67
+ ###### Virtual functions <a id="locale.collate.virtuals">[[locale.collate.virtuals]]</a>
68
 
69
  ``` cpp
70
  int do_compare(const charT* low1, const charT* high1,
71
  const charT* low2, const charT* high2) const;
72
  ```
 
96
 
97
  *Recommended practice:* The probability that the result equals that for
98
  another string which does not compare equal should be very small,
99
  approaching `(1.0/numeric_limits<unsigned long>::max())`.
100
 
101
+ ##### Class template `collate_byname` <a id="locale.collate.byname">[[locale.collate.byname]]</a>
102
 
103
  ``` cpp
104
  namespace std {
105
  template<class charT>
106
  class collate_byname : public collate<charT> {