1 /********************************************************************
3 * Copyright (c) 1997-2004, 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 .
38 EN
= U_EUROPEAN_NUMBER
,
39 ES
= U_EUROPEAN_NUMBER_SEPARATOR
,
40 ET
= U_EUROPEAN_NUMBER_TERMINATOR
,
42 CS
= U_COMMON_NUMBER_SEPARATOR
,
44 S
= U_SEGMENT_SEPARATOR
,
45 WS
= U_WHITE_SPACE_NEUTRAL
,
47 LRE
=U_LEFT_TO_RIGHT_EMBEDDING
,
48 LRO
=U_LEFT_TO_RIGHT_OVERRIDE
,
49 AL
= U_RIGHT_TO_LEFT_ARABIC
,
50 RLE
=U_RIGHT_TO_LEFT_EMBEDDING
,
51 RLO
=U_RIGHT_TO_LEFT_OVERRIDE
,
52 PDF
=U_POP_DIRECTIONAL_FORMAT
,
53 NSM
=U_DIR_NON_SPACING_MARK
,
54 BN
= U_BOUNDARY_NEUTRAL
,
59 dirPropNames
[dirPropCount
];
62 charFromDirProp
[dirPropCount
];
68 int32_t lineStart
, lineLimit
;
69 UBiDiDirection direction
;
70 UBiDiLevel resultLevel
;
71 const UBiDiLevel
*levels
;
72 const uint8_t *visualMap
;