|
codecvt::encodingpublic member function
int encoding() const throw(); Return encoding width Returns the width of an internal character in terms of external characters, if this is a fixed value.Otherwise, if this is a variable value, the function returns 0. Alternatively, if the encoding of an external sequence is state-dependent, the function returns -1. During its operation, this function simply calls the virtual protected member codecvt::do_encoding, which is the member function in charge of performing the actions described above. ParametersnoneReturn valueOne of the following, describing how external characters are encoded:
Example
Possible output:
See also
|