]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/cintltst/cbiditst.h
ICU-400.37.tar.gz
[apple/icu.git] / icuSources / test / cintltst / cbiditst.h
index 81aa1a368b32d6adf4b915526ff5e9305388f1c0..afaffb27d4884bf0af0cebf6388439b39cb345c9 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2004, International Business Machines Corporation and
+ * Copyright (c) 1997-2007, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 /*   file name:  cbiditst.h
@@ -32,34 +32,31 @@ extern "C" {
     is easier with the same names for the BiDi types in the code as there.
     See UCharDirection in uchar.h .
 */
-enum { 
-    L=  U_LEFT_TO_RIGHT,
-    R=  U_RIGHT_TO_LEFT,
-    EN= U_EUROPEAN_NUMBER,
-    ES= U_EUROPEAN_NUMBER_SEPARATOR,
-    ET= U_EUROPEAN_NUMBER_TERMINATOR,
-    AN= U_ARABIC_NUMBER,
-    CS= U_COMMON_NUMBER_SEPARATOR,
-    B=  U_BLOCK_SEPARATOR,
-    S=  U_SEGMENT_SEPARATOR,
-    WS= U_WHITE_SPACE_NEUTRAL,
-    ON= U_OTHER_NEUTRAL,
-    LRE=U_LEFT_TO_RIGHT_EMBEDDING,
-    LRO=U_LEFT_TO_RIGHT_OVERRIDE,
-    AL= U_RIGHT_TO_LEFT_ARABIC,
-    RLE=U_RIGHT_TO_LEFT_EMBEDDING,
-    RLO=U_RIGHT_TO_LEFT_OVERRIDE,
-    PDF=U_POP_DIRECTIONAL_FORMAT,
-    NSM=U_DIR_NON_SPACING_MARK,
-    BN= U_BOUNDARY_NEUTRAL,
-    dirPropCount
-};
+#define L   U_LEFT_TO_RIGHT
+#define R   U_RIGHT_TO_LEFT
+#define EN  U_EUROPEAN_NUMBER
+#define ES  U_EUROPEAN_NUMBER_SEPARATOR
+#define ET  U_EUROPEAN_NUMBER_TERMINATOR
+#define AN  U_ARABIC_NUMBER
+#define CS  U_COMMON_NUMBER_SEPARATOR
+#define B   U_BLOCK_SEPARATOR
+#define S   U_SEGMENT_SEPARATOR
+#define WS  U_WHITE_SPACE_NEUTRAL
+#define ON  U_OTHER_NEUTRAL
+#define LRE U_LEFT_TO_RIGHT_EMBEDDING
+#define LRO U_LEFT_TO_RIGHT_OVERRIDE
+#define AL  U_RIGHT_TO_LEFT_ARABIC
+#define RLE U_RIGHT_TO_LEFT_EMBEDDING
+#define RLO U_RIGHT_TO_LEFT_OVERRIDE
+#define PDF U_POP_DIRECTIONAL_FORMAT
+#define NSM U_DIR_NON_SPACING_MARK
+#define BN  U_BOUNDARY_NEUTRAL
 
-extern const char *
-dirPropNames[dirPropCount];
+extern const char * const
+dirPropNames[U_CHAR_DIRECTION_COUNT];
 
 extern UChar
-charFromDirProp[dirPropCount];
+charFromDirProp[U_CHAR_DIRECTION_COUNT];
 
 typedef struct {
     const uint8_t *text;
@@ -72,10 +69,10 @@ typedef struct {
     const uint8_t *visualMap;
 } BiDiTestData;
 
-extern BiDiTestData
+extern const BiDiTestData
 tests[];
 
-extern int
+extern const int
 bidiTestCount;
 
 #ifdef XP_CPLUSPLUS