]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/cbiditst.h
1 /********************************************************************
3 * Copyright (c) 1997-2007, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6 /* file name: cbiditst.h
8 * tab size: 8 (not used)
11 * created on: 1999sep22
12 * created by: Markus W. Scherer
18 #include "unicode/utypes.h"
19 #include "unicode/uchar.h"
20 #include "unicode/ubidi.h"
26 #define MAX_STRING_LENGTH 200
28 /* length of an array */
29 #define ARRAY_LENGTH(array) (sizeof(array)/sizeof(array[0]))
31 /* Comparing the description of the BiDi algorithm with this implementation
32 is easier with the same names for the BiDi types in the code as there.
33 See UCharDirection in uchar.h .
35 #define L U_LEFT_TO_RIGHT
36 #define R U_RIGHT_TO_LEFT
37 #define EN U_EUROPEAN_NUMBER
38 #define ES U_EUROPEAN_NUMBER_SEPARATOR
39 #define ET U_EUROPEAN_NUMBER_TERMINATOR
40 #define AN U_ARABIC_NUMBER
41 #define CS U_COMMON_NUMBER_SEPARATOR
42 #define B U_BLOCK_SEPARATOR
43 #define S U_SEGMENT_SEPARATOR
44 #define WS U_WHITE_SPACE_NEUTRAL
45 #define ON U_OTHER_NEUTRAL
46 #define LRE U_LEFT_TO_RIGHT_EMBEDDING
47 #define LRO U_LEFT_TO_RIGHT_OVERRIDE
48 #define AL U_RIGHT_TO_LEFT_ARABIC
49 #define RLE U_RIGHT_TO_LEFT_EMBEDDING
50 #define RLO U_RIGHT_TO_LEFT_OVERRIDE
51 #define PDF U_POP_DIRECTIONAL_FORMAT
52 #define NSM U_DIR_NON_SPACING_MARK
53 #define BN U_BOUNDARY_NEUTRAL
55 extern const char * const
56 dirPropNames
[U_CHAR_DIRECTION_COUNT
];
59 charFromDirProp
[U_CHAR_DIRECTION_COUNT
];
65 int32_t lineStart
, lineLimit
;
66 UBiDiDirection direction
;
67 UBiDiLevel resultLevel
;
68 const UBiDiLevel
*levels
;
69 const uint8_t *visualMap
;
72 extern const BiDiTestData