Made WebRTC tests report JS errors better.
[chromium-blink-merge.git] / base / i18n / utf8_validator_tables.h
blobb7db56e43e492698a53e855c461c2969ee91b195
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
3 // found in the LICENSE file.
5 #ifndef BASE_I18N_UTF8_VALIDATOR_TABLES_H_
6 #define BASE_I18N_UTF8_VALIDATOR_TABLES_H_
8 #include "base/basictypes.h"
10 namespace base {
11 namespace internal {
13 // 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
15 // overall size of the table. The table only covers bytes in the range
16 // [0x80, 0xFF] to save space.
17 extern const uint8 kUtf8ValidatorTables[];
19 extern const size_t kUtf8ValidatorTablesSize;
21 // The offset of the INVALID state in kUtf8ValidatorTables.
22 enum {
23 I18N_UTF8_VALIDATOR_INVALID_INDEX = 129
26 } // namespace internal
27 } // namespace base
29 #endif // BASE_I18N_UTF8_VALIDATOR_TABLES_H_