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

📄 ucmap.h

📁 elinks下lynx是最重要的二个文本浏览器, 在linux下非常实用, lynx比elinks早的多, 目前好像停止开发, 这是lynx源代码
💻 H
字号:
#ifndef UCMAP_H#define UCMAP_H#ifndef HTUTILS_H#include <HTUtils.h>#endiftypedef long UCode_t;extern int UCTransUniChar PARAMS((	UCode_t		unicode,	int		charset_out));extern int UCTransUniCharStr PARAMS((	char *		outbuf,	int		buflen,	UCode_t		unicode,	int		charset_out,	int		chk_single_flag));extern int UCTransChar PARAMS((	char		ch_in,	int		charset_in,	int		charset_out));extern int UCReverseTransChar PARAMS((	char		ch_out,	int		charset_in,	int		charset_out));extern int UCTransCharStr PARAMS((	char *		outbuf,	int		buflen,	char		ch_in,	int		charset_in,	int		charset_out,	int		chk_single_flag));extern UCode_t UCTransToUni PARAMS((	char		ch_in,	int		charset_in));extern int UCGetRawUniMode_byLYhndl PARAMS((	int		i));extern int UCGetLYhndl_byMIME PARAMS((	CONST char *	p)); /* returns -1 if name not recognized */extern int safeUCGetLYhndl_byMIME PARAMS((	CONST char *	p)); /* returns LATIN1 if name not recognized */#ifdef EXP_LOCALE_CHARSETextern void LYFindLocaleCharset NOPARAMS;#endifextern int UCLYhndl_for_unspec;extern int UCLYhndl_for_unrec;extern int UCLYhndl_HTFile_for_unspec;extern int UCLYhndl_HTFile_for_unrec;/* easy to type: */extern int LATIN1;     /* UCGetLYhndl_byMIME("iso-8859-1") */extern int US_ASCII;   /* UCGetLYhndl_byMIME("us-ascii")   */extern int UTF8_handle;	/* UCGetLYhndl_byMIME("utf-8")      */#undef TRANSPARENT	/* defined on Solaris in <sys/stream.h> */extern int TRANSPARENT; /* UCGetLYhndl_byMIME("x-transparent")  *//*In general, Lynx translates letters from document charset to display charset.If document charset is not specified or not recognized by Lynx, we fall backto different assumptions below, read also lynx.cfg for info.UCLYhndl_for_unspec -  assume this as charset for documents that don't                       specify a charset parameter in HTTP headers or via META                       this corresponds to "assume_charset"UCLYhndl_HTFile_for_unspec -  assume this as charset of local file                       this corresponds to "assume_local_charset"UCLYhndl_for_unrec  -  in case a charset parameter is not recognized;                       this corresponds to "assume_unrec_charset"UCLYhndl_HTFile_for_unrec  - the same but only for local files,                             currently not used.current_char_set  -	this corresponds to "display charset",			declared in LYCharSets.c and really important.All external charset information is available in so called MIME format.For internal needs Lynx uses charset handlers as integersfrom UCGetLYhndl_byMIME().  However, there is no way to recoverfrom user's error in configuration file lynx.cfg or command line switches,those unrecognized MIME names are assumed as LATIN1 (via safeUCGetLYhndl...).*/#define UCTRANS_NOTFOUND (-4)#endif /* UCMAP_H */

⌨️ 快捷键说明

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