X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Funicode.h;h=12f112c44d60c97cf9a73e0a2411253e2d3206a3;hb=848c89564fce9c4bfec79b915746dc6bc47abc3d;hp=3cf1d5bb7611540578fe4fba0d44d24987f485c7;hpb=fe4da6920b40070e59d7ac115f02215a02e6e679;p=lyx.git diff --git a/src/support/unicode.h b/src/support/unicode.h index 3cf1d5bb76..12f112c44d 100644 --- a/src/support/unicode.h +++ b/src/support/unicode.h @@ -89,6 +89,14 @@ eightbit_to_ucs4(char const * s, size_t ls, std::string const & encoding); std::vector ucs4_to_eightbit(char_type const * ucs4str, size_t ls, std::string const & encoding); +/// convert ucs4 character \p c to encoding \p encoding. +/// \p encoding must be a valid iconv 8bit encoding +char ucs4_to_eightbit(char_type c, std::string const & encoding); + +/// +void ucs4_to_multibytes(char_type ucs4, std::vector & out, + std::string const & encoding); + extern char const * ucs4_codeset;