| 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: utf8.h | 8 * file name: utf8.h |
| 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: 1999sep13 | 13 * created on: 1999sep13 |
| 14 * created by: Markus W. Scherer | 14 * created by: Markus W. Scherer |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 * The length can be negative for a NUL-terminated string. | 808 * The length can be negative for a NUL-terminated string. |
| 809 * | 809 * |
| 810 * @param s const uint8_t * string | 810 * @param s const uint8_t * string |
| 811 * @param start int32_t starting string offset (usually 0) | 811 * @param start int32_t starting string offset (usually 0) |
| 812 * @param i int32_t string offset, must be start<=i<=length | 812 * @param i int32_t string offset, must be start<=i<=length |
| 813 * @param length int32_t string length | 813 * @param length int32_t string length |
| 814 * @see U8_SET_CP_LIMIT_UNSAFE | 814 * @see U8_SET_CP_LIMIT_UNSAFE |
| 815 * @stable ICU 2.4 | 815 * @stable ICU 2.4 |
| 816 */ | 816 */ |
| 817 #define U8_SET_CP_LIMIT(s, start, i, length) { \ | 817 #define U8_SET_CP_LIMIT(s, start, i, length) { \ |
| 818 if((start)<(i) && ((i)<(length) || ((length)<0 && (s)[i]!=0))) { \ | 818 if((start)<(i) && ((i)<(length) || (length)<0)) { \ |
| 819 U8_BACK_1(s, start, i); \ | 819 U8_BACK_1(s, start, i); \ |
| 820 U8_FWD_1(s, i, length); \ | 820 U8_FWD_1(s, i, length); \ |
| 821 } \ | 821 } \ |
| 822 } | 822 } |
| 823 | 823 |
| 824 #endif | 824 #endif |
| OLD | NEW |