Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
A base class for the codecvt class that is used to define an enumeration type referred to as result, used as the return type for the facet member functions to indicate the result of a conversion.
Syntax
class codecvt_base : public locale::facet {
public:
enum result {ok, partial, error, noconv};
codecvt_base( size_t _Refs = 0);
bool always_noconv() const;
int max_length() const;
int encoding() const;
~codecvt_base()
protected:
virtual bool do_always_noconv() const;
virtual int do_max_length() const;
virtual int do_encoding() const;
};
Remarks
The class describes an enumeration common to all specializations of class template codecvt. The enumeration result describes the possible return values from do_in or do_out:
okif the conversion between internal and external character encodings succeeds.partialif the destination is not large enough for the conversion to succeed.errorif the source sequence is ill formed.noconvif the function performs no conversion.
Requirements
Header: <locale>
Namespace: std