Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1056)

Side by Side Diff: source/common/unicode/utf8.h

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/common/unicode/uscript.h ('k') | source/common/unicode/utypes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « source/common/unicode/uscript.h ('k') | source/common/unicode/utypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698