codecvt Virtual Functions

Virtual functions for codecvt implementation.

  result do_out(stateT& state, const internT* from,
  const internT* from_end, 
  const internT*& from_next, externT* to, 
  externT* to_limit, externT*& to_next) const;
  

Implements out.

The result is returned as a value as in Table 1.

  result do_in(stateT& state, const externT* from,
  const externT* from_end, 
  const externT*& from_next, internT* to, 
  internT* to_limit, internT*& to_next) const;
  

Implements in.

The result is returned as a value as in Table 1.

  result do_unshift(stateT& state,
  externT* to, externT* to_limit, externT*& to_next) const;
  Implements
   unshift. 
  

The result is returned as a value as in Table 1.

  int do_encoding() const throw();
  

Implements encoding.

  bool do_always_noconv() const throw();
  

Implements always_noconv.

  int do_length(stateT& state, const externT* from, const 
  externT* from_end, size_t max) const;
  

Implements length.

  int do_max_length() const throw();
  

Implements max_length.

Table 1. Convert Result Values
Value Meaning
error Encountered a from_type character it could not convert
noconv No conversion was needed
ok Completed the conversion
partial Not all source characters converted