widechar.h

来自「Util-linux 软件包包含许多工具。其中比较重要的是加载、卸载、格式化、分」· C头文件 代码 · 共 52 行

H
52
字号
/* Declarations for wide characters *//* This file must be included last because the redefinition of wchar_t may   cause conflicts when system include files were included after it. */#include "../defines.h"  /* for ENABLE_WIDECHAR */#ifdef ENABLE_WIDECHAR# include <wchar.h># include <wctype.h>#if 0 /* for testing on platforms without built-in wide character support */#  include <libutf8.h>#endif#if 1/* explicit prototypes, since sometimes <wchar.h> does not give them */extern int wcwidth (wchar_t c);         /* old: wint_t c */extern int wcswidth (const wchar_t *s, size_t n);extern size_t wcslen (const wchar_t *s);extern wchar_t *wcsdup (const wchar_t *s);#endif#else# include <ctype.h>  /* Fallback for types */# define wchar_t char# define wint_t int# define WEOF EOF  /* Fallback for input operations */# define fgetwc fgetc# define getwc getc# define getwchar getchar# define fgetws fgets  /* Fallback for output operations */# define fputwc fputc# define putwc putc# define putwchar putchar# define fputws fputs  /* Fallback for character classification */# define iswgraph isgraph# define iswprint isprint# define iswspace isspace  /* Fallback for string functions */# define wcschr strchr# define wcsdup strdup# define wcslen strlen# define wcwidth(c) 1#endif

⌨️ 快捷键说明

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