| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * | 3 * |
| 4 * Copyright (C) 1999-2010, International Business Machines | 4 * Copyright (C) 1999-2010, International Business Machines |
| 5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
| 6 * | 6 * |
| 7 ******************************************************************************* | 7 ******************************************************************************* |
| 8 * file name: utf16.h | 8 * file name: utf16.h |
| 9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
| 10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 * @see U16_SET_CP_LIMIT_UNSAFE | 605 * @see U16_SET_CP_LIMIT_UNSAFE |
| 606 * @stable ICU 2.4 | 606 * @stable ICU 2.4 |
| 607 */ | 607 */ |
| 608 #define U16_SET_CP_LIMIT(s, start, i, length) { \ | 608 #define U16_SET_CP_LIMIT(s, start, i, length) { \ |
| 609 if((start)<(i) && (i)<(length) && U16_IS_LEAD((s)[(i)-1]) && U16_IS_TRAIL((s
)[i])) { \ | 609 if((start)<(i) && (i)<(length) && U16_IS_LEAD((s)[(i)-1]) && U16_IS_TRAIL((s
)[i])) { \ |
| 610 ++(i); \ | 610 ++(i); \ |
| 611 } \ | 611 } \ |
| 612 } | 612 } |
| 613 | 613 |
| 614 #endif | 614 #endif |
| OLD | NEW |