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

Side by Side Diff: base/i18n/utf8_validator_tables.h

Issue 1542323002: Switch to standard integer types in base/i18n/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: header Created 4 years, 12 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 | « base/i18n/timezone.cc ('k') | base/i18n/utf8_validator_tables.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 BASE_I18N_UTF8_VALIDATOR_TABLES_H_ 5 #ifndef BASE_I18N_UTF8_VALIDATOR_TABLES_H_
6 #define BASE_I18N_UTF8_VALIDATOR_TABLES_H_ 6 #define BASE_I18N_UTF8_VALIDATOR_TABLES_H_
7 7
8 #include "base/basictypes.h" 8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include "base/macros.h"
9 12
10 namespace base { 13 namespace base {
11 namespace internal { 14 namespace internal {
12 15
13 // The tables for all states; a list of entries of the form (right_shift, 16 // The tables for all states; a list of entries of the form (right_shift,
14 // next_state, next_state, ....). The right_shifts are used to reduce the 17 // next_state, next_state, ....). The right_shifts are used to reduce the
15 // overall size of the table. The table only covers bytes in the range 18 // overall size of the table. The table only covers bytes in the range
16 // [0x80, 0xFF] to save space. 19 // [0x80, 0xFF] to save space.
17 extern const uint8 kUtf8ValidatorTables[]; 20 extern const uint8_t kUtf8ValidatorTables[];
18 21
19 extern const size_t kUtf8ValidatorTablesSize; 22 extern const size_t kUtf8ValidatorTablesSize;
20 23
21 // The offset of the INVALID state in kUtf8ValidatorTables. 24 // The offset of the INVALID state in kUtf8ValidatorTables.
22 enum { 25 enum {
23 I18N_UTF8_VALIDATOR_INVALID_INDEX = 129 26 I18N_UTF8_VALIDATOR_INVALID_INDEX = 129
24 }; 27 };
25 28
26 } // namespace internal 29 } // namespace internal
27 } // namespace base 30 } // namespace base
28 31
29 #endif // BASE_I18N_UTF8_VALIDATOR_TABLES_H_ 32 #endif // BASE_I18N_UTF8_VALIDATOR_TABLES_H_
OLDNEW
« no previous file with comments | « base/i18n/timezone.cc ('k') | base/i18n/utf8_validator_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698