OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * Copyright (C) 2001-2011, International Business Machines | 3 * Copyright (C) 2001-2014, International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ******************************************************************************* | 5 ******************************************************************************* |
6 * file name: bocsu.c | 6 * file name: bocsu.h |
7 * encoding: US-ASCII | 7 * encoding: US-ASCII |
8 * tab size: 8 (not used) | 8 * tab size: 8 (not used) |
9 * indentation:4 | 9 * indentation:4 |
10 * | 10 * |
11 * Author: Markus W. Scherer | 11 * Author: Markus W. Scherer |
12 * | 12 * |
13 * Modification history: | 13 * Modification history: |
14 * 05/18/2001 weiv Made into separate module | 14 * 05/18/2001 weiv Made into separate module |
15 */ | 15 */ |
16 | 16 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 */ | 144 */ |
145 #define NEGDIVMOD(n, d, m) { \ | 145 #define NEGDIVMOD(n, d, m) { \ |
146 (m)=(n)%(d); \ | 146 (m)=(n)%(d); \ |
147 (n)/=(d); \ | 147 (n)/=(d); \ |
148 if((m)<0) { \ | 148 if((m)<0) { \ |
149 --(n); \ | 149 --(n); \ |
150 (m)+=(d); \ | 150 (m)+=(d); \ |
151 } \ | 151 } \ |
152 } | 152 } |
153 | 153 |
154 U_CFUNC void | 154 U_CFUNC UChar32 |
155 u_writeIdenticalLevelRun(const UChar *s, int32_t length, icu::ByteSink &sink); | 155 u_writeIdenticalLevelRun(UChar32 prev, const UChar *s, int32_t length, icu::Byte
Sink &sink); |
156 | |
157 U_CFUNC int32_t | |
158 u_writeIdenticalLevelRunTwoChars(UChar32 first, UChar32 second, uint8_t *p); | |
159 | |
160 U_CFUNC uint8_t * | |
161 u_writeDiff(int32_t diff, uint8_t *p); | |
162 | 156 |
163 #endif /* #if !UCONFIG_NO_COLLATION */ | 157 #endif /* #if !UCONFIG_NO_COLLATION */ |
164 | 158 |
165 #endif | 159 #endif |
OLD | NEW |