2009-11-06 00:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/strcase.c
* harbour/src/rtl/cdpapi.c
* moved some CP dependent functions from strcase.c to cdpapi.c
They will be reimplemented in new CDP code.
* harbour/src/rtl/cdpapi.c
* harbour/include/hbapicdp.h
+ added new C functions to eliminate direct access to HB_CODEPAGE
structure by non core code
* harbour/src/rtl/gtcgi/gtcgi.c
* harbour/src/rtl/gtpca/gtpca.c
* harbour/src/rtl/gtstd/gtstd.c
* harbour/src/rtl/gtcrs/gtcrs.c
* harbour/src/rtl/gtsln/gtsln.c
* harbour/src/rtl/gttrm/gttrm.c
* harbour/src/rtl/gtxwc/gtxwc.c
* harbour/src/rtl/gtdos/gtdos.c
* harbour/src/rtl/gtwin/gtwin.c
* harbour/src/rtl/gtwvt/gtwvt.c
* harbour/contrib/gtwvg/gtwvg.c
* harbour/contrib/gtqtc/gtqtc.cpp
* updated to eliminate direct access to HB_CODEPAGE structure
This commit is contained in:
@@ -315,6 +315,10 @@ extern HB_EXPORT const char * hb_cdpID( void );
|
||||
extern HB_EXPORT PHB_CODEPAGE hb_cdpSelect( PHB_CODEPAGE );
|
||||
extern HB_EXPORT PHB_CODEPAGE hb_cdpFind( const char * );
|
||||
extern HB_EXPORT PHB_CODEPAGE hb_cdpFindExt( const char * );
|
||||
extern HB_EXPORT BOOL hb_cdpIsDigit( PHB_CODEPAGE, int );
|
||||
extern HB_EXPORT BOOL hb_cdpIsAlpha( PHB_CODEPAGE, int );
|
||||
extern HB_EXPORT BOOL hb_cdpIsLower( PHB_CODEPAGE, int );
|
||||
extern HB_EXPORT BOOL hb_cdpIsUpper( PHB_CODEPAGE, int );
|
||||
extern HB_EXPORT int hb_cdpcmp( const char *, ULONG, const char *, ULONG, PHB_CODEPAGE, BOOL );
|
||||
extern HB_EXPORT int hb_cdpicmp( const char *, ULONG, const char *, ULONG, PHB_CODEPAGE, BOOL );
|
||||
extern HB_EXPORT int hb_cdpchrcmp( char, char, PHB_CODEPAGE );
|
||||
@@ -328,6 +332,8 @@ extern HB_EXPORT ULONG hb_cdpnDup2Len( const char *, ULONG, ULONG, PHB_C
|
||||
extern HB_EXPORT void hb_cdpTranslate( char *, PHB_CODEPAGE, PHB_CODEPAGE );
|
||||
extern HB_EXPORT void hb_cdpnTranslate( char *, PHB_CODEPAGE, PHB_CODEPAGE, ULONG );
|
||||
|
||||
extern HB_EXPORT int hb_cdpTranslateChar( int iChar, BOOL fCtrl, PHB_CODEPAGE cdpIn, PHB_CODEPAGE cdpOut );
|
||||
|
||||
extern HB_EXPORT HB_WCHAR hb_cdpGetU16( PHB_CODEPAGE, BOOL, UCHAR );
|
||||
extern HB_EXPORT UCHAR hb_cdpGetChar( PHB_CODEPAGE, BOOL, HB_WCHAR );
|
||||
extern HB_EXPORT BOOL hb_cdpGetFromUTF8( PHB_CODEPAGE, BOOL, UCHAR, int *, HB_WCHAR * );
|
||||
@@ -355,6 +361,9 @@ extern HB_EXPORT ULONG hb_cdpUTF8StringPeek( const char *, ULONG, ULONG
|
||||
extern HB_EXPORT PHB_ITEM hb_itemDeserializeCP( const char ** pBufferPtr, ULONG * pulSize, PHB_CODEPAGE cdpIn, PHB_CODEPAGE cdpOut );
|
||||
extern HB_EXPORT char * hb_itemSerializeCP( PHB_ITEM pItem, BOOL fNumSize, PHB_CODEPAGE cdpIn, PHB_CODEPAGE cdpOut, ULONG *pulSize );
|
||||
|
||||
#define hb_cdpStrToUTF8( cdp, ctrl, src, slen, dst, dlen ) \
|
||||
hb_cdpStrnToUTF8( cdp, ctrl, src, slen, dst )
|
||||
|
||||
HB_EXTERN_END
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user