#include "support/strfwd.h"
+#include <cstddef>
#include <vector>
int convert(char const * in_buffer, size_t in_size,
char * out_buffer, size_t max_out_size);
+ /// source encoding
+ std::string from() const;
+ /// target encoding
+ std::string to() const;
+
private:
/// open iconv.
/// \return true if the processor is ready to use.
extern char const * ucs4_codeset;
+/// How many bytes does one UCS4 code point use at most in encoding \p encoding?
+int max_encoded_bytes(std::string const & encoding);
} // namespace lyx