OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * | 3 * |
4 * Copyright (C) 1999-2006, International Business Machines | 4 * Copyright (C) 1999-2006, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ****************************************************************************** | 7 ****************************************************************************** |
8 * file name: utf_impl.c | 8 * file name: utf_impl.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: 1999sep13 | 13 * created on: 1999sep13 |
14 * created by: Markus W. Scherer | 14 * created by: Markus W. Scherer |
15 * | 15 * |
16 * This file provides implementation functions for macros in the utfXX.h | 16 * This file provides implementation functions for macros in the utfXX.h |
17 * that would otherwise be too long as macros. | 17 * that would otherwise be too long as macros. |
18 */ | 18 */ |
19 | 19 |
| 20 #include "base/basictypes.h" |
20 #include "base/third_party/icu/icu_utf.h" | 21 #include "base/third_party/icu/icu_utf.h" |
21 | 22 |
22 namespace base_icu { | 23 namespace base_icu { |
23 | 24 |
24 /** | 25 /** |
25 * UTF8_ERROR_VALUE_1 and UTF8_ERROR_VALUE_2 are special error values for UTF-8, | 26 * UTF8_ERROR_VALUE_1 and UTF8_ERROR_VALUE_2 are special error values for UTF-8, |
26 * which need 1 or 2 bytes in UTF-8: | 27 * which need 1 or 2 bytes in UTF-8: |
27 * \code | 28 * \code |
28 * U+0015 = NAK = Negative Acknowledge, C0 control character | 29 * U+0015 = NAK = Negative Acknowledge, C0 control character |
29 * U+009f = highest C1 control character | 30 * U+009f = highest C1 control character |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 c=utf8_errorValue[i-i0]; | 220 c=utf8_errorValue[i-i0]; |
220 } else { | 221 } else { |
221 c=CBU_SENTINEL; | 222 c=CBU_SENTINEL; |
222 } | 223 } |
223 } | 224 } |
224 *pi=i; | 225 *pi=i; |
225 return c; | 226 return c; |
226 } | 227 } |
227 | 228 |
228 } // namespace base_icu | 229 } // namespace base_icu |
OLD | NEW |