X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..46f4442e9a5a4f3b98b7c1083586332f6a8a99a4:/icuSources/common/ubidi_props.h diff --git a/icuSources/common/ubidi_props.h b/icuSources/common/ubidi_props.h index 7788c8b4..c2384c7c 100644 --- a/icuSources/common/ubidi_props.h +++ b/icuSources/common/ubidi_props.h @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2004-2005, International Business Machines +* Copyright (C) 2004-2008, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -24,6 +24,8 @@ #include "uset_imp.h" #include "udataswp.h" +#define UBIDI_HARDCODE_DATA 1 + U_CDECL_BEGIN /* library API -------------------------------------------------------------- */ @@ -31,34 +33,35 @@ U_CDECL_BEGIN struct UBiDiProps; typedef struct UBiDiProps UBiDiProps; -U_CAPI UBiDiProps * U_EXPORT2 +U_CFUNC UBiDiProps * ubidi_openProps(UErrorCode *pErrorCode); -U_CAPI UBiDiProps * U_EXPORT2 +U_CFUNC UBiDiProps * ubidi_openBinary(const uint8_t *bin, int32_t length, UErrorCode *pErrorCode); -U_CAPI void U_EXPORT2 +U_CFUNC void ubidi_closeProps(UBiDiProps *bdp); -U_CAPI const UBiDiProps * U_EXPORT2 +U_CFUNC const UBiDiProps * ubidi_getSingleton(UErrorCode *pErrorCode); +#if !UBIDI_HARDCODE_DATA /** * Get a singleton dummy object, one that works with no real data. * This can be used when the real data is not available. * Using the dummy can reduce checks for available data after an initial failure. */ -U_CAPI const UBiDiProps * U_EXPORT2 +U_CAPI const UBiDiProps * ubidi_getDummy(UErrorCode *pErrorCode); +#endif - -U_CAPI int32_t U_EXPORT2 +U_CAPI int32_t ubidi_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outData, UErrorCode *pErrorCode); -U_CAPI void U_EXPORT2 +U_CFUNC void ubidi_addPropertyStarts(const UBiDiProps *bdp, const USetAdder *sa, UErrorCode *pErrorCode); /* property access functions */ @@ -66,25 +69,25 @@ ubidi_addPropertyStarts(const UBiDiProps *bdp, const USetAdder *sa, UErrorCode * U_CFUNC int32_t ubidi_getMaxValue(const UBiDiProps *bdp, UProperty which); -U_CAPI UCharDirection U_EXPORT2 +U_CAPI UCharDirection ubidi_getClass(const UBiDiProps *bdp, UChar32 c); -U_CAPI UBool U_EXPORT2 +U_CFUNC UBool ubidi_isMirrored(const UBiDiProps *bdp, UChar32 c); -U_CAPI UChar32 U_EXPORT2 +U_CFUNC UChar32 ubidi_getMirror(const UBiDiProps *bdp, UChar32 c); -U_CAPI UBool U_EXPORT2 +U_CFUNC UBool ubidi_isBidiControl(const UBiDiProps *bdp, UChar32 c); -U_CAPI UBool U_EXPORT2 +U_CFUNC UBool ubidi_isJoinControl(const UBiDiProps *bdp, UChar32 c); -U_CAPI UJoiningType U_EXPORT2 +U_CFUNC UJoiningType ubidi_getJoiningType(const UBiDiProps *bdp, UChar32 c); -U_CAPI UJoiningGroup U_EXPORT2 +U_CFUNC UJoiningGroup ubidi_getJoiningGroup(const UBiDiProps *bdp, UChar32 c); /* file definitions --------------------------------------------------------- */