📄 storechr.h
字号:
// storechr.h
#ifndef STORECHR_H
#define STORECHR_H
#ifdef __cplusplus
extern "C" {
#endif
#define STOREDCHARS_ERROR ( (void*) -1 )
// STOREDCHARS 峔憿懱乮ANSI斉乯
typedef struct {
char *szStart ; // 僶僢僼傽偺愭摢傾僪儗僗
char *szWrite ; // 僶僢僼傽偺彂偒崬傒梡偺傾僪儗僗
char *szEnd ; // 僶僢僼傽偺枛旜偺傾僪儗僗
size_t dwBufferSize ; // 妋曐偟偨僶僢僼傽偺僒僀僘乮暥帤悢乯
} STOREDCHARSA ;
// STOREDCHARS 峔憿懱乮UNICODE斉乯
typedef struct {
wchar_t *szStart ; // 僶僢僼傽偺愭摢傾僪儗僗
wchar_t *szWrite ; // 僶僢僼傽偺彂偒崬傒梡偺傾僪儗僗
wchar_t *szEnd ; // 僶僢僼傽偺枛旜偺傾僪儗僗
size_t dwBufferSize ; // 妋曐偟偨僶僢僼傽偺僒僀僘乮暥帤悢乯
} STOREDCHARSW ;
// STOREDCHARS 峔憿懱乮UTF32斉乯
typedef struct {
wchar32_t *szStart ; // 僶僢僼傽偺愭摢傾僪儗僗
wchar32_t *szWrite ; // 僶僢僼傽偺彂偒崬傒梡偺傾僪儗僗
wchar32_t *szEnd ; // 僶僢僼傽偺枛旜偺傾僪儗僗
size_t dwBufferSize ; // 妋曐偟偨僶僢僼傽偺僒僀僘乮暥帤悢乯
} STOREDCHARSW32 ;
STOREDCHARSA *StoreCharsA ( int C, STOREDCHARSA *StoredChars ) ;
STOREDCHARSA *StoreCharsStringA ( const char *szString, STOREDCHARSA *StoredChars ) ;
void ClearStoredCharsA ( STOREDCHARSA *StoredChars ) ;
void FreeStoredCharsA ( STOREDCHARSA *StoredChars ) ;
char *GetStoredCharsA ( STOREDCHARSA *StoredChars ) ;
STOREDCHARSA *PushStoredCharsA ( int C, STOREDCHARSA *StoredChars ) ;
int PopStoredCharsA ( STOREDCHARSA *StoredChars ) ;
STOREDCHARSW *StoreCharsW ( int C, STOREDCHARSW *StoredChars ) ;
STOREDCHARSW *StoreCharsStringW ( const wchar_t *szString, STOREDCHARSW *StoredChars ) ;
void ClearStoredCharsW ( STOREDCHARSW *StoredChars ) ;
void FreeStoredCharsW ( STOREDCHARSW *StoredChars ) ;
wchar_t *GetStoredCharsW ( STOREDCHARSW *StoredChars ) ;
STOREDCHARSW *PushStoredCharsW ( int C, STOREDCHARSW *StoredChars ) ;
int PopStoredCharsW ( STOREDCHARSW *StoredChars ) ;
STOREDCHARSW32 *StoreCharsW32 ( int C, STOREDCHARSW32 *StoredChars ) ;
STOREDCHARSW32 *StoreCharsStringW32 ( const wchar32_t *szString, STOREDCHARSW32 *StoredChars ) ;
void ClearStoredCharsW32 ( STOREDCHARSW32 *StoredChars ) ;
void FreeStoredCharsW32 ( STOREDCHARSW32 *StoredChars ) ;
wchar32_t *GetStoredCharsW32 ( STOREDCHARSW32 *StoredChars ) ;
STOREDCHARSW32 *PushStoredCharsW32 ( int C, STOREDCHARSW32 *StoredChars ) ;
int PopStoredCharsW32 ( STOREDCHARSW32 *StoredChars ) ;
#ifdef UNICODE
#define STOREDCHARS STOREDCHARSW
#define StoreChars StoreCharsW
#define GetStoredChars GetStoredCharsW
#define FreeStoredChars FreeStoredCharsW
#define GetStoredChars GetStoredCharsW
#else
#define STOREDCHARS STOREDCHARSA
#define StoreChars StoreCharsA
#define GetStoredChars GetStoredCharsA
#define FreeStoredChars FreeStoredCharsA
#define GetStoredChars GetStoredCharsA
#endif
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -