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

📄 storestr.h

📁 This software performs code conversion of Chinese characters, including GB2312/GBK and BIG5. It a
💻 H
字号:
// storestr.h

#ifndef STORESTR_H
#define STORESTR_H


#ifdef __cplusplus
extern "C" {
#endif


#define STOREDSTRINGS_ERROR   ( (void*) -1 )


// STOREDSTRINGS 峔憿懱乮ANSI斉乯
typedef struct {
   char           *szStart ;        // 僶僢僼傽偺愭摢傾僪儗僗
   char           *szRead ;         // 僶僢僼傽偺撉傒弌偟梡偺傾僪儗僗
   char           *szWrite ;        // 僶僢僼傽偺彂偒崬傒梡偺傾僪儗僗
   size_t         dwBufferSize ;    // 妋曐偟偨僶僢僼傽偺僒僀僘乮僶僀僩悢乯
   size_t         nCount ;          // 梫慺偺屄悢
   char           *szSortStart ;    // 僜乕僩傪巒傔傞埵抲
   size_t         nSortStartCount ; // 僜乕僩傪巒傔傞埵抲傑偱偺梫慺偺悢
} STOREDSTRINGSA ;


// STOREDSTRINGS 峔憿懱乮UNICODE斉乯
typedef struct {
   wchar_t        *szStart ;        // 僶僢僼傽偺愭摢傾僪儗僗
   wchar_t        *szRead ;         // 僶僢僼傽偺撉傒弌偟梡偺傾僪儗僗
   wchar_t        *szWrite ;        // 僶僢僼傽偺彂偒崬傒梡偺傾僪儗僗
   size_t         dwBufferSize ;    // 妋曐偟偨僶僢僼傽偺僒僀僘乮僶僀僩悢乯
   size_t         nCount ;          // 梫慺偺屄悢
   wchar_t        *szSortStart ;    // 僜乕僩傪巒傔傞埵抲
   size_t         nSortStartCount ; // 僜乕僩傪巒傔傞埵抲傑偱偺梫慺偺悢
} STOREDSTRINGSW ;


STOREDSTRINGSA *StoreStringsA ( STOREDSTRINGSA *StoredStrings, const char *szString ) ;
void FreeStoredStringsA ( STOREDSTRINGSA *StoredStrings ) ;
const char *GetFirstStringA ( STOREDSTRINGSA *StoredStrings ) ;
const char *GetNextStringA ( STOREDSTRINGSA *StoredStrings ) ;
size_t GetStringCountA ( STOREDSTRINGSA *StoredStrings ) ;
int SortStoredStringsA ( STOREDSTRINGSA *StoredStrings, int ( __cdecl *CompareFunction ) ( const char **, const char ** ) ) ;
int MarkSortStartA ( STOREDSTRINGSA *StoredStrings ) ;
int UnmarkSortStartA ( STOREDSTRINGSA *StoredStrings ) ;
const char *GetFirstMarkedStringA ( STOREDSTRINGSA *StoredStrings ) ;

STOREDSTRINGSW *StoreStringsW ( STOREDSTRINGSW *StoredStrings, const wchar_t *szString ) ;
void FreeStoredStringsW ( STOREDSTRINGSW *StoredStrings ) ;
const wchar_t *GetFirstStringW ( STOREDSTRINGSW *StoredStrings ) ;
const wchar_t *GetNextStringW ( STOREDSTRINGSW *StoredStrings ) ;
size_t GetStringCountW ( STOREDSTRINGSW *StoredStrings ) ;
int SortStoredStringsW ( STOREDSTRINGSW *StoredStrings, int ( __cdecl *CompareFunction ) ( const wchar_t **, const wchar_t ** ) ) ;
int MarkSortStartW ( STOREDSTRINGSW *StoredStrings ) ;
int UnmarkSortStartW ( STOREDSTRINGSW *StoredStrings ) ;
const wchar_t *GetFirstMarkedStringW ( STOREDSTRINGSW *StoredStrings ) ;


#ifdef UNICODE
#define STOREDSTRINGS         STOREDSTRINGSW
#define StoreStrings          StoreStringsW
#define FreeStoredStrings     FreeStoredStringsW
#define GetFirstString        GetFirstStringW
#define GetNextString         GetNextStringW
#define GetStringCount        GetStringCountW
#define SortStoredStrings     SortStoredStringsW
#define MarkSortStart         MarkSortStartW
#define UnmarkSortStart       UnmarkSortStartW
#define GetFirstMarkedString  GetFirstMarkedStringW
#else
#define STOREDSTRINGS         STOREDSTRINGSA
#define StoreStrings          StoreStringsA
#define FreeStoredStrings     FreeStoredStringsA
#define GetFirstString        GetFirstStringA
#define GetNextString         GetNextStringA
#define GetStringCount        GetStringCountA
#define SortStoredStrings     SortStoredStringsA
#define MarkSortStart         MarkSortStartA
#define UnmarkSortStart       UnmarkSortStartA
#define GetFirstMarkedString  GetFirstMarkedStringA
#endif


int __cdecl CompareStoredStringsA ( const char **pArg1, const char **pArg2 ) ;
int __cdecl CompareStoredStringsRevA ( const char **pArg1, const char **pArg2 ) ;
int __cdecl CompareStoredStringsLocaleA ( const char **pArg1, const char **pArg2 ) ;
int __cdecl CompareStoredStringsLocaleRevA ( const char **pArg1, const char **pArg2 ) ;
int __cdecl CompareStoredStringsNumericalA ( const char **pArg1, const char **pArg2 ) ;
int __cdecl CompareStoredStringsNumericalRevA ( const char **pArg1, const char **pArg2 ) ;

int __cdecl CompareStoredStringsW ( const wchar_t **pArg1, const wchar_t **pArg2 ) ;
int __cdecl CompareStoredStringsRevW ( const wchar_t **pArg1, const wchar_t **pArg2 ) ;
int __cdecl CompareStoredStringsLocaleW ( const wchar_t **pArg1, const wchar_t **pArg2 ) ;
int __cdecl CompareStoredStringsLocaleRevW ( const wchar_t **pArg1, const wchar_t **pArg2 ) ;
int __cdecl CompareStoredStringsNumericalW ( const wchar_t **pArg1, const wchar_t **pArg2 ) ;
int __cdecl CompareStoredStringsNumericalRevW ( const wchar_t **pArg1, const wchar_t **pArg2 ) ;


#ifdef UNICODE
#define CompareStoredStrings              CompareStoredStringsW
#define CompareStoredStringsRev           CompareStoredStringsRevW
#define CompareStoredStringsLocale        CompareStoredStringsLocaleW
#define CompareStoredStringsLocaleRev     CompareStoredStringsLocaleRevW
#define CompareStoredStringsNumerical     CompareStoredStringsNumericalW
#define CompareStoredStringsNumericalRev  CompareStoredStringsNumericalRevW
#else
#define CompareStoredStrings              CompareStoredStringsA
#define CompareStoredStringsRev           CompareStoredStringsRevA
#define CompareStoredStringsLocale        CompareStoredStringsLocaleA
#define CompareStoredStringsLocaleRev     CompareStoredStringsLocaleRevA
#define CompareStoredStringsNumerical     CompareStoredStringsNumericalA
#define CompareStoredStringsNumericalRev  CompareStoredStringsNumericalRevA
#endif


#ifdef __cplusplus
}
#endif

#endif


⌨️ 快捷键说明

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