tmp/tmpbj5mcbqf/{from.md → to.md}
RENAMED
|
@@ -83,17 +83,10 @@ An object of this class template stores:
|
|
| 83 |
- `cvtptr` — a pointer to the allocated conversion object (which is
|
| 84 |
freed when the `wstring_convert` object is destroyed)
|
| 85 |
- `cvtstate` — a conversion state object
|
| 86 |
- `cvtcount` — a conversion count
|
| 87 |
|
| 88 |
-
``` cpp
|
| 89 |
-
using byte_string = basic_string<char, char_traits<char>, ByteAlloc>;
|
| 90 |
-
```
|
| 91 |
-
|
| 92 |
-
The type shall be a synonym for
|
| 93 |
-
`basic_string<char, char_traits<char>, ByteAlloc>`.
|
| 94 |
-
|
| 95 |
``` cpp
|
| 96 |
size_t converted() const noexcept;
|
| 97 |
```
|
| 98 |
|
| 99 |
*Returns:* `cvtcount`.
|
|
@@ -124,27 +117,15 @@ In all cases:
|
|
| 124 |
return the converted wide string. Otherwise, if the object was
|
| 125 |
constructed with a wide-error string, the member function shall return
|
| 126 |
the wide-error string. Otherwise, the member function throws an object
|
| 127 |
of class `range_error`.
|
| 128 |
|
| 129 |
-
``` cpp
|
| 130 |
-
using int_type = typename wide_string::traits_type::int_type;
|
| 131 |
-
```
|
| 132 |
-
|
| 133 |
-
The type shall be a synonym for `wide_string::traits_type::int_type`.
|
| 134 |
-
|
| 135 |
``` cpp
|
| 136 |
state_type state() const;
|
| 137 |
```
|
| 138 |
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
``` cpp
|
| 142 |
-
using state_type = typename Codecvt::state_type;
|
| 143 |
-
```
|
| 144 |
-
|
| 145 |
-
The type shall be a synonym for `Codecvt::state_type`.
|
| 146 |
|
| 147 |
``` cpp
|
| 148 |
byte_string to_bytes(Elem wchar);
|
| 149 |
byte_string to_bytes(const Elem* wptr);
|
| 150 |
byte_string to_bytes(const wide_string& wstr);
|
|
@@ -170,17 +151,10 @@ In all cases:
|
|
| 170 |
return the converted byte string. Otherwise, if the object was
|
| 171 |
constructed with a byte-error string, the member function shall return
|
| 172 |
the byte-error string. Otherwise, the member function shall throw an
|
| 173 |
object of class `range_error`.
|
| 174 |
|
| 175 |
-
``` cpp
|
| 176 |
-
using wide_string = basic_string<Elem, char_traits<Elem>, WideAlloc>;
|
| 177 |
-
```
|
| 178 |
-
|
| 179 |
-
The type shall be a synonym for
|
| 180 |
-
`basic_string<Elem, char_traits<Elem>, WideAlloc>`.
|
| 181 |
-
|
| 182 |
``` cpp
|
| 183 |
explicit wstring_convert(Codecvt* pcvt);
|
| 184 |
wstring_convert(Codecvt* pcvt, state_type state);
|
| 185 |
explicit wstring_convert(const byte_string& byte_err,
|
| 186 |
const wide_string& wide_err = wide_string());
|
|
|
|
| 83 |
- `cvtptr` — a pointer to the allocated conversion object (which is
|
| 84 |
freed when the `wstring_convert` object is destroyed)
|
| 85 |
- `cvtstate` — a conversion state object
|
| 86 |
- `cvtcount` — a conversion count
|
| 87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
``` cpp
|
| 89 |
size_t converted() const noexcept;
|
| 90 |
```
|
| 91 |
|
| 92 |
*Returns:* `cvtcount`.
|
|
|
|
| 117 |
return the converted wide string. Otherwise, if the object was
|
| 118 |
constructed with a wide-error string, the member function shall return
|
| 119 |
the wide-error string. Otherwise, the member function throws an object
|
| 120 |
of class `range_error`.
|
| 121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
``` cpp
|
| 123 |
state_type state() const;
|
| 124 |
```
|
| 125 |
|
| 126 |
+
*Returns:* `cvtstate`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
``` cpp
|
| 129 |
byte_string to_bytes(Elem wchar);
|
| 130 |
byte_string to_bytes(const Elem* wptr);
|
| 131 |
byte_string to_bytes(const wide_string& wstr);
|
|
|
|
| 151 |
return the converted byte string. Otherwise, if the object was
|
| 152 |
constructed with a byte-error string, the member function shall return
|
| 153 |
the byte-error string. Otherwise, the member function shall throw an
|
| 154 |
object of class `range_error`.
|
| 155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
``` cpp
|
| 157 |
explicit wstring_convert(Codecvt* pcvt);
|
| 158 |
wstring_convert(Codecvt* pcvt, state_type state);
|
| 159 |
explicit wstring_convert(const byte_string& byte_err,
|
| 160 |
const wide_string& wide_err = wide_string());
|