tmp/tmphhv4zo0h/{from.md → to.md}
RENAMED
|
@@ -2,18 +2,18 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class messages_base {
|
| 6 |
public:
|
| 7 |
-
|
| 8 |
};
|
| 9 |
|
| 10 |
template <class charT>
|
| 11 |
class messages : public locale::facet, public messages_base {
|
| 12 |
public:
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
explicit messages(size_t refs = 0);
|
| 17 |
|
| 18 |
catalog open(const basic_string<char>& fn, const locale&) const;
|
| 19 |
string_type get(catalog c, int set, int msgid,
|
|
@@ -42,12 +42,11 @@ catalog open(const basic_string<char>& name, const locale& loc) const;
|
|
| 42 |
```
|
| 43 |
|
| 44 |
*Returns:* `do_open(name, loc)`.
|
| 45 |
|
| 46 |
``` cpp
|
| 47 |
-
string_type get(catalog cat, int set, int msgid,
|
| 48 |
-
const string_type& dfault) const;
|
| 49 |
```
|
| 50 |
|
| 51 |
*Returns:* `do_get(cat, set, msgid, dfault)`.
|
| 52 |
|
| 53 |
``` cpp
|
|
@@ -57,12 +56,11 @@ void close(catalog cat) const;
|
|
| 57 |
*Effects:* Calls `do_close(cat)`.
|
| 58 |
|
| 59 |
##### `messages` virtual functions <a id="locale.messages.virtuals">[[locale.messages.virtuals]]</a>
|
| 60 |
|
| 61 |
``` cpp
|
| 62 |
-
catalog do_open(const basic_string<char>& name,
|
| 63 |
-
const locale& loc) const;
|
| 64 |
```
|
| 65 |
|
| 66 |
*Returns:* A value that may be passed to `get()` to retrieve a message
|
| 67 |
from the message catalog identified by the string `name` according to an
|
| 68 |
*implementation-defined* mapping. The result can be used until it is
|
|
@@ -72,12 +70,11 @@ Returns a value less than 0 if no such catalog can be opened.
|
|
| 72 |
|
| 73 |
*Remarks:* The locale argument `loc` is used for character set code
|
| 74 |
conversion when retrieving messages, if needed.
|
| 75 |
|
| 76 |
``` cpp
|
| 77 |
-
string_type do_get(catalog cat, int set, int msgid,
|
| 78 |
-
const string_type& dfault) const;
|
| 79 |
```
|
| 80 |
|
| 81 |
*Requires:* `cat` shall be a catalog obtained from `open()` and not yet
|
| 82 |
closed.
|
| 83 |
|
|
@@ -93,7 +90,7 @@ void do_close(catalog cat) const;
|
|
| 93 |
closed.
|
| 94 |
|
| 95 |
*Effects:* Releases unspecified resources associated with `cat`.
|
| 96 |
|
| 97 |
*Remarks:* The limit on such resources, if any, is
|
| 98 |
-
implementation-defined.
|
| 99 |
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class messages_base {
|
| 6 |
public:
|
| 7 |
+
using catalog = unspecified signed integer type;
|
| 8 |
};
|
| 9 |
|
| 10 |
template <class charT>
|
| 11 |
class messages : public locale::facet, public messages_base {
|
| 12 |
public:
|
| 13 |
+
using char_type = charT;
|
| 14 |
+
using string_type = basic_string<charT>;
|
| 15 |
|
| 16 |
explicit messages(size_t refs = 0);
|
| 17 |
|
| 18 |
catalog open(const basic_string<char>& fn, const locale&) const;
|
| 19 |
string_type get(catalog c, int set, int msgid,
|
|
|
|
| 42 |
```
|
| 43 |
|
| 44 |
*Returns:* `do_open(name, loc)`.
|
| 45 |
|
| 46 |
``` cpp
|
| 47 |
+
string_type get(catalog cat, int set, int msgid, const string_type& dfault) const;
|
|
|
|
| 48 |
```
|
| 49 |
|
| 50 |
*Returns:* `do_get(cat, set, msgid, dfault)`.
|
| 51 |
|
| 52 |
``` cpp
|
|
|
|
| 56 |
*Effects:* Calls `do_close(cat)`.
|
| 57 |
|
| 58 |
##### `messages` virtual functions <a id="locale.messages.virtuals">[[locale.messages.virtuals]]</a>
|
| 59 |
|
| 60 |
``` cpp
|
| 61 |
+
catalog do_open(const basic_string<char>& name, const locale& loc) const;
|
|
|
|
| 62 |
```
|
| 63 |
|
| 64 |
*Returns:* A value that may be passed to `get()` to retrieve a message
|
| 65 |
from the message catalog identified by the string `name` according to an
|
| 66 |
*implementation-defined* mapping. The result can be used until it is
|
|
|
|
| 70 |
|
| 71 |
*Remarks:* The locale argument `loc` is used for character set code
|
| 72 |
conversion when retrieving messages, if needed.
|
| 73 |
|
| 74 |
``` cpp
|
| 75 |
+
string_type do_get(catalog cat, int set, int msgid, const string_type& dfault) const;
|
|
|
|
| 76 |
```
|
| 77 |
|
| 78 |
*Requires:* `cat` shall be a catalog obtained from `open()` and not yet
|
| 79 |
closed.
|
| 80 |
|
|
|
|
| 90 |
closed.
|
| 91 |
|
| 92 |
*Effects:* Releases unspecified resources associated with `cat`.
|
| 93 |
|
| 94 |
*Remarks:* The limit on such resources, if any, is
|
| 95 |
+
*implementation-defined*.
|
| 96 |
|