| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ENCODINGS_COMPACT_LANG_DET_WIN_CLD_UTF_H_ | 5 #ifndef ENCODINGS_COMPACT_LANG_DET_WIN_CLD_UTF_H_ |
| 6 #define ENCODINGS_COMPACT_LANG_DET_WIN_CLD_UTF_H_ | 6 #define ENCODINGS_COMPACT_LANG_DET_WIN_CLD_UTF_H_ |
| 7 | 7 |
| 8 #if !defined(CLD_WINDOWS) | 8 #if !defined(CLD_WINDOWS) |
| 9 | 9 |
| 10 //#include "third_party/utf/utf.h" | 10 //#include "third_party/utf/utf.h" |
| 11 | 11 |
| 12 #else | 12 #else |
| 13 | 13 |
| 14 enum { | 14 enum { |
| 15 UTFmax = 4, // maximum bytes per rune | 15 UTFmax = 4, // maximum bytes per rune |
| 16 Runesync = 0x80, // cannot represent part of a UTF sequence (<) | 16 Runesync = 0x80, // cannot represent part of a UTF sequence (<) |
| 17 Runeself = 0x80, // rune and UTF sequences are the same (<) | 17 Runeself = 0x80, // rune and UTF sequences are the same (<) |
| 18 Runeerror = 0xFFFD, // decoding error in UTF | 18 Runeerror = 0xFFFD, // decoding error in UTF |
| 19 Runemax = 0x10FFFF, // maximum rune value | 19 Runemax = 0x10FFFF, // maximum rune value |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 #endif // ENCODINGS_COMPACT_LANG_DET_WIN_CLD_UTF_H_ | 24 #endif // ENCODINGS_COMPACT_LANG_DET_WIN_CLD_UTF_H_ |
| OLD | NEW |