]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/ubidi_props.h
ICU-400.37.tar.gz
[apple/icu.git] / icuSources / common / ubidi_props.h
index 7788c8b46c3778ac8085693b8f48e8d505257874..c2384c7cf418674d2648d83540185f11f2a7736e 100644 (file)
@@ -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 --------------------------------------------------------- */