| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * | 3 * |
| 4 * Copyright (C) 1999-2004, International Business Machines | 4 * Copyright (C) 1999-2004, 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.h | 8 * file name: utf.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: 1999sep09 | 13 * created on: 1999sep09 |
| 14 * created by: Markus W. Scherer | 14 * created by: Markus W. Scherer |
| 15 */ | 15 */ |
| 16 | 16 |
| 17 #ifndef BASE_THIRD_PARTY_ICU_ICU_UTF_H_ | 17 #ifndef BASE_THIRD_PARTY_ICU_ICU_UTF_H_ |
| 18 #define BASE_THIRD_PARTY_ICU_ICU_UTF_H_ | 18 #define BASE_THIRD_PARTY_ICU_ICU_UTF_H_ |
| 19 | 19 |
| 20 #include "base/basictypes.h" | 20 #include "base/basictypes.h" |
| 21 | 21 |
| 22 namespace base_icu { | 22 namespace base_icu { |
| 23 | 23 |
| 24 typedef uint32 UChar32; | 24 typedef int32 UChar32; |
| 25 typedef uint16 UChar; | 25 typedef uint16 UChar; |
| 26 typedef int8 UBool; | 26 typedef int8 UBool; |
| 27 | 27 |
| 28 // General --------------------------------------------------------------------- | 28 // General --------------------------------------------------------------------- |
| 29 // from utf.h | 29 // from utf.h |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * This value is intended for sentinel values for APIs that | 32 * This value is intended for sentinel values for APIs that |
| 33 * (take or) return single code points (UChar32). | 33 * (take or) return single code points (UChar32). |
| 34 * It is outside of the Unicode code point range 0..0x10ffff. | 34 * It is outside of the Unicode code point range 0..0x10ffff. |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 (s)[(i)++]=(uint16)(c); \ | 382 (s)[(i)++]=(uint16)(c); \ |
| 383 } else { \ | 383 } else { \ |
| 384 (s)[(i)++]=(uint16)(((c)>>10)+0xd7c0); \ | 384 (s)[(i)++]=(uint16)(((c)>>10)+0xd7c0); \ |
| 385 (s)[(i)++]=(uint16)(((c)&0x3ff)|0xdc00); \ | 385 (s)[(i)++]=(uint16)(((c)&0x3ff)|0xdc00); \ |
| 386 } \ | 386 } \ |
| 387 } | 387 } |
| 388 | 388 |
| 389 } // namesapce base_icu | 389 } // namesapce base_icu |
| 390 | 390 |
| 391 #endif // BASE_THIRD_PARTY_ICU_ICU_UTF_H_ | 391 #endif // BASE_THIRD_PARTY_ICU_ICU_UTF_H_ |
| OLD | NEW |