⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utf8.h

📁 wince下著名的视频播放器源码
💻 H
字号:
#ifndef SHARE__UTF8_H#define SHARE__UTF8_H/* * Convert a string between UTF-8 and the locale's charset. * Invalid bytes are replaced by '#', and characters that are * not available in the target encoding are replaced by '?'. * * If the locale's charset is not set explicitly then it is * obtained using nl_langinfo(CODESET), where available, the * environment variable CHARSET, or assumed to be US-ASCII. * * Return value of conversion functions: * *  -1 : memory allocation failed *   0 : data was converted exactly *   1 : valid data was converted approximately (using '?') *   2 : input was invalid (but still converted, using '#') *   3 : unknown encoding (but still converted, using '?') */void convert_set_charset(const char *charset);int utf8_encode(const char *from, char **to);int utf8_decode(const char *from, char **to);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -