Текущая версия |
Ваш текст |
Строка 1: |
Строка 1: |
| = codecvt Class = | | = codecvt Class = |
- |
| |
- | == Описание ==
| |
| A template class that describes an object that can serve as a locale facet that is able to control conversions between a sequence of values used to encode characters within the program and a sequence of values used to encode characters outside the program. | | A template class that describes an object that can serve as a locale facet that is able to control conversions between a sequence of values used to encode characters within the program and a sequence of values used to encode characters outside the program. |
| <source lang="cpp"> | | <source lang="cpp"> |
Строка 29: |
Строка 27: |
| </source> | | </source> |
| which converts between wchar_t and char sequences. | | which converts between wchar_t and char sequences. |
- |
| |
- |
| |
- |
| |
- | == Конструкторы ==
| |
- | <table width="100%">
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/codecvt | codecvt]] </p> </td>
| |
- | <td> <p>The constructor for objects of class <b>codecvt</b> that serves as a locale facet to handle conversions.</p> </td>
| |
- | </tr>
| |
- | </table>
| |
- |
| |
- | == Typedefs ==
| |
- | <table width="100%">
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/extern_type | extern_type]] </p> </td>
| |
- | <td> <p>A character type that is used for external representations.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/intern_type | intern_type]] </p> </td>
| |
- | <td> <p>A character type that is used for internal representations.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/state_type | state_type]] </p> </td>
| |
- | <td> <p>A character type that is used to represent intermediate states during conversions between internal and external representations.</p> </td>
| |
- | </tr>
| |
- | </table>
| |
- |
| |
- | == Функции члены ==
| |
- | <table width="100%">
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/always_noconv | always_noconv]] </p> </td>
| |
- | <td> <p>Tests whether no conversions need be done.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/do_always_noconv | do_always_noconv]] </p> </td>
| |
- | <td> <p>A virtual function called to test whether no conversions need be done.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/do_encoding | do_encoding]] </p> </td>
| |
- | <td> <p>A virtual function that tests if the encoding of the <b>Byte</b> stream is state dependent, whether the ratio between the <b>Byte</b>s used and the <b>CharType</b>s produced is constant, and, if so, determines the value of that ratio.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/do_in | do_in]] </p> </td>
| |
- | <td> <p>A virtual function called to convert a sequence of internal <b>Byte</b>s to a sequence of external <b>CharType</b>s.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/do_length | do_length]] </p> </td>
| |
- | <td> <p>A virtual function that determines how many <b>Byte</b>s from a given sequence of external <b>Byte</b>s produce not more than a given number of internal <b>CharType</b>s and returns that number of <b>Byte</b>s.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/do_max_length | do_max_length]] </p> </td>
| |
- | <td> <p>A virtual function that returns the maximum number of external Bytes necessary to produce one internal <b>CharType</b>.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/do_out | do_out]] </p> </td>
| |
- | <td> <p>A virtual function called to convert a sequence of internal <b>CharType</b>s to a sequence of external Bytes.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/do_unshift | do_unshift]] </p> </td>
| |
- | <td> <p>A virtual function called to provide the <b>Byte</b>s needed in a state-dependent conversion to complete the last character in a sequence of <b>Byte</b>s.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/in | in]] </p> </td>
| |
- | <td> <p>Converts an external representation of a sequence of <b>Byte</b>s to an internal representation of a sequence of <b>CharType</b>s.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/length | length]] </p> </td>
| |
- | <td> <p>Determines how many <b>Byte</b>s from a given sequence of external <b>Byte</b>s produce not more than a given number of internal <b>CharType</b>s and returns that number of <b>Byte</b>s.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/encoding | encoding]] </p> </td>
| |
- | <td> <p>Tests if the encoding of the <b>Byte</b> stream is state dependent, whether the ratio between the <b>Byte</b>s used and the <b>CharType</b>s produced is constant, and, if so, determines the value of that ratio.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/max_length | max_length]] </p> </td>
| |
- | <td> <p>Returns the maximum number of external <b>Byte</b>s necessary to produce one internal <b>CharType</b>.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/out | out]] </p> </td>
| |
- | <td> <p>Converts a sequence of internal <b>CharType</b>s to a sequence of external <b>Byte</b>s.</p> </td>
| |
- | </tr>
| |
- | <tr>
| |
- | <td> <p> [[STL/codecvt/unshift | unshift]] </p> </td>
| |
- | <td> <p>Provides the external <b>Byte</b>s needed in a state-dependent conversion to complete the last character in the sequence of <b>Byte</b>s.</p> </td>
| |
- | </tr>
| |
- | </table>
| |