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

Side by Side Diff: base/third_party/icu/icu_utf.h

Issue 380913003: Fixes for re-enabling more MSVC level 4 warnings: base/ edition #2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a few more issues Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « base/strings/string_util.cc ('k') | no next file » | 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-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
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_
OLDNEW
« no previous file with comments | « base/strings/string_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698