From Jason Turner

[locale.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpbo868hyz/{from.md → to.md} +10 -6
tmp/tmpbo868hyz/{from.md → to.md} RENAMED
@@ -1,45 +1,49 @@
1
- #### General <a id="locale.general">[[locale.general]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
  class locale {
6
  public:
7
- // types
 
8
  class facet;
 
9
  class id;
 
10
  using category = int;
11
  static const category // values assigned here are for exposition only
12
  none = 0,
13
  collate = 0x010, ctype = 0x020,
14
  monetary = 0x040, numeric = 0x080,
15
  time = 0x100, messages = 0x200,
16
  all = collate | ctype | monetary | numeric | time | messages;
17
 
18
- // construct/copy/destroy
19
  locale() noexcept;
20
  locale(const locale& other) noexcept;
21
  explicit locale(const char* std_name);
22
  explicit locale(const string& std_name);
23
  locale(const locale& other, const char* std_name, category);
24
  locale(const locale& other, const string& std_name, category);
25
  template<class Facet> locale(const locale& other, Facet* f);
26
  locale(const locale& other, const locale& one, category);
27
  ~locale(); // not virtual
28
  const locale& operator=(const locale& other) noexcept;
 
 
29
  template<class Facet> locale combine(const locale& other) const;
30
-
31
- // locale operations
32
  string name() const;
 
33
 
34
  bool operator==(const locale& other) const;
35
 
36
  template<class charT, class traits, class Allocator>
37
  bool operator()(const basic_string<charT, traits, Allocator>& s1,
38
  const basic_string<charT, traits, Allocator>& s2) const;
39
 
40
- // global locale objects
41
  static locale global(const locale&);
42
  static const locale& classic();
43
  };
44
  }
45
  ```
 
1
+ ##### General <a id="locale.general">[[locale.general]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
  class locale {
6
  public:
7
+ // [locale.types], types
8
+ // [locale.facet], class locale::facet
9
  class facet;
10
+ // [locale.id], class locale::id
11
  class id;
12
+ // [locale.category], type locale::category
13
  using category = int;
14
  static const category // values assigned here are for exposition only
15
  none = 0,
16
  collate = 0x010, ctype = 0x020,
17
  monetary = 0x040, numeric = 0x080,
18
  time = 0x100, messages = 0x200,
19
  all = collate | ctype | monetary | numeric | time | messages;
20
 
21
+ // [locale.cons], construct/copy/destroy
22
  locale() noexcept;
23
  locale(const locale& other) noexcept;
24
  explicit locale(const char* std_name);
25
  explicit locale(const string& std_name);
26
  locale(const locale& other, const char* std_name, category);
27
  locale(const locale& other, const string& std_name, category);
28
  template<class Facet> locale(const locale& other, Facet* f);
29
  locale(const locale& other, const locale& one, category);
30
  ~locale(); // not virtual
31
  const locale& operator=(const locale& other) noexcept;
32
+
33
+ // [locale.members], locale operations
34
  template<class Facet> locale combine(const locale& other) const;
 
 
35
  string name() const;
36
+ text_encoding encoding() const;
37
 
38
  bool operator==(const locale& other) const;
39
 
40
  template<class charT, class traits, class Allocator>
41
  bool operator()(const basic_string<charT, traits, Allocator>& s1,
42
  const basic_string<charT, traits, Allocator>& s2) const;
43
 
44
+ // [locale.statics], global locale objects
45
  static locale global(const locale&);
46
  static const locale& classic();
47
  };
48
  }
49
  ```