📄 tchar.h
字号:
/*
* C/C++ Run Time Library - Version 10.0
*
* Copyright (c) 1995, 2000 by Inprise Corporation
* All Rights Reserved.
*
*/
/* $Revision: 9.21 $ */
#if !defined(__TCHAR_H)
#define __TCHAR_H
#define _INC_TCHAR /* MSC Guard name */
#ifndef ___STDDEF_H
#include <_stddef.h>
#endif
/*
This file is parsed with a tool that will spit out a table of
function mappings for the online help. The format is as follows:
Inside a single-line slash-star comment, there will be a command:
@+(col_name[,col]) ..descrip.. Define (start) current column block(s)
@- Stop the current block(s)
@:..descrip.. Change description for the current block(s)
@!:portable_name Adds in a brute force entry with no equiv.
@!(portable_name,cur_col_name) Adds in a brute force entry
The lines following these commands will then be processed:
#define portable_name cur_col_name
typedef cur_col_name portable_name
#defines that are macros (have parens) or are more than two words are
ignored.
*/
#if defined(__USING_CNAME__)
# undef __USING_CNAME__
# include <string.h>
# define __USING_CNAME__
#else
# include <string.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_MBCS) && !defined(__MBSTRING_H)
#include <mbstring.h>
#endif
#if !defined(_UNICODE)
#ifdef __cplusplus
namespace std {
#endif
/* @+(SBCS) Types */
#if !defined(_MBCS)
#ifndef __TCHAR_DEFINED
typedef char _TCHAR;
typedef signed char _TSCHAR;
typedef unsigned char _TUCHAR;
typedef char _TXCHAR;
typedef int _TINT;
#define __TCHAR_DEFINED
#endif
#endif /* _MBCS */
#ifdef __cplusplus
} // std
#endif
/* @: misc. functions */
#define _tfdopen _fdopen
#define _fputtchar _fputchar
#define _fgettchar _fgetchar
#define _tmktemp _mktemp
#define _tunlink _unlink
#define _ttempnam _tempnam
#define _trmdir _rmdir
#define _tmkdir _mkdir
#define _tutime _utime
#define _ltot _ltoa
#define _tsopen _sopen
/* @: program specific functions */
#define _tmain main
#define _tWinMain WinMain
#define _tenviron _environ
#define _targv _argv
/* @: path/environment specific functions */
#define _tfullpath _fullpath
#define _tmakepath _makepath
#define _tsplitpath _splitpath
#define _tsearchpath searchpath
#define _tsearchenv _searchenv
#define _tsearchstr _searchstr
#define _tgetenv getenv
#define _tputenv putenv
#define _tfnsplit fnsplit
#define _tfnmerge fnmerge
/* @: directory functions */
#define _topendir opendir
#define _treaddir readdir
#define _trewinddir rewinddir
#define _tclosedir closedir
#define _tDIR DIR
#define _tdirent dirent
/* @: stdio functions */
#define _tpopen _popen
#define _tfsopen _fsopen
#define _tfopen fopen
#define _tfreopen freopen
#define _tperror perror
#define _ttmpnam tmpnam
/* @: time functions */
#define _tstrdate _strdate
#define _tstrtime _strtime
#define _tasctime asctime
#define _tctime ctime
#define _tcsftime strftime
#define _ttzset _tzset
#define _ttzname _tzname
/* @: I/O functions */
#define _taccess access
#define _tchmod chmod
#define _trtl_open _rtl_open
#define _trtl_creat _rtl_creat
#define _trtl_chmod _rtl_chmod
#define _tcreat creat
#define __tcreat _creat
#define _tfindfirst findfirst
#define _tfindnext findnext
#define _tfindclose findclose
#define __tfindfirsti64 _findfirsti64
#define __tfindnexti64 _findnexti64
#define __tfinddatai64_t _finddatai64_t
#define __tfinddata_t _finddata_t
#define __tfindfirst _findfirst
#define __tfindnext _findnext
#define _topen open
#define __topen _open
#define _tremove remove
#define _trename rename
#define _tffblk ffblk
/* @: string conversion functions */
#define _ttof atof
#define _ttoi atoi
#define _ttol atol
#define _ttoi64 _atoi64
#define _ttold _atold
#define _tcstod strtod
#define _tcstol strtol
#define _tcstold _strtold
#define _tcstoul strtoul
#define _itot itoa
#define _ultot ultoa
#define _i64tot _i64toa
#define _ui64tot _ui64toa
/* @: generic string functions */
#define _tcscat strcat
#define _tcscpy strcpy
#define _tcspcpy _stpcpy
#define _tcslen strlen
#define _tcsdup strdup
/* @: directory functions */
#define _tchdir chdir
#define _tgetcurdir getcurdir
#define _tgetcwd getcwd
#define _tgetdcwd _getdcwd
/* @: process execution functions */
#define _texecl execl
#define _texecle execle
#define _texeclp execlp
#define _texeclpe execlpe
#define _texecv execv
#define _texecve execve
#define _texecvp execvp
#define _texecvpe execvpe
#define _tspawnl spawnl
#define _tspawnle spawnle
#define _tspawnlp spawnlp
#define _tspawnlpe spawnlpe
#define _tspawnv spawnv
#define _tspawnve spawnve
#define _tspawnvp spawnvp
#define _tspawnvpe spawnvpe
#define _tsystem system
/* @: unformated I/O */
#define _fgettc fgetc
#define _fgetts fgets
#define _fputtc fputc
#define _fputts fputs
#define _gettc getc
#define _gettchar getchar
#define _getts gets
#define _puttc putc
#define _puttchar putchar
#define _putts puts
#define _ungettc ungetc
/* @: formated I/O functions */
#define _ftprintf fprintf
#define _tprintf printf
#define _stprintf sprintf
#define _vtprintf vprintf
#define _vftprintf vfprintf
#define _vstprintf vsprintf
#define _sntprintf snprintf
#define _vsntprintf vsnprintf
#define __sntprintf _snprintf // MSC compat.
#define __vsntprintf _vsnprintf // MSC compat.
#define _tscanf scanf
#define _stscanf sscanf
#define _ftscanf fscanf
#define _vstscanf vsscanf
#define _vtscanf vscanf
#define _vftscanf vfscanf
/* @: stat functions */
#define _tstat _stat
#define _tstati64 _stati64
/* @: setlocale functions */
#define _tsetlocale setlocale
/* @: memory functions */
#define _tmemcpy memcpy
#define _tmemchr memchr
#define _tmemset memset
/* @: generic text macros */
/* @!:__T */
/* @!:_TEXT */
/* @!:_T */
#define __T(__x) __x
#define _TEXT(__x) __T(__x)
#define _T(__x) __T(__x)
#define _TEOF EOF
#if defined(_MBCS)
/* ----------------- MBCS functions -------------------------- */
#ifdef __cplusplus
namespace std {
#endif
/* @+(MBCS) Types */
#ifndef __TCHAR_DEFINED
typedef char _TCHAR;
typedef signed char _TSCHAR;
typedef unsigned char _TUCHAR;
typedef unsigned char _TXCHAR;
/* typedef unsigned int _TINT; */ /* HACK: for now */
typedef int _TINT;
#define __TCHAR_DEFINED
#endif
#ifdef __cplusplus
} // std
#endif
#ifdef _MBC_USE_MACROS
/* @: string functions */
#define _tcschr _mbschr
#define _tcscspn _mbscspn
#define _tcsncat _mbsnbcat
#define _tcsncpy _mbsnbcpy
#define _tcspbrk _mbspbrk
#define _tcsrchr _mbsrchr
#define _tcsspn _mbsspn
#define _tcsstr _mbsstr
#define _tcstok _mbstok
#define _tcsset _mbsset
#define _tcsnset _mbsnbset
#define _tcsrev _mbsrev
#define _tcscmp _mbscmp
#define _tcsicmp _mbsicmp
#define _tcsncmp _mbsnbcmp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -