OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * | 3 * |
4 * Copyright (C) 1999-2014, International Business Machines | 4 * Copyright (C) 1999-2015, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ****************************************************************************** | 7 ****************************************************************************** |
8 * file name: ubidiln.c | 8 * file name: ubidiln.c |
9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
11 * indentation:4 | 11 * indentation:4 |
12 * | 12 * |
13 * created on: 1999aug06 | 13 * created on: 1999aug06 |
14 * created by: Markus W. Scherer, updated by Matitiahu Allouche | 14 * created by: Markus W. Scherer, updated by Matitiahu Allouche |
15 */ | 15 */ |
16 | 16 |
17 #include "cmemory.h" | 17 #include "cmemory.h" |
18 #include "unicode/utypes.h" | 18 #include "unicode/utypes.h" |
19 #include "unicode/ustring.h" | 19 #include "unicode/ustring.h" |
20 #include "unicode/uchar.h" | 20 #include "unicode/uchar.h" |
21 #include "unicode/ubidi.h" | 21 #include "unicode/ubidi.h" |
22 #include "ubidiimp.h" | 22 #include "ubidiimp.h" |
23 #include "uassert.h" | 23 #include "uassert.h" |
24 | 24 |
25 #ifndef U_COMMON_IMPLEMENTATION | |
26 #error U_COMMON_IMPLEMENTATION not set - must be set for all ICU source files in
common/ - see http://userguide.icu-project.org/howtouseicu | |
27 #endif | |
28 | |
29 /* | 25 /* |
30 * General remarks about the functions in this file: | 26 * General remarks about the functions in this file: |
31 * | 27 * |
32 * These functions deal with the aspects of potentially mixed-directional | 28 * These functions deal with the aspects of potentially mixed-directional |
33 * text in a single paragraph or in a line of a single paragraph | 29 * text in a single paragraph or in a line of a single paragraph |
34 * which has already been processed according to | 30 * which has already been processed according to |
35 * the Unicode 6.3 BiDi algorithm as defined in | 31 * the Unicode 6.3 BiDi algorithm as defined in |
36 * http://www.unicode.org/unicode/reports/tr9/ , version 28, | 32 * http://www.unicode.org/unicode/reports/tr9/ , version 28, |
37 * also described in The Unicode Standard, Version 6.3.0 . | 33 * also described in The Unicode Standard, Version 6.3.0 . |
38 * | 34 * |
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 pi=srcMap+length; | 1338 pi=srcMap+length; |
1343 while(length>0) { | 1339 while(length>0) { |
1344 if(*--pi>=0) { | 1340 if(*--pi>=0) { |
1345 destMap[*pi]=--length; | 1341 destMap[*pi]=--length; |
1346 } else { | 1342 } else { |
1347 --length; | 1343 --length; |
1348 } | 1344 } |
1349 } | 1345 } |
1350 } | 1346 } |
1351 } | 1347 } |
OLD | NEW |