13ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch// Copyright 2012 the V8 project authors. All rights reserved. 2a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// Redistribution and use in source and binary forms, with or without 3a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// modification, are permitted provided that the following conditions are 4a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// met: 5a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// 6a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// * Redistributions of source code must retain the above copyright 7a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// notice, this list of conditions and the following disclaimer. 8a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// * Redistributions in binary form must reproduce the above 9a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// copyright notice, this list of conditions and the following 10a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// disclaimer in the documentation and/or other materials provided 11a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// with the distribution. 12a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// * Neither the name of Google Inc. nor the names of its 13a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// contributors may be used to endorse or promote products derived 14a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// from this software without specific prior written permission. 15a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// 16a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// 283ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch// This file was generated at 2012-03-06 09:55:58.934483 29a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 30a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block#include "unicode-inl.h" 31a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block#include <stdlib.h> 32a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block#include <stdio.h> 33a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 34a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blocknamespace unibrow { 35a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 36a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockstatic const int kStartBit = (1 << 30); 37bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int kChunkBits = (1 << 13); 389fac840a46e8b7e26894f4792ba26dde14c56b04Steve Blockstatic const uchar kSentinel = static_cast<uchar>(-1); 39a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 40a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block/** 41a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * \file 42a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * Implementations of functions for working with unicode. 43a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block */ 44a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 45a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blocktypedef signed short int16_t; // NOLINT 46a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blocktypedef unsigned short uint16_t; // NOLINT 47a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blocktypedef int int32_t; // NOLINT 48a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 49a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// All access to the character table should go through this function. 50a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blocktemplate <int D> 51a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockstatic inline uchar TableGet(const int32_t* table, int index) { 52a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return table[D * index]; 53a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 54a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 55a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockstatic inline uchar GetEntry(int32_t entry) { 56a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return entry & (kStartBit - 1); 57a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 58a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 59a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockstatic inline bool IsStart(int32_t entry) { 60a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return (entry & kStartBit) != 0; 61a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 62a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 63a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block/** 64a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * Look up a character in the unicode table using a mix of binary and 65a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * interpolation search. For a uniformly distributed array 66a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * interpolation search beats binary search by a wide margin. However, 67a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * in this case interpolation search degenerates because of some very 68a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * high values in the lower end of the table so this function uses a 69a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * combination. The average number of steps to look up the information 70a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * about a character is around 10, slightly higher if there is no 71a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block * information available about the character. 72a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block */ 73a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockstatic bool LookupPredicate(const int32_t* table, uint16_t size, uchar chr) { 74a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block static const int kEntryDist = 1; 75a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uint16_t value = chr & (kChunkBits - 1); 76a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned int low = 0; 77a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned int high = size - 1; 78a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block while (high != low) { 79a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned int mid = low + ((high - low) >> 1); 80a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar current_value = GetEntry(TableGet<kEntryDist>(table, mid)); 81a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // If we've found an entry less than or equal to this one, and the 82a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // next one is not also less than this one, we've arrived. 83a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if ((current_value <= value) && 84a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block (mid + 1 == size || 85a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block GetEntry(TableGet<kEntryDist>(table, mid + 1)) > value)) { 86a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block low = mid; 87a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block break; 88a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } else if (current_value < value) { 89a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block low = mid + 1; 90a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } else if (current_value > value) { 91a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // If we've just checked the bottom-most value and it's not 92a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // the one we're looking for, we're done. 93a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (mid == 0) break; 94a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block high = mid - 1; 95a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 96a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 97a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block int32_t field = TableGet<kEntryDist>(table, low); 98a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar entry = GetEntry(field); 99a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block bool is_start = IsStart(field); 1009fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block return (entry == value) || (entry < value && is_start); 101a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 102a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 103a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blocktemplate <int kW> 104a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockstruct MultiCharacterSpecialCase { 1059fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block static const uchar kEndOfEncoding = kSentinel; 106a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar chars[kW]; 107a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block}; 108a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 109a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// Look up the mapping for the given character in the specified table, 110a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// which is of the specified length and uses the specified special case 111a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// mapping for multi-char mappings. The next parameter is the character 112a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// following the one to map. The result will be written in to the result 113a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// buffer and the number of characters written will be returned. Finally, 114a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// if the allow_caching_ptr is non-null then false will be stored in 115a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// it if the result contains multiple characters or depends on the 116a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// context. 117bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch// If ranges are linear, a match between a start and end point is 118bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch// offset by the distance between the match and the start. Otherwise 119bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch// the result is the same as for the start point on the entire range. 120bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochtemplate <bool ranges_are_linear, int kW> 121a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockstatic int LookupMapping(const int32_t* table, 122a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uint16_t size, 123a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block const MultiCharacterSpecialCase<kW>* multi_chars, 124a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar chr, 125a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar next, 126a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar* result, 127a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block bool* allow_caching_ptr) { 128a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block static const int kEntryDist = 2; 129bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch uint16_t key = chr & (kChunkBits - 1); 130bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch uint16_t chunk_start = chr - key; 131a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned int low = 0; 132a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned int high = size - 1; 133a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block while (high != low) { 134a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned int mid = low + ((high - low) >> 1); 135a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar current_value = GetEntry(TableGet<kEntryDist>(table, mid)); 136a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // If we've found an entry less than or equal to this one, and the next one 137a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // is not also less than this one, we've arrived. 138bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch if ((current_value <= key) && 139a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block (mid + 1 == size || 140bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch GetEntry(TableGet<kEntryDist>(table, mid + 1)) > key)) { 141a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block low = mid; 142a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block break; 143bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch } else if (current_value < key) { 144a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block low = mid + 1; 145bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch } else if (current_value > key) { 146a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // If we've just checked the bottom-most value and it's not 147a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // the one we're looking for, we're done. 148a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (mid == 0) break; 149a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block high = mid - 1; 150a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 151a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 152a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block int32_t field = TableGet<kEntryDist>(table, low); 153a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar entry = GetEntry(field); 154a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block bool is_start = IsStart(field); 155bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch bool found = (entry == key) || (entry < key && is_start); 156a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (found) { 157a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block int32_t value = table[2 * low + 1]; 158a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (value == 0) { 159a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // 0 means not present 160a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return 0; 161a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } else if ((value & 3) == 0) { 162a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // Low bits 0 means a constant offset from the given character. 163bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch if (ranges_are_linear) { 164bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result[0] = chr + (value >> 2); 165bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch } else { 166bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result[0] = entry + chunk_start + (value >> 2); 167bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch } 168a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return 1; 169a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } else if ((value & 3) == 1) { 170a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // Low bits 1 means a special case mapping 171a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (allow_caching_ptr) *allow_caching_ptr = false; 172a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block const MultiCharacterSpecialCase<kW>& mapping = multi_chars[value >> 2]; 173bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int length = 0; 174bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch for (length = 0; length < kW; length++) { 175bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch uchar mapped = mapping.chars[length]; 1769fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block if (mapped == MultiCharacterSpecialCase<kW>::kEndOfEncoding) break; 177bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch if (ranges_are_linear) { 178bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result[length] = mapped + (key - entry); 179bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch } else { 180bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result[length] = mapped; 181bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch } 182bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch } 183bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch return length; 184a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } else { 185a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // Low bits 2 means a really really special case 186a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (allow_caching_ptr) *allow_caching_ptr = false; 187a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // The cases of this switch are defined in unicode.py in the 188a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // really_special_cases mapping. 189a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (value >> 2) { 190a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 1: 191a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // Really special case 1: upper case sigma. This letter 192a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // converts to two different lower case sigmas depending on 193a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // whether or not it occurs at the end of a word. 194a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (next != 0 && Letter::Is(next)) { 195a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block result[0] = 0x03C3; 196a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } else { 197a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block result[0] = 0x03C2; 198a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 199a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return 1; 200a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: 201a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return 0; 202a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 203a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return -1; 204a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 205a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } else { 206a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return 0; 207a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 208a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 209a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 210a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockuchar Utf8::CalculateValue(const byte* str, 211a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned length, 212a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned* cursor) { 2133ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch // We only get called for non-ASCII characters. 214a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (length == 1) { 215a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 216a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 217a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 218a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block byte first = str[0]; 219a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block byte second = str[1] ^ 0x80; 220a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (second & 0xC0) { 221a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 222a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 223a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 224a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (first < 0xE0) { 225a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (first < 0xC0) { 226a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 227a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 228a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 2299fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block uchar code_point = ((first << 6) | second) & kMaxTwoByteChar; 2309fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block if (code_point <= kMaxOneByteChar) { 231a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 232a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 233a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 234a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 2; 2359fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block return code_point; 236a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 237a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (length == 2) { 238a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 239a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 240a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 241a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block byte third = str[2] ^ 0x80; 242a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (third & 0xC0) { 243a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 244a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 245a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 246a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (first < 0xF0) { 2479fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block uchar code_point = ((((first << 6) | second) << 6) | third) 2489fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block & kMaxThreeByteChar; 2499fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block if (code_point <= kMaxTwoByteChar) { 250a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 251a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 252a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 253a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 3; 2549fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block return code_point; 255a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 256a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (length == 3) { 257a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 258a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 259a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 260a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block byte fourth = str[3] ^ 0x80; 261a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (fourth & 0xC0) { 262a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 263a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 264a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 265a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (first < 0xF8) { 2669fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block uchar code_point = (((((first << 6 | second) << 6) | third) << 6) | fourth) 2679fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block & kMaxFourByteChar; 2689fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block if (code_point <= kMaxThreeByteChar) { 269a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 270a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 271a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 272a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 4; 2739fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block return code_point; 274a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 275a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *cursor += 1; 276a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return kBadChar; 277a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 278a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 2793ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 280a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockconst byte* Utf8::ReadBlock(Buffer<const char*> str, byte* buffer, 281a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned capacity, unsigned* chars_read_ptr, unsigned* offset_ptr) { 282a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned offset = *offset_ptr; 283a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // Bail out early if we've reached the end of the string. 284a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (offset == str.length()) { 285a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *chars_read_ptr = 0; 286a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return NULL; 287a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 288a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block const byte* data = reinterpret_cast<const byte*>(str.data()); 289a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (data[offset] <= kMaxOneByteChar) { 2903ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch // The next character is an ASCII char so we scan forward over 2913ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch // the following ASCII characters and return the next pure ASCII 292a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block // substring 293a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block const byte* result = data + offset; 294a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block offset++; 295a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block while ((offset < str.length()) && (data[offset] <= kMaxOneByteChar)) 296a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block offset++; 297a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *chars_read_ptr = offset - *offset_ptr; 298a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *offset_ptr = offset; 299a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return result; 300a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } else { 3013ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch // The next character is non-ASCII so we just fill the buffer 302a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned cursor = 0; 303a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned chars_read = 0; 304a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block while (offset < str.length()) { 305a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar c = data[offset]; 306a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (c <= kMaxOneByteChar) { 3073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch // Fast case for ASCII characters 308a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (!CharacterStream::EncodeAsciiCharacter(c, 309a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block buffer, 310a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block capacity, 311a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block cursor)) 312a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block break; 313a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block offset += 1; 314a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } else { 315a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned chars = 0; 316a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c = Utf8::ValueOf(data + offset, str.length() - offset, &chars); 317a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block if (!CharacterStream::EncodeNonAsciiCharacter(c, 318a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block buffer, 319a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block capacity, 320a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block cursor)) 321a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block break; 322a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block offset += chars; 323a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 324a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block chars_read++; 325a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 326a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *offset_ptr = offset; 327a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block *chars_read_ptr = chars_read; 328a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return buffer; 329a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 330a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 331a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 332a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockunsigned CharacterStream::Length() { 333a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block unsigned result = 0; 334a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block while (has_more()) { 335a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block result++; 336a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block GetNext(); 337a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 338a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block Rewind(); 339a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block return result; 340a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 341a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 3423ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochunsigned CharacterStream::Utf16Length() { 3433ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch unsigned result = 0; 3443ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch while (has_more()) { 3453ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch uchar c = GetNext(); 3463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch result += c > Utf16::kMaxNonSurrogateCharCode ? 2 : 1; 3473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch } 3483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch Rewind(); 3493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch return result; 3503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch} 3513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 352a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockvoid CharacterStream::Seek(unsigned position) { 353a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block Rewind(); 354a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block for (unsigned i = 0; i < position; i++) { 355a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block GetNext(); 356a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 357a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 358a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 359a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// Uppercase: point.category == 'Lu' 360a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 3613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kUppercaseTable0Size = 450; 3623ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kUppercaseTable0[450] = { 363bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741889, 90, 1073742016, 214, 1073742040, 222, 256, 258, // NOLINT 364bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 260, 262, 264, 266, 268, 270, 272, 274, // NOLINT 365bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 276, 278, 280, 282, 284, 286, 288, 290, // NOLINT 366bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 292, 294, 296, 298, 300, 302, 304, 306, // NOLINT 367bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 308, 310, 313, 315, 317, 319, 321, 323, // NOLINT 368bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 325, 327, 330, 332, 334, 336, 338, 340, // NOLINT 369bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 342, 344, 346, 348, 350, 352, 354, 356, // NOLINT 370bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 358, 360, 362, 364, 366, 368, 370, 372, // NOLINT 371bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 374, 1073742200, 377, 379, 381, 1073742209, 386, 388, // NOLINT 372bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742214, 391, 1073742217, 395, 1073742222, 401, 1073742227, 404, // NOLINT 373bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742230, 408, 1073742236, 413, 1073742239, 416, 418, 420, // NOLINT 374bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742246, 423, 425, 428, 1073742254, 431, 1073742257, 435, // NOLINT 375bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 437, 1073742263, 440, 444, 452, 455, 458, 461, // NOLINT 376bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 463, 465, 467, 469, 471, 473, 475, 478, // NOLINT 377bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 480, 482, 484, 486, 488, 490, 492, 494, // NOLINT 378bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 497, 500, 1073742326, 504, 506, 508, 510, 512, // NOLINT 379bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 514, 516, 518, 520, 522, 524, 526, 528, // NOLINT 380bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 530, 532, 534, 536, 538, 540, 542, 544, // NOLINT 381bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 546, 548, 550, 552, 554, 556, 558, 560, // NOLINT 382bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 562, 1073742394, 571, 1073742397, 574, 577, 1073742403, 582, // NOLINT 3833ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 584, 586, 588, 590, 880, 882, 886, 902, // NOLINT 3843ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742728, 906, 908, 1073742734, 911, 1073742737, 929, 1073742755, // NOLINT 3853ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 939, 975, 1073742802, 980, 984, 986, 988, 990, // NOLINT 3863ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 992, 994, 996, 998, 1000, 1002, 1004, 1006, // NOLINT 3873ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1012, 1015, 1073742841, 1018, 1073742845, 1071, 1120, 1122, // NOLINT 3883ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1124, 1126, 1128, 1130, 1132, 1134, 1136, 1138, // NOLINT 3893ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1140, 1142, 1144, 1146, 1148, 1150, 1152, 1162, // NOLINT 3903ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1164, 1166, 1168, 1170, 1172, 1174, 1176, 1178, // NOLINT 3913ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1180, 1182, 1184, 1186, 1188, 1190, 1192, 1194, // NOLINT 3923ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1196, 1198, 1200, 1202, 1204, 1206, 1208, 1210, // NOLINT 3933ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1212, 1214, 1073743040, 1217, 1219, 1221, 1223, 1225, // NOLINT 3943ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1227, 1229, 1232, 1234, 1236, 1238, 1240, 1242, // NOLINT 3953ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1244, 1246, 1248, 1250, 1252, 1254, 1256, 1258, // NOLINT 3963ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1260, 1262, 1264, 1266, 1268, 1270, 1272, 1274, // NOLINT 3973ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1276, 1278, 1280, 1282, 1284, 1286, 1288, 1290, // NOLINT 3983ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1292, 1294, 1296, 1298, 1300, 1302, 1304, 1306, // NOLINT 3993ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1308, 1310, 1312, 1314, 1316, 1318, 1073743153, 1366, // NOLINT 4003ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073746080, 4293, 4295, 4301, 7680, 7682, 7684, 7686, // NOLINT 401bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7688, 7690, 7692, 7694, 7696, 7698, 7700, 7702, // NOLINT 402bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7704, 7706, 7708, 7710, 7712, 7714, 7716, 7718, // NOLINT 403bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7720, 7722, 7724, 7726, 7728, 7730, 7732, 7734, // NOLINT 404bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7736, 7738, 7740, 7742, 7744, 7746, 7748, 7750, // NOLINT 405bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7752, 7754, 7756, 7758, 7760, 7762, 7764, 7766, // NOLINT 406bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7768, 7770, 7772, 7774, 7776, 7778, 7780, 7782, // NOLINT 407bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7784, 7786, 7788, 7790, 7792, 7794, 7796, 7798, // NOLINT 408bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7800, 7802, 7804, 7806, 7808, 7810, 7812, 7814, // NOLINT 4093ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7816, 7818, 7820, 7822, 7824, 7826, 7828, 7838, // NOLINT 4103ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7840, 7842, 7844, 7846, 7848, 7850, 7852, 7854, // NOLINT 4113ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7856, 7858, 7860, 7862, 7864, 7866, 7868, 7870, // NOLINT 4123ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7872, 7874, 7876, 7878, 7880, 7882, 7884, 7886, // NOLINT 4133ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7888, 7890, 7892, 7894, 7896, 7898, 7900, 7902, // NOLINT 4143ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7904, 7906, 7908, 7910, 7912, 7914, 7916, 7918, // NOLINT 4153ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7920, 7922, 7924, 7926, 7928, 7930, 7932, 7934, // NOLINT 4163ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749768, 7951, 1073749784, 7965, 1073749800, 7983, 1073749816, 7999, // NOLINT 4173ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749832, 8013, 8025, 8027, 8029, 8031, 1073749864, 8047, // NOLINT 4183ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749944, 8123, 1073749960, 8139, 1073749976, 8155, 1073749992, 8172, // NOLINT 4193ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073750008, 8187 }; // NOLINT 4203ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kUppercaseTable1Size = 86; 4213ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kUppercaseTable1[86] = { 422bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 258, 263, 1073742091, 269, 1073742096, 274, 277, 1073742105, // NOLINT 423bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 285, 292, 294, 296, 1073742122, 301, 1073742128, 307, // NOLINT 424bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742142, 319, 325, 387, 1073744896, 3118, 3168, 1073744994, // NOLINT 4253ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3172, 3175, 3177, 3179, 1073745005, 3184, 3186, 3189, // NOLINT 4263ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745022, 3200, 3202, 3204, 3206, 3208, 3210, 3212, // NOLINT 4273ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3214, 3216, 3218, 3220, 3222, 3224, 3226, 3228, // NOLINT 4283ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3230, 3232, 3234, 3236, 3238, 3240, 3242, 3244, // NOLINT 4293ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3246, 3248, 3250, 3252, 3254, 3256, 3258, 3260, // NOLINT 4303ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3262, 3264, 3266, 3268, 3270, 3272, 3274, 3276, // NOLINT 4313ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3278, 3280, 3282, 3284, 3286, 3288, 3290, 3292, // NOLINT 4323ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3294, 3296, 3298, 3307, 3309, 3314 }; // NOLINT 4333ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kUppercaseTable5Size = 91; 4343ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kUppercaseTable5[91] = { 4353ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1600, 1602, 1604, 1606, 1608, 1610, 1612, 1614, // NOLINT 4363ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1616, 1618, 1620, 1622, 1624, 1626, 1628, 1630, // NOLINT 4373ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1632, 1634, 1636, 1638, 1640, 1642, 1644, 1664, // NOLINT 4383ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1666, 1668, 1670, 1672, 1674, 1676, 1678, 1680, // NOLINT 4393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1682, 1684, 1686, 1826, 1828, 1830, 1832, 1834, // NOLINT 4403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1836, 1838, 1842, 1844, 1846, 1848, 1850, 1852, // NOLINT 4413ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1854, 1856, 1858, 1860, 1862, 1864, 1866, 1868, // NOLINT 4423ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1870, 1872, 1874, 1876, 1878, 1880, 1882, 1884, // NOLINT 4433ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1886, 1888, 1890, 1892, 1894, 1896, 1898, 1900, // NOLINT 4443ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1902, 1913, 1915, 1073743741, 1918, 1920, 1922, 1924, // NOLINT 4453ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1926, 1931, 1933, 1936, 1938, 1952, 1954, 1956, // NOLINT 4463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1958, 1960, 1962 }; // NOLINT 447bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kUppercaseTable7Size = 2; 448bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kUppercaseTable7[2] = { 449bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749793, 7994 }; // NOLINT 450a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockbool Uppercase::Is(uchar c) { 451bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 452a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 453a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 0: return LookupPredicate(kUppercaseTable0, 454a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kUppercaseTable0Size, 455a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 456a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 1: return LookupPredicate(kUppercaseTable1, 457a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kUppercaseTable1Size, 458a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 4593ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch case 5: return LookupPredicate(kUppercaseTable5, 4603ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kUppercaseTable5Size, 4613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch c); 462bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupPredicate(kUppercaseTable7, 463bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kUppercaseTable7Size, 464a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 465a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return false; 466a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 467a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 468a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 469a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// Lowercase: point.category == 'Ll' 470a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 4713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kLowercaseTable0Size = 463; 4723ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kLowercaseTable0[463] = { 4733ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073741921, 122, 181, 1073742047, 246, 1073742072, 255, 257, // NOLINT 4743ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 259, 261, 263, 265, 267, 269, 271, 273, // NOLINT 4753ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 275, 277, 279, 281, 283, 285, 287, 289, // NOLINT 4763ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 291, 293, 295, 297, 299, 301, 303, 305, // NOLINT 4773ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 307, 309, 1073742135, 312, 314, 316, 318, 320, // NOLINT 4783ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 322, 324, 326, 1073742152, 329, 331, 333, 335, // NOLINT 4793ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 337, 339, 341, 343, 345, 347, 349, 351, // NOLINT 4803ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 353, 355, 357, 359, 361, 363, 365, 367, // NOLINT 4813ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 369, 371, 373, 375, 378, 380, 1073742206, 384, // NOLINT 4823ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 387, 389, 392, 1073742220, 397, 402, 405, 1073742233, // NOLINT 4833ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 411, 414, 417, 419, 421, 424, 1073742250, 427, // NOLINT 4843ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 429, 432, 436, 438, 1073742265, 442, 1073742269, 447, // NOLINT 4853ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 454, 457, 460, 462, 464, 466, 468, 470, // NOLINT 4863ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 472, 474, 1073742300, 477, 479, 481, 483, 485, // NOLINT 4873ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 487, 489, 491, 493, 1073742319, 496, 499, 501, // NOLINT 4883ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 505, 507, 509, 511, 513, 515, 517, 519, // NOLINT 4893ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 521, 523, 525, 527, 529, 531, 533, 535, // NOLINT 4903ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 537, 539, 541, 543, 545, 547, 549, 551, // NOLINT 4913ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 553, 555, 557, 559, 561, 1073742387, 569, 572, // NOLINT 4923ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742399, 576, 578, 583, 585, 587, 589, 1073742415, // NOLINT 4933ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 659, 1073742485, 687, 881, 883, 887, 1073742715, 893, // NOLINT 4943ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 912, 1073742764, 974, 1073742800, 977, 1073742805, 983, 985, // NOLINT 4953ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 987, 989, 991, 993, 995, 997, 999, 1001, // NOLINT 4963ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1003, 1005, 1073742831, 1011, 1013, 1016, 1073742843, 1020, // NOLINT 4973ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742896, 1119, 1121, 1123, 1125, 1127, 1129, 1131, // NOLINT 4983ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1133, 1135, 1137, 1139, 1141, 1143, 1145, 1147, // NOLINT 4993ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1149, 1151, 1153, 1163, 1165, 1167, 1169, 1171, // NOLINT 5003ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1173, 1175, 1177, 1179, 1181, 1183, 1185, 1187, // NOLINT 5013ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1189, 1191, 1193, 1195, 1197, 1199, 1201, 1203, // NOLINT 5023ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1205, 1207, 1209, 1211, 1213, 1215, 1218, 1220, // NOLINT 5033ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1222, 1224, 1226, 1228, 1073743054, 1231, 1233, 1235, // NOLINT 5043ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1237, 1239, 1241, 1243, 1245, 1247, 1249, 1251, // NOLINT 5053ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1253, 1255, 1257, 1259, 1261, 1263, 1265, 1267, // NOLINT 5063ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1269, 1271, 1273, 1275, 1277, 1279, 1281, 1283, // NOLINT 5073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1285, 1287, 1289, 1291, 1293, 1295, 1297, 1299, // NOLINT 5083ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1301, 1303, 1305, 1307, 1309, 1311, 1313, 1315, // NOLINT 5093ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1317, 1319, 1073743201, 1415, 1073749248, 7467, 1073749355, 7543, // NOLINT 5103ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749369, 7578, 7681, 7683, 7685, 7687, 7689, 7691, // NOLINT 5113ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7693, 7695, 7697, 7699, 7701, 7703, 7705, 7707, // NOLINT 5123ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7709, 7711, 7713, 7715, 7717, 7719, 7721, 7723, // NOLINT 5133ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7725, 7727, 7729, 7731, 7733, 7735, 7737, 7739, // NOLINT 5143ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7741, 7743, 7745, 7747, 7749, 7751, 7753, 7755, // NOLINT 5153ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7757, 7759, 7761, 7763, 7765, 7767, 7769, 7771, // NOLINT 5163ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7773, 7775, 7777, 7779, 7781, 7783, 7785, 7787, // NOLINT 5173ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7789, 7791, 7793, 7795, 7797, 7799, 7801, 7803, // NOLINT 5183ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7805, 7807, 7809, 7811, 7813, 7815, 7817, 7819, // NOLINT 5193ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7821, 7823, 7825, 7827, 1073749653, 7837, 7839, 7841, // NOLINT 5203ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7843, 7845, 7847, 7849, 7851, 7853, 7855, 7857, // NOLINT 5213ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7859, 7861, 7863, 7865, 7867, 7869, 7871, 7873, // NOLINT 5223ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7875, 7877, 7879, 7881, 7883, 7885, 7887, 7889, // NOLINT 5233ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7891, 7893, 7895, 7897, 7899, 7901, 7903, 7905, // NOLINT 5243ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7907, 7909, 7911, 7913, 7915, 7917, 7919, 7921, // NOLINT 5253ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7923, 7925, 7927, 7929, 7931, 7933, 1073749759, 7943, // NOLINT 5263ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749776, 7957, 1073749792, 7975, 1073749808, 7991, 1073749824, 8005, // NOLINT 5273ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749840, 8023, 1073749856, 8039, 1073749872, 8061, 1073749888, 8071, // NOLINT 5283ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749904, 8087, 1073749920, 8103, 1073749936, 8116, 1073749942, 8119, // NOLINT 5293ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8126, 1073749954, 8132, 1073749958, 8135, 1073749968, 8147, 1073749974, // NOLINT 5303ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8151, 1073749984, 8167, 1073750002, 8180, 1073750006, 8183 }; // NOLINT 5313ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kLowercaseTable1Size = 84; 5323ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kLowercaseTable1[84] = { 5333ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 266, 1073742094, 271, 275, 303, 308, 313, 1073742140, // NOLINT 5343ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 317, 1073742150, 329, 334, 388, 1073744944, 3166, 3169, // NOLINT 5353ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744997, 3174, 3176, 3178, 3180, 3185, 1073745011, 3188, // NOLINT 5363ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745014, 3195, 3201, 3203, 3205, 3207, 3209, 3211, // NOLINT 537bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 3213, 3215, 3217, 3219, 3221, 3223, 3225, 3227, // NOLINT 538bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 3229, 3231, 3233, 3235, 3237, 3239, 3241, 3243, // NOLINT 539bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 3245, 3247, 3249, 3251, 3253, 3255, 3257, 3259, // NOLINT 540bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 3261, 3263, 3265, 3267, 3269, 3271, 3273, 3275, // NOLINT 541bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 3277, 3279, 3281, 3283, 3285, 3287, 3289, 3291, // NOLINT 5423ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3293, 3295, 3297, 1073745123, 3300, 3308, 3310, 3315, // NOLINT 5433ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745152, 3365, 3367, 3373 }; // NOLINT 5443ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kLowercaseTable5Size = 93; 5453ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kLowercaseTable5[93] = { 5463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1601, 1603, 1605, 1607, 1609, 1611, 1613, 1615, // NOLINT 5473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1617, 1619, 1621, 1623, 1625, 1627, 1629, 1631, // NOLINT 5483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1633, 1635, 1637, 1639, 1641, 1643, 1645, 1665, // NOLINT 5493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1667, 1669, 1671, 1673, 1675, 1677, 1679, 1681, // NOLINT 5503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1683, 1685, 1687, 1827, 1829, 1831, 1833, 1835, // NOLINT 5513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1837, 1073743663, 1841, 1843, 1845, 1847, 1849, 1851, // NOLINT 5523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1853, 1855, 1857, 1859, 1861, 1863, 1865, 1867, // NOLINT 5533ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1869, 1871, 1873, 1875, 1877, 1879, 1881, 1883, // NOLINT 5543ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1885, 1887, 1889, 1891, 1893, 1895, 1897, 1899, // NOLINT 5553ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1901, 1903, 1073743729, 1912, 1914, 1916, 1919, 1921, // NOLINT 5563ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1923, 1925, 1927, 1932, 1934, 1937, 1939, 1953, // NOLINT 5573ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1955, 1957, 1959, 1961, 2042 }; // NOLINT 558bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kLowercaseTable7Size = 6; 559bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kLowercaseTable7[6] = { 560bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073748736, 6918, 1073748755, 6935, 1073749825, 8026 }; // NOLINT 561a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockbool Lowercase::Is(uchar c) { 562bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 563a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 564a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 0: return LookupPredicate(kLowercaseTable0, 565a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kLowercaseTable0Size, 566a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 567a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 1: return LookupPredicate(kLowercaseTable1, 568a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kLowercaseTable1Size, 569a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 5703ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch case 5: return LookupPredicate(kLowercaseTable5, 5713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kLowercaseTable5Size, 5723ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch c); 573bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupPredicate(kLowercaseTable7, 574bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kLowercaseTable7Size, 575a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 576a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return false; 577a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 578a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 579a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 580bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch// Letter: point.category in ['Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'Nl' ] 581a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 5823ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kLetterTable0Size = 435; 5833ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kLetterTable0[435] = { 584bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741889, 90, 1073741921, 122, 170, 181, 186, 1073742016, // NOLINT 585bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 214, 1073742040, 246, 1073742072, 705, 1073742534, 721, 1073742560, // NOLINT 5863ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 740, 748, 750, 1073742704, 884, 1073742710, 887, 1073742714, // NOLINT 5873ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 893, 902, 1073742728, 906, 908, 1073742734, 929, 1073742755, // NOLINT 5883ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1013, 1073742839, 1153, 1073742986, 1319, 1073743153, 1366, 1369, // NOLINT 5893ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743201, 1415, 1073743312, 1514, 1073743344, 1522, 1073743392, 1610, // NOLINT 5903ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743470, 1647, 1073743473, 1747, 1749, 1073743589, 1766, 1073743598, // NOLINT 5913ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1775, 1073743610, 1788, 1791, 1808, 1073743634, 1839, 1073743693, // NOLINT 5923ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1957, 1969, 1073743818, 2026, 1073743860, 2037, 2042, 1073743872, // NOLINT 5933ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2069, 2074, 2084, 2088, 1073743936, 2136, 2208, 1073744034, // NOLINT 5943ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2220, 1073744132, 2361, 2365, 2384, 1073744216, 2401, 1073744241, // NOLINT 5953ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2423, 1073744249, 2431, 1073744261, 2444, 1073744271, 2448, 1073744275, // NOLINT 5963ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2472, 1073744298, 2480, 2482, 1073744310, 2489, 2493, 2510, // NOLINT 5973ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744348, 2525, 1073744351, 2529, 1073744368, 2545, 1073744389, 2570, // NOLINT 5983ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744399, 2576, 1073744403, 2600, 1073744426, 2608, 1073744434, 2611, // NOLINT 5993ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744437, 2614, 1073744440, 2617, 1073744473, 2652, 2654, 1073744498, // NOLINT 6003ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2676, 1073744517, 2701, 1073744527, 2705, 1073744531, 2728, 1073744554, // NOLINT 6013ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2736, 1073744562, 2739, 1073744565, 2745, 2749, 2768, 1073744608, // NOLINT 6023ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2785, 1073744645, 2828, 1073744655, 2832, 1073744659, 2856, 1073744682, // NOLINT 6033ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2864, 1073744690, 2867, 1073744693, 2873, 2877, 1073744732, 2909, // NOLINT 6043ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744735, 2913, 2929, 2947, 1073744773, 2954, 1073744782, 2960, // NOLINT 6053ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744786, 2965, 1073744793, 2970, 2972, 1073744798, 2975, 1073744803, // NOLINT 6063ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2980, 1073744808, 2986, 1073744814, 3001, 3024, 1073744901, 3084, // NOLINT 6073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744910, 3088, 1073744914, 3112, 1073744938, 3123, 1073744949, 3129, // NOLINT 6083ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3133, 1073744984, 3161, 1073744992, 3169, 1073745029, 3212, 1073745038, // NOLINT 6093ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3216, 1073745042, 3240, 1073745066, 3251, 1073745077, 3257, 3261, // NOLINT 6103ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3294, 1073745120, 3297, 1073745137, 3314, 1073745157, 3340, 1073745166, // NOLINT 6113ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3344, 1073745170, 3386, 3389, 3406, 1073745248, 3425, 1073745274, // NOLINT 6123ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3455, 1073745285, 3478, 1073745306, 3505, 1073745331, 3515, 3517, // NOLINT 6133ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745344, 3526, 1073745409, 3632, 1073745458, 3635, 1073745472, 3654, // NOLINT 6143ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745537, 3714, 3716, 1073745543, 3720, 3722, 3725, 1073745556, // NOLINT 6153ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3735, 1073745561, 3743, 1073745569, 3747, 3749, 3751, 1073745578, // NOLINT 6163ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3755, 1073745581, 3760, 1073745586, 3763, 3773, 1073745600, 3780, // NOLINT 6173ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3782, 1073745628, 3807, 3840, 1073745728, 3911, 1073745737, 3948, // NOLINT 6183ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745800, 3980, 1073745920, 4138, 4159, 1073746000, 4181, 1073746010, // NOLINT 6193ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4189, 4193, 1073746021, 4198, 1073746030, 4208, 1073746037, 4225, // NOLINT 6203ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4238, 1073746080, 4293, 4295, 4301, 1073746128, 4346, 1073746172, // NOLINT 6213ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4680, 1073746506, 4685, 1073746512, 4694, 4696, 1073746522, 4701, // NOLINT 6223ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073746528, 4744, 1073746570, 4749, 1073746576, 4784, 1073746610, 4789, // NOLINT 6233ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073746616, 4798, 4800, 1073746626, 4805, 1073746632, 4822, 1073746648, // NOLINT 6243ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4880, 1073746706, 4885, 1073746712, 4954, 1073746816, 5007, 1073746848, // NOLINT 6253ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 5108, 1073746945, 5740, 1073747567, 5759, 1073747585, 5786, 1073747616, // NOLINT 6263ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 5866, 1073747694, 5872, 1073747712, 5900, 1073747726, 5905, 1073747744, // NOLINT 6273ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 5937, 1073747776, 5969, 1073747808, 5996, 1073747822, 6000, 1073747840, // NOLINT 6283ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 6067, 6103, 6108, 1073748000, 6263, 1073748096, 6312, 6314, // NOLINT 6293ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073748144, 6389, 1073748224, 6428, 1073748304, 6509, 1073748336, 6516, // NOLINT 6303ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073748352, 6571, 1073748417, 6599, 1073748480, 6678, 1073748512, 6740, // NOLINT 6313ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 6823, 1073748741, 6963, 1073748805, 6987, 1073748867, 7072, 1073748910, // NOLINT 6323ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7087, 1073748922, 7141, 1073748992, 7203, 1073749069, 7247, 1073749082, // NOLINT 6333ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7293, 1073749225, 7404, 1073749230, 7409, 1073749237, 7414, 1073749248, // NOLINT 6343ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7615, 1073749504, 7957, 1073749784, 7965, 1073749792, 8005, 1073749832, // NOLINT 6353ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8013, 1073749840, 8023, 8025, 8027, 8029, 1073749855, 8061, // NOLINT 6363ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749888, 8116, 1073749942, 8124, 8126, 1073749954, 8132, 1073749958, // NOLINT 6373ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8140, 1073749968, 8147, 1073749974, 8155, 1073749984, 8172, 1073750002, // NOLINT 6383ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8180, 1073750006, 8188 }; // NOLINT 6393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kLetterTable1Size = 87; 6403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kLetterTable1[87] = { 6413ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 113, 127, 1073741968, 156, 258, 263, 1073742090, 275, // NOLINT 642bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 277, 1073742105, 285, 292, 294, 296, 1073742122, 301, // NOLINT 643bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742127, 313, 1073742140, 319, 1073742149, 329, 334, 1073742176, // NOLINT 6443ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 392, 1073744896, 3118, 1073744944, 3166, 1073744992, 3300, 1073745131, // NOLINT 6453ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3310, 1073745138, 3315, 1073745152, 3365, 3367, 3373, 1073745200, // NOLINT 6463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3431, 3439, 1073745280, 3478, 1073745312, 3494, 1073745320, 3502, // NOLINT 6473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745328, 3510, 1073745336, 3518, 1073745344, 3526, 1073745352, 3534, // NOLINT 6483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745360, 3542, 1073745368, 3550, 3631, 1073745925, 4103, 1073745953, // NOLINT 6493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4137, 1073745969, 4149, 1073745976, 4156, 1073745985, 4246, 1073746077, // NOLINT 6503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4255, 1073746081, 4346, 1073746172, 4351, 1073746181, 4397, 1073746225, // NOLINT 6513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4494, 1073746336, 4538, 1073746416, 4607, 1073746944, 8191 }; // NOLINT 652bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kLetterTable2Size = 4; 653bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kLetterTable2[4] = { 654bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741824, 3509, 1073745408, 8191 }; // NOLINT 655bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kLetterTable3Size = 2; 656bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kLetterTable3[2] = { 657bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741824, 8191 }; // NOLINT 658a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockstatic const uint16_t kLetterTable4Size = 2; 659bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kLetterTable4[2] = { 6603ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073741824, 8140 }; // NOLINT 6613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kLetterTable5Size = 88; 6623ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kLetterTable5[88] = { 6633ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073741824, 1164, 1073743056, 1277, 1073743104, 1548, 1073743376, 1567, // NOLINT 6643ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743402, 1579, 1073743424, 1646, 1073743487, 1687, 1073743520, 1775, // NOLINT 6653ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743639, 1823, 1073743650, 1928, 1073743755, 1934, 1073743760, 1939, // NOLINT 6663ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743776, 1962, 1073743864, 2049, 1073743875, 2053, 1073743879, 2058, // NOLINT 6673ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743884, 2082, 1073743936, 2163, 1073744002, 2227, 1073744114, 2295, // NOLINT 6683ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2299, 1073744138, 2341, 1073744176, 2374, 1073744224, 2428, 1073744260, // NOLINT 6693ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2482, 2511, 1073744384, 2600, 1073744448, 2626, 1073744452, 2635, // NOLINT 6703ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744480, 2678, 2682, 1073744512, 2735, 2737, 1073744565, 2742, // NOLINT 6713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744569, 2749, 2752, 2754, 1073744603, 2781, 1073744608, 2794, // NOLINT 6723ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744626, 2804, 1073744641, 2822, 1073744649, 2830, 1073744657, 2838, // NOLINT 6733ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744672, 2854, 1073744680, 2862, 1073744832, 3042, 1073744896, 8191 }; // NOLINT 6743ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kLetterTable6Size = 6; 6753ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kLetterTable6[6] = { 6763ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073741824, 6051, 1073747888, 6086, 1073747915, 6139 }; // NOLINT 6773ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kLetterTable7Size = 48; 6783ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kLetterTable7[48] = { 6793ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073748224, 6765, 1073748592, 6873, 1073748736, 6918, 1073748755, 6935, // NOLINT 6803ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 6941, 1073748767, 6952, 1073748778, 6966, 1073748792, 6972, 6974, // NOLINT 6813ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073748800, 6977, 1073748803, 6980, 1073748806, 7089, 1073748947, 7485, // NOLINT 6823ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749328, 7567, 1073749394, 7623, 1073749488, 7675, 1073749616, 7796, // NOLINT 6833ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749622, 7932, 1073749793, 7994, 1073749825, 8026, 1073749862, 8126, // NOLINT 6843ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749954, 8135, 1073749962, 8143, 1073749970, 8151, 1073749978, 8156 }; // NOLINT 685a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockbool Letter::Is(uchar c) { 686bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 687a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 688a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 0: return LookupPredicate(kLetterTable0, 689a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kLetterTable0Size, 690a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 691a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 1: return LookupPredicate(kLetterTable1, 692a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kLetterTable1Size, 693a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 694a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 2: return LookupPredicate(kLetterTable2, 695a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kLetterTable2Size, 696a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 697a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 3: return LookupPredicate(kLetterTable3, 698a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kLetterTable3Size, 699a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 700a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 4: return LookupPredicate(kLetterTable4, 701a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kLetterTable4Size, 702a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 703a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 5: return LookupPredicate(kLetterTable5, 704a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kLetterTable5Size, 705a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 706bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 6: return LookupPredicate(kLetterTable6, 707bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kLetterTable6Size, 708bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c); 709bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupPredicate(kLetterTable7, 710bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kLetterTable7Size, 711bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c); 712a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return false; 713a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 714a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 715a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 716a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// Space: point.category == 'Zs' 717a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 718bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kSpaceTable0Size = 4; 719bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kSpaceTable0[4] = { 720bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 32, 160, 5760, 6158 }; // NOLINT 721bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kSpaceTable1Size = 5; 722bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kSpaceTable1[5] = { 723bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741824, 10, 47, 95, 4096 }; // NOLINT 724a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockbool Space::Is(uchar c) { 725bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 726a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 727a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 0: return LookupPredicate(kSpaceTable0, 728a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kSpaceTable0Size, 729a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 730bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 1: return LookupPredicate(kSpaceTable1, 731bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kSpaceTable1Size, 732bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c); 733a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return false; 734a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 735a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 736a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 737bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch// Number: point.category == 'Nd' 738a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 7393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kNumberTable0Size = 56; 7403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kNumberTable0[56] = { 741bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741872, 57, 1073743456, 1641, 1073743600, 1785, 1073743808, 1993, // NOLINT 742bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073744230, 2415, 1073744358, 2543, 1073744486, 2671, 1073744614, 2799, // NOLINT 743bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073744742, 2927, 1073744870, 3055, 1073744998, 3183, 1073745126, 3311, // NOLINT 744bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073745254, 3439, 1073745488, 3673, 1073745616, 3801, 1073745696, 3881, // NOLINT 7453ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745984, 4169, 1073746064, 4249, 1073747936, 6121, 1073747984, 6169, // NOLINT 7463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073748294, 6479, 1073748432, 6617, 1073748608, 6793, 1073748624, 6809, // NOLINT 7473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073748816, 7001, 1073748912, 7097, 1073749056, 7241, 1073749072, 7257 }; // NOLINT 7483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kNumberTable5Size = 12; 7493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kNumberTable5[12] = { 7503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743392, 1577, 1073744080, 2265, 1073744128, 2313, 1073744336, 2521, // NOLINT 7513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744464, 2649, 1073744880, 3065 }; // NOLINT 752bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kNumberTable7Size = 2; 753bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kNumberTable7[2] = { 754bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749776, 7961 }; // NOLINT 755a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockbool Number::Is(uchar c) { 756bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 757a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 758a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 0: return LookupPredicate(kNumberTable0, 759a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kNumberTable0Size, 760a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 7613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch case 5: return LookupPredicate(kNumberTable5, 7623ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kNumberTable5Size, 7633ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch c); 764bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupPredicate(kNumberTable7, 765bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kNumberTable7Size, 766a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 767a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return false; 768a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 769a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 770a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 771a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// WhiteSpace: 'Ws' in point.properties 772a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 773bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kWhiteSpaceTable0Size = 7; 774bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kWhiteSpaceTable0[7] = { 775bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741833, 13, 32, 133, 160, 5760, 6158 }; // NOLINT 776bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kWhiteSpaceTable1Size = 7; 777bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kWhiteSpaceTable1[7] = { 778bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741824, 10, 1073741864, 41, 47, 95, 4096 }; // NOLINT 779a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockbool WhiteSpace::Is(uchar c) { 780bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 781a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 782a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 0: return LookupPredicate(kWhiteSpaceTable0, 783a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kWhiteSpaceTable0Size, 784a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 785bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 1: return LookupPredicate(kWhiteSpaceTable1, 786bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kWhiteSpaceTable1Size, 787bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c); 788a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return false; 789a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 790a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 791a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 792a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// LineTerminator: 'Lt' in point.properties 793a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 794bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kLineTerminatorTable0Size = 2; 795bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kLineTerminatorTable0[2] = { 796bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 10, 13 }; // NOLINT 797bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kLineTerminatorTable1Size = 2; 798bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kLineTerminatorTable1[2] = { 799bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741864, 41 }; // NOLINT 800a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockbool LineTerminator::Is(uchar c) { 801bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 802a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 803a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 0: return LookupPredicate(kLineTerminatorTable0, 804a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kLineTerminatorTable0Size, 805a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 806bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 1: return LookupPredicate(kLineTerminatorTable1, 807bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kLineTerminatorTable1Size, 808bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c); 809a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return false; 810a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 811a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 812a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 813a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// CombiningMark: point.category in ['Mn', 'Mc'] 814a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 8153ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kCombiningMarkTable0Size = 258; 8163ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kCombiningMarkTable0[258] = { 8173ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742592, 879, 1073742979, 1159, 1073743249, 1469, 1471, 1073743297, // NOLINT 8183ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1474, 1073743300, 1477, 1479, 1073743376, 1562, 1073743435, 1631, // NOLINT 819bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1648, 1073743574, 1756, 1073743583, 1764, 1073743591, 1768, 1073743594, // NOLINT 820bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1773, 1809, 1073743664, 1866, 1073743782, 1968, 1073743851, 2035, // NOLINT 8213ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743894, 2073, 1073743899, 2083, 1073743909, 2087, 1073743913, 2093, // NOLINT 8223ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743961, 2139, 1073744100, 2302, 1073744128, 2307, 1073744186, 2364, // NOLINT 8233ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744190, 2383, 1073744209, 2391, 1073744226, 2403, 1073744257, 2435, // NOLINT 8243ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2492, 1073744318, 2500, 1073744327, 2504, 1073744331, 2509, 2519, // NOLINT 8253ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744354, 2531, 1073744385, 2563, 2620, 1073744446, 2626, 1073744455, // NOLINT 8263ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2632, 1073744459, 2637, 2641, 1073744496, 2673, 2677, 1073744513, // NOLINT 8273ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2691, 2748, 1073744574, 2757, 1073744583, 2761, 1073744587, 2765, // NOLINT 8283ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744610, 2787, 1073744641, 2819, 2876, 1073744702, 2884, 1073744711, // NOLINT 8293ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2888, 1073744715, 2893, 1073744726, 2903, 1073744738, 2915, 2946, // NOLINT 8303ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744830, 3010, 1073744838, 3016, 1073744842, 3021, 3031, 1073744897, // NOLINT 8313ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3075, 1073744958, 3140, 1073744966, 3144, 1073744970, 3149, 1073744981, // NOLINT 8323ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3158, 1073744994, 3171, 1073745026, 3203, 3260, 1073745086, 3268, // NOLINT 8333ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745094, 3272, 1073745098, 3277, 1073745109, 3286, 1073745122, 3299, // NOLINT 8343ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745154, 3331, 1073745214, 3396, 1073745222, 3400, 1073745226, 3405, // NOLINT 8353ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3415, 1073745250, 3427, 1073745282, 3459, 3530, 1073745359, 3540, // NOLINT 8363ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3542, 1073745368, 3551, 1073745394, 3571, 3633, 1073745460, 3642, // NOLINT 8373ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745479, 3662, 3761, 1073745588, 3769, 1073745595, 3772, 1073745608, // NOLINT 8383ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3789, 1073745688, 3865, 3893, 3895, 3897, 1073745726, 3903, // NOLINT 8393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745777, 3972, 1073745798, 3975, 1073745805, 3991, 1073745817, 4028, // NOLINT 8403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4038, 1073745963, 4158, 1073746006, 4185, 1073746014, 4192, 1073746018, // NOLINT 8413ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4196, 1073746023, 4205, 1073746033, 4212, 1073746050, 4237, 4239, // NOLINT 8423ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073746074, 4253, 1073746781, 4959, 1073747730, 5908, 1073747762, 5940, // NOLINT 8433ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073747794, 5971, 1073747826, 6003, 1073747892, 6099, 6109, 1073747979, // NOLINT 8443ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 6157, 6313, 1073748256, 6443, 1073748272, 6459, 1073748400, 6592, // NOLINT 8453ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073748424, 6601, 1073748503, 6683, 1073748565, 6750, 1073748576, 6780, // NOLINT 8463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 6783, 1073748736, 6916, 1073748788, 6980, 1073748843, 7027, 1073748864, // NOLINT 8473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7042, 1073748897, 7085, 1073748966, 7155, 1073749028, 7223, 1073749200, // NOLINT 8483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7378, 1073749204, 7400, 7405, 1073749234, 7412, 1073749440, 7654, // NOLINT 8493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749500, 7679 }; // NOLINT 8503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kCombiningMarkTable1Size = 14; 8513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kCombiningMarkTable1[14] = { 8523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742032, 220, 225, 1073742053, 240, 1073745135, 3313, 3455, // NOLINT 8533ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745376, 3583, 1073745962, 4143, 1073746073, 4250 }; // NOLINT 8543ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kCombiningMarkTable5Size = 47; 8553ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kCombiningMarkTable5[47] = { 8563ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1647, 1073743476, 1661, 1695, 1073743600, 1777, 2050, 2054, // NOLINT 8573ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2059, 1073743907, 2087, 1073744000, 2177, 1073744052, 2244, 1073744096, // NOLINT 8583ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2289, 1073744166, 2349, 1073744199, 2387, 1073744256, 2435, 1073744307, // NOLINT 8593ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2496, 1073744425, 2614, 2627, 1073744460, 2637, 2683, 2736, // NOLINT 8603ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073744562, 2740, 1073744567, 2744, 1073744574, 2751, 2753, 1073744619, // NOLINT 8613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 2799, 1073744629, 2806, 1073744867, 3050, 1073744876, 3053 }; // NOLINT 862bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kCombiningMarkTable7Size = 5; 863bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kCombiningMarkTable7[5] = { 8643ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 6942, 1073749504, 7695, 1073749536, 7718 }; // NOLINT 865a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockbool CombiningMark::Is(uchar c) { 866bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 867a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 868a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 0: return LookupPredicate(kCombiningMarkTable0, 869a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kCombiningMarkTable0Size, 870a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 871a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 1: return LookupPredicate(kCombiningMarkTable1, 872a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kCombiningMarkTable1Size, 873a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 874bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 5: return LookupPredicate(kCombiningMarkTable5, 875bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kCombiningMarkTable5Size, 876a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 877bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupPredicate(kCombiningMarkTable7, 878bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kCombiningMarkTable7Size, 879a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 880a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return false; 881a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 882a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 883a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 884a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block// ConnectorPunctuation: point.category == 'Pc' 885a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 886bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kConnectorPunctuationTable0Size = 1; 887bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kConnectorPunctuationTable0[1] = { 888bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 95 }; // NOLINT 889bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kConnectorPunctuationTable1Size = 3; 890bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kConnectorPunctuationTable1[3] = { 891bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741887, 64, 84 }; // NOLINT 892bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kConnectorPunctuationTable7Size = 5; 893bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kConnectorPunctuationTable7[5] = { 894bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749555, 7732, 1073749581, 7759, 7999 }; // NOLINT 895a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockbool ConnectorPunctuation::Is(uchar c) { 896bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 897a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 898a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 0: return LookupPredicate(kConnectorPunctuationTable0, 899a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kConnectorPunctuationTable0Size, 900a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 901a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block case 1: return LookupPredicate(kConnectorPunctuationTable1, 902a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block kConnectorPunctuationTable1Size, 903a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block c); 904bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupPredicate(kConnectorPunctuationTable7, 905bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kConnectorPunctuationTable7Size, 906bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c); 907a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return false; 908a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 909a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 910a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 911bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<2> kToLowercaseMultiStrings0[2] = { // NOLINT 9129fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{105, 775}}, {{kSentinel}} }; // NOLINT 9133ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kToLowercaseTable0Size = 483; // NOLINT 9143ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kToLowercaseTable0[966] = { 915bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741889, 128, 90, 128, 1073742016, 128, 214, 128, 1073742040, 128, 222, 128, 256, 4, 258, 4, // NOLINT 916bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 260, 4, 262, 4, 264, 4, 266, 4, 268, 4, 270, 4, 272, 4, 274, 4, // NOLINT 917bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 276, 4, 278, 4, 280, 4, 282, 4, 284, 4, 286, 4, 288, 4, 290, 4, // NOLINT 918bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 292, 4, 294, 4, 296, 4, 298, 4, 300, 4, 302, 4, 304, 1, 306, 4, // NOLINT 919bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 308, 4, 310, 4, 313, 4, 315, 4, 317, 4, 319, 4, 321, 4, 323, 4, // NOLINT 920bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 325, 4, 327, 4, 330, 4, 332, 4, 334, 4, 336, 4, 338, 4, 340, 4, // NOLINT 921bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 342, 4, 344, 4, 346, 4, 348, 4, 350, 4, 352, 4, 354, 4, 356, 4, // NOLINT 922bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 358, 4, 360, 4, 362, 4, 364, 4, 366, 4, 368, 4, 370, 4, 372, 4, // NOLINT 923bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 374, 4, 376, -484, 377, 4, 379, 4, 381, 4, 385, 840, 386, 4, 388, 4, // NOLINT 924bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 390, 824, 391, 4, 1073742217, 820, 394, 820, 395, 4, 398, 316, 399, 808, 400, 812, // NOLINT 925bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 401, 4, 403, 820, 404, 828, 406, 844, 407, 836, 408, 4, 412, 844, 413, 852, // NOLINT 926bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 415, 856, 416, 4, 418, 4, 420, 4, 422, 872, 423, 4, 425, 872, 428, 4, // NOLINT 927bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 430, 872, 431, 4, 1073742257, 868, 434, 868, 435, 4, 437, 4, 439, 876, 440, 4, // NOLINT 928bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 444, 4, 452, 8, 453, 4, 455, 8, 456, 4, 458, 8, 459, 4, 461, 4, // NOLINT 929bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 463, 4, 465, 4, 467, 4, 469, 4, 471, 4, 473, 4, 475, 4, 478, 4, // NOLINT 930bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 480, 4, 482, 4, 484, 4, 486, 4, 488, 4, 490, 4, 492, 4, 494, 4, // NOLINT 931bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 497, 8, 498, 4, 500, 4, 502, -388, 503, -224, 504, 4, 506, 4, 508, 4, // NOLINT 932bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 510, 4, 512, 4, 514, 4, 516, 4, 518, 4, 520, 4, 522, 4, 524, 4, // NOLINT 933bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 526, 4, 528, 4, 530, 4, 532, 4, 534, 4, 536, 4, 538, 4, 540, 4, // NOLINT 934bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 542, 4, 544, -520, 546, 4, 548, 4, 550, 4, 552, 4, 554, 4, 556, 4, // NOLINT 935bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 558, 4, 560, 4, 562, 4, 570, 43180, 571, 4, 573, -652, 574, 43168, 577, 4, // NOLINT 936bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 579, -780, 580, 276, 581, 284, 582, 4, 584, 4, 586, 4, 588, 4, 590, 4, // NOLINT 9373ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 880, 4, 882, 4, 886, 4, 902, 152, 1073742728, 148, 906, 148, 908, 256, 1073742734, 252, // NOLINT 9383ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 911, 252, 1073742737, 128, 929, 128, 931, 6, 1073742756, 128, 939, 128, 975, 32, 984, 4, // NOLINT 9393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 986, 4, 988, 4, 990, 4, 992, 4, 994, 4, 996, 4, 998, 4, 1000, 4, // NOLINT 9403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1002, 4, 1004, 4, 1006, 4, 1012, -240, 1015, 4, 1017, -28, 1018, 4, 1073742845, -520, // NOLINT 9413ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1023, -520, 1073742848, 320, 1039, 320, 1073742864, 128, 1071, 128, 1120, 4, 1122, 4, 1124, 4, // NOLINT 9423ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1126, 4, 1128, 4, 1130, 4, 1132, 4, 1134, 4, 1136, 4, 1138, 4, 1140, 4, // NOLINT 9433ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1142, 4, 1144, 4, 1146, 4, 1148, 4, 1150, 4, 1152, 4, 1162, 4, 1164, 4, // NOLINT 9443ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1166, 4, 1168, 4, 1170, 4, 1172, 4, 1174, 4, 1176, 4, 1178, 4, 1180, 4, // NOLINT 9453ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1182, 4, 1184, 4, 1186, 4, 1188, 4, 1190, 4, 1192, 4, 1194, 4, 1196, 4, // NOLINT 9463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1198, 4, 1200, 4, 1202, 4, 1204, 4, 1206, 4, 1208, 4, 1210, 4, 1212, 4, // NOLINT 9473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1214, 4, 1216, 60, 1217, 4, 1219, 4, 1221, 4, 1223, 4, 1225, 4, 1227, 4, // NOLINT 9483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1229, 4, 1232, 4, 1234, 4, 1236, 4, 1238, 4, 1240, 4, 1242, 4, 1244, 4, // NOLINT 9493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1246, 4, 1248, 4, 1250, 4, 1252, 4, 1254, 4, 1256, 4, 1258, 4, 1260, 4, // NOLINT 9503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1262, 4, 1264, 4, 1266, 4, 1268, 4, 1270, 4, 1272, 4, 1274, 4, 1276, 4, // NOLINT 9513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1278, 4, 1280, 4, 1282, 4, 1284, 4, 1286, 4, 1288, 4, 1290, 4, 1292, 4, // NOLINT 9523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1294, 4, 1296, 4, 1298, 4, 1300, 4, 1302, 4, 1304, 4, 1306, 4, 1308, 4, // NOLINT 9533ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1310, 4, 1312, 4, 1314, 4, 1316, 4, 1318, 4, 1073743153, 192, 1366, 192, 1073746080, 29056, // NOLINT 9543ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 4293, 29056, 4295, 29056, 4301, 29056, 7680, 4, 7682, 4, 7684, 4, 7686, 4, 7688, 4, // NOLINT 955bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7690, 4, 7692, 4, 7694, 4, 7696, 4, 7698, 4, 7700, 4, 7702, 4, 7704, 4, // NOLINT 956bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7706, 4, 7708, 4, 7710, 4, 7712, 4, 7714, 4, 7716, 4, 7718, 4, 7720, 4, // NOLINT 957bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7722, 4, 7724, 4, 7726, 4, 7728, 4, 7730, 4, 7732, 4, 7734, 4, 7736, 4, // NOLINT 958bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7738, 4, 7740, 4, 7742, 4, 7744, 4, 7746, 4, 7748, 4, 7750, 4, 7752, 4, // NOLINT 959bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7754, 4, 7756, 4, 7758, 4, 7760, 4, 7762, 4, 7764, 4, 7766, 4, 7768, 4, // NOLINT 960bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7770, 4, 7772, 4, 7774, 4, 7776, 4, 7778, 4, 7780, 4, 7782, 4, 7784, 4, // NOLINT 961bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7786, 4, 7788, 4, 7790, 4, 7792, 4, 7794, 4, 7796, 4, 7798, 4, 7800, 4, // NOLINT 962bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 7802, 4, 7804, 4, 7806, 4, 7808, 4, 7810, 4, 7812, 4, 7814, 4, 7816, 4, // NOLINT 9633ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7818, 4, 7820, 4, 7822, 4, 7824, 4, 7826, 4, 7828, 4, 7838, -30460, 7840, 4, // NOLINT 9643ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7842, 4, 7844, 4, 7846, 4, 7848, 4, 7850, 4, 7852, 4, 7854, 4, 7856, 4, // NOLINT 9653ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7858, 4, 7860, 4, 7862, 4, 7864, 4, 7866, 4, 7868, 4, 7870, 4, 7872, 4, // NOLINT 9663ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7874, 4, 7876, 4, 7878, 4, 7880, 4, 7882, 4, 7884, 4, 7886, 4, 7888, 4, // NOLINT 9673ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7890, 4, 7892, 4, 7894, 4, 7896, 4, 7898, 4, 7900, 4, 7902, 4, 7904, 4, // NOLINT 9683ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7906, 4, 7908, 4, 7910, 4, 7912, 4, 7914, 4, 7916, 4, 7918, 4, 7920, 4, // NOLINT 9693ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7922, 4, 7924, 4, 7926, 4, 7928, 4, 7930, 4, 7932, 4, 7934, 4, 1073749768, -32, // NOLINT 9703ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7951, -32, 1073749784, -32, 7965, -32, 1073749800, -32, 7983, -32, 1073749816, -32, 7999, -32, 1073749832, -32, // NOLINT 9713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8013, -32, 8025, -32, 8027, -32, 8029, -32, 8031, -32, 1073749864, -32, 8047, -32, 1073749896, -32, // NOLINT 9723ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8079, -32, 1073749912, -32, 8095, -32, 1073749928, -32, 8111, -32, 1073749944, -32, 8121, -32, 1073749946, -296, // NOLINT 9733ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8123, -296, 8124, -36, 1073749960, -344, 8139, -344, 8140, -36, 1073749976, -32, 8153, -32, 1073749978, -400, // NOLINT 9743ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8155, -400, 1073749992, -32, 8169, -32, 1073749994, -448, 8171, -448, 8172, -28, 1073750008, -512, 8185, -512, // NOLINT 9753ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073750010, -504, 8187, -504, 8188, -36 }; // NOLINT 976bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kToLowercaseMultiStrings0Size = 2; // NOLINT 977bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<1> kToLowercaseMultiStrings1[1] = { // NOLINT 9789fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 9793ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kToLowercaseTable1Size = 79; // NOLINT 9803ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kToLowercaseTable1[158] = { 981bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 294, -30068, 298, -33532, 299, -33048, 306, 112, 1073742176, 64, 367, 64, 387, 4, 1073743030, 104, // NOLINT 982bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1231, 104, 1073744896, 192, 3118, 192, 3168, 4, 3170, -42972, 3171, -15256, 3172, -42908, 3175, 4, // NOLINT 9833ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3177, 4, 3179, 4, 3181, -43120, 3182, -42996, 3183, -43132, 3184, -43128, 3186, 4, 3189, 4, // NOLINT 9843ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073745022, -43260, 3199, -43260, 3200, 4, 3202, 4, 3204, 4, 3206, 4, 3208, 4, 3210, 4, // NOLINT 9853ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3212, 4, 3214, 4, 3216, 4, 3218, 4, 3220, 4, 3222, 4, 3224, 4, 3226, 4, // NOLINT 9863ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3228, 4, 3230, 4, 3232, 4, 3234, 4, 3236, 4, 3238, 4, 3240, 4, 3242, 4, // NOLINT 9873ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3244, 4, 3246, 4, 3248, 4, 3250, 4, 3252, 4, 3254, 4, 3256, 4, 3258, 4, // NOLINT 9883ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3260, 4, 3262, 4, 3264, 4, 3266, 4, 3268, 4, 3270, 4, 3272, 4, 3274, 4, // NOLINT 9893ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3276, 4, 3278, 4, 3280, 4, 3282, 4, 3284, 4, 3286, 4, 3288, 4, 3290, 4, // NOLINT 9903ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3292, 4, 3294, 4, 3296, 4, 3298, 4, 3307, 4, 3309, 4, 3314, 4 }; // NOLINT 991bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kToLowercaseMultiStrings1Size = 1; // NOLINT 9923ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const MultiCharacterSpecialCase<1> kToLowercaseMultiStrings5[1] = { // NOLINT 9933ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{kSentinel}} }; // NOLINT 9943ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kToLowercaseTable5Size = 91; // NOLINT 9953ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kToLowercaseTable5[182] = { 9963ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1600, 4, 1602, 4, 1604, 4, 1606, 4, 1608, 4, 1610, 4, 1612, 4, 1614, 4, // NOLINT 9973ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1616, 4, 1618, 4, 1620, 4, 1622, 4, 1624, 4, 1626, 4, 1628, 4, 1630, 4, // NOLINT 9983ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1632, 4, 1634, 4, 1636, 4, 1638, 4, 1640, 4, 1642, 4, 1644, 4, 1664, 4, // NOLINT 9993ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1666, 4, 1668, 4, 1670, 4, 1672, 4, 1674, 4, 1676, 4, 1678, 4, 1680, 4, // NOLINT 10003ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1682, 4, 1684, 4, 1686, 4, 1826, 4, 1828, 4, 1830, 4, 1832, 4, 1834, 4, // NOLINT 10013ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1836, 4, 1838, 4, 1842, 4, 1844, 4, 1846, 4, 1848, 4, 1850, 4, 1852, 4, // NOLINT 10023ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1854, 4, 1856, 4, 1858, 4, 1860, 4, 1862, 4, 1864, 4, 1866, 4, 1868, 4, // NOLINT 10033ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1870, 4, 1872, 4, 1874, 4, 1876, 4, 1878, 4, 1880, 4, 1882, 4, 1884, 4, // NOLINT 10043ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1886, 4, 1888, 4, 1890, 4, 1892, 4, 1894, 4, 1896, 4, 1898, 4, 1900, 4, // NOLINT 10053ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1902, 4, 1913, 4, 1915, 4, 1917, -141328, 1918, 4, 1920, 4, 1922, 4, 1924, 4, // NOLINT 10063ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1926, 4, 1931, 4, 1933, -169120, 1936, 4, 1938, 4, 1952, 4, 1954, 4, 1956, 4, // NOLINT 10073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1958, 4, 1960, 4, 1962, -169232 }; // NOLINT 10083ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kToLowercaseMultiStrings5Size = 1; // NOLINT 1009bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<1> kToLowercaseMultiStrings7[1] = { // NOLINT 10109fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 1011bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kToLowercaseTable7Size = 2; // NOLINT 1012bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kToLowercaseTable7[4] = { 1013bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749793, 128, 7994, 128 }; // NOLINT 1014bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kToLowercaseMultiStrings7Size = 1; // NOLINT 1015a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockint ToLowercase::Convert(uchar c, 1016a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar n, 1017a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar* result, 1018a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block bool* allow_caching_ptr) { 1019bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 1020a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 1021bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 0: return LookupMapping<true>(kToLowercaseTable0, 1022bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToLowercaseTable0Size, 1023bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToLowercaseMultiStrings0, 1024bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1025bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1026bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1027bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1028bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 1: return LookupMapping<true>(kToLowercaseTable1, 1029bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToLowercaseTable1Size, 1030bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToLowercaseMultiStrings1, 1031bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1032bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1033bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1034bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 10353ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch case 5: return LookupMapping<true>(kToLowercaseTable5, 10363ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kToLowercaseTable5Size, 10373ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kToLowercaseMultiStrings5, 10383ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch c, 10393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch n, 10403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch result, 10413ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch allow_caching_ptr); 1042bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupMapping<true>(kToLowercaseTable7, 1043bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToLowercaseTable7Size, 1044bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToLowercaseMultiStrings7, 1045bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1046bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1047bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1048bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1049a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return 0; 1050a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 1051a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 1052a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 1053bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<3> kToUppercaseMultiStrings0[62] = { // NOLINT 10549fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{83, 83, kSentinel}}, {{700, 78, kSentinel}}, {{74, 780, kSentinel}}, {{921, 776, 769}}, // NOLINT 10559fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{933, 776, 769}}, {{1333, 1362, kSentinel}}, {{72, 817, kSentinel}}, {{84, 776, kSentinel}}, // NOLINT 10569fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{87, 778, kSentinel}}, {{89, 778, kSentinel}}, {{65, 702, kSentinel}}, {{933, 787, kSentinel}}, // NOLINT 10579fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{933, 787, 768}}, {{933, 787, 769}}, {{933, 787, 834}}, {{7944, 921, kSentinel}}, // NOLINT 10589fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{7945, 921, kSentinel}}, {{7946, 921, kSentinel}}, {{7947, 921, kSentinel}}, {{7948, 921, kSentinel}}, // NOLINT 10599fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{7949, 921, kSentinel}}, {{7950, 921, kSentinel}}, {{7951, 921, kSentinel}}, {{7976, 921, kSentinel}}, // NOLINT 10609fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{7977, 921, kSentinel}}, {{7978, 921, kSentinel}}, {{7979, 921, kSentinel}}, {{7980, 921, kSentinel}}, // NOLINT 10619fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{7981, 921, kSentinel}}, {{7982, 921, kSentinel}}, {{7983, 921, kSentinel}}, {{8040, 921, kSentinel}}, // NOLINT 10629fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8041, 921, kSentinel}}, {{8042, 921, kSentinel}}, {{8043, 921, kSentinel}}, {{8044, 921, kSentinel}}, // NOLINT 10639fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8045, 921, kSentinel}}, {{8046, 921, kSentinel}}, {{8047, 921, kSentinel}}, {{8122, 921, kSentinel}}, // NOLINT 10649fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{913, 921, kSentinel}}, {{902, 921, kSentinel}}, {{913, 834, kSentinel}}, {{913, 834, 921}}, // NOLINT 10659fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8138, 921, kSentinel}}, {{919, 921, kSentinel}}, {{905, 921, kSentinel}}, {{919, 834, kSentinel}}, // NOLINT 10669fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{919, 834, 921}}, {{921, 776, 768}}, {{921, 834, kSentinel}}, {{921, 776, 834}}, // NOLINT 10679fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{933, 776, 768}}, {{929, 787, kSentinel}}, {{933, 834, kSentinel}}, {{933, 776, 834}}, // NOLINT 10689fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8186, 921, kSentinel}}, {{937, 921, kSentinel}}, {{911, 921, kSentinel}}, {{937, 834, kSentinel}}, // NOLINT 10699fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{937, 834, 921}}, {{kSentinel}} }; // NOLINT 10703ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kToUppercaseTable0Size = 580; // NOLINT 10713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kToUppercaseTable0[1160] = { 1072bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741921, -128, 122, -128, 181, 2972, 223, 1, 1073742048, -128, 246, -128, 1073742072, -128, 254, -128, // NOLINT 1073bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 255, 484, 257, -4, 259, -4, 261, -4, 263, -4, 265, -4, 267, -4, 269, -4, // NOLINT 1074bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 271, -4, 273, -4, 275, -4, 277, -4, 279, -4, 281, -4, 283, -4, 285, -4, // NOLINT 1075bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 287, -4, 289, -4, 291, -4, 293, -4, 295, -4, 297, -4, 299, -4, 301, -4, // NOLINT 1076bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 303, -4, 305, -928, 307, -4, 309, -4, 311, -4, 314, -4, 316, -4, 318, -4, // NOLINT 1077bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 320, -4, 322, -4, 324, -4, 326, -4, 328, -4, 329, 5, 331, -4, 333, -4, // NOLINT 1078bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 335, -4, 337, -4, 339, -4, 341, -4, 343, -4, 345, -4, 347, -4, 349, -4, // NOLINT 1079bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 351, -4, 353, -4, 355, -4, 357, -4, 359, -4, 361, -4, 363, -4, 365, -4, // NOLINT 1080bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 367, -4, 369, -4, 371, -4, 373, -4, 375, -4, 378, -4, 380, -4, 382, -4, // NOLINT 1081bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 383, -1200, 384, 780, 387, -4, 389, -4, 392, -4, 396, -4, 402, -4, 405, 388, // NOLINT 1082bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 409, -4, 410, 652, 414, 520, 417, -4, 419, -4, 421, -4, 424, -4, 429, -4, // NOLINT 1083bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 432, -4, 436, -4, 438, -4, 441, -4, 445, -4, 447, 224, 453, -4, 454, -8, // NOLINT 1084bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 456, -4, 457, -8, 459, -4, 460, -8, 462, -4, 464, -4, 466, -4, 468, -4, // NOLINT 1085bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 470, -4, 472, -4, 474, -4, 476, -4, 477, -316, 479, -4, 481, -4, 483, -4, // NOLINT 1086bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 485, -4, 487, -4, 489, -4, 491, -4, 493, -4, 495, -4, 496, 9, 498, -4, // NOLINT 1087bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 499, -8, 501, -4, 505, -4, 507, -4, 509, -4, 511, -4, 513, -4, 515, -4, // NOLINT 1088bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 517, -4, 519, -4, 521, -4, 523, -4, 525, -4, 527, -4, 529, -4, 531, -4, // NOLINT 1089bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 533, -4, 535, -4, 537, -4, 539, -4, 541, -4, 543, -4, 547, -4, 549, -4, // NOLINT 1090bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 551, -4, 553, -4, 555, -4, 557, -4, 559, -4, 561, -4, 563, -4, 572, -4, // NOLINT 10913ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742399, 43260, 576, 43260, 578, -4, 583, -4, 585, -4, 587, -4, 589, -4, 591, -4, // NOLINT 10923ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 592, 43132, 593, 43120, 594, 43128, 595, -840, 596, -824, 1073742422, -820, 599, -820, 601, -808, // NOLINT 10933ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 603, -812, 608, -820, 611, -828, 613, 169120, 614, 169232, 616, -836, 617, -844, 619, 42972, // NOLINT 10943ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 623, -844, 625, 42996, 626, -852, 629, -856, 637, 42908, 640, -872, 643, -872, 648, -872, // NOLINT 10953ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 649, -276, 1073742474, -868, 651, -868, 652, -284, 658, -876, 837, 336, 881, -4, 883, -4, // NOLINT 10963ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 887, -4, 1073742715, 520, 893, 520, 912, 13, 940, -152, 1073742765, -148, 943, -148, 944, 17, // NOLINT 10973ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742769, -128, 961, -128, 962, -124, 1073742787, -128, 971, -128, 972, -256, 1073742797, -252, 974, -252, // NOLINT 10983ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 976, -248, 977, -228, 981, -188, 982, -216, 983, -32, 985, -4, 987, -4, 989, -4, // NOLINT 10993ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 991, -4, 993, -4, 995, -4, 997, -4, 999, -4, 1001, -4, 1003, -4, 1005, -4, // NOLINT 11003ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1007, -4, 1008, -344, 1009, -320, 1010, 28, 1013, -384, 1016, -4, 1019, -4, 1073742896, -128, // NOLINT 11013ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1103, -128, 1073742928, -320, 1119, -320, 1121, -4, 1123, -4, 1125, -4, 1127, -4, 1129, -4, // NOLINT 11023ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1131, -4, 1133, -4, 1135, -4, 1137, -4, 1139, -4, 1141, -4, 1143, -4, 1145, -4, // NOLINT 11033ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1147, -4, 1149, -4, 1151, -4, 1153, -4, 1163, -4, 1165, -4, 1167, -4, 1169, -4, // NOLINT 11043ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1171, -4, 1173, -4, 1175, -4, 1177, -4, 1179, -4, 1181, -4, 1183, -4, 1185, -4, // NOLINT 11053ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1187, -4, 1189, -4, 1191, -4, 1193, -4, 1195, -4, 1197, -4, 1199, -4, 1201, -4, // NOLINT 11063ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1203, -4, 1205, -4, 1207, -4, 1209, -4, 1211, -4, 1213, -4, 1215, -4, 1218, -4, // NOLINT 11073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1220, -4, 1222, -4, 1224, -4, 1226, -4, 1228, -4, 1230, -4, 1231, -60, 1233, -4, // NOLINT 11083ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1235, -4, 1237, -4, 1239, -4, 1241, -4, 1243, -4, 1245, -4, 1247, -4, 1249, -4, // NOLINT 11093ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1251, -4, 1253, -4, 1255, -4, 1257, -4, 1259, -4, 1261, -4, 1263, -4, 1265, -4, // NOLINT 11103ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1267, -4, 1269, -4, 1271, -4, 1273, -4, 1275, -4, 1277, -4, 1279, -4, 1281, -4, // NOLINT 11113ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1283, -4, 1285, -4, 1287, -4, 1289, -4, 1291, -4, 1293, -4, 1295, -4, 1297, -4, // NOLINT 11123ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1299, -4, 1301, -4, 1303, -4, 1305, -4, 1307, -4, 1309, -4, 1311, -4, 1313, -4, // NOLINT 11133ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1315, -4, 1317, -4, 1319, -4, 1073743201, -192, 1414, -192, 1415, 21, 7545, 141328, 7549, 15256, // NOLINT 11143ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7681, -4, 7683, -4, 7685, -4, 7687, -4, 7689, -4, 7691, -4, 7693, -4, 7695, -4, // NOLINT 11153ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7697, -4, 7699, -4, 7701, -4, 7703, -4, 7705, -4, 7707, -4, 7709, -4, 7711, -4, // NOLINT 11163ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7713, -4, 7715, -4, 7717, -4, 7719, -4, 7721, -4, 7723, -4, 7725, -4, 7727, -4, // NOLINT 11173ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7729, -4, 7731, -4, 7733, -4, 7735, -4, 7737, -4, 7739, -4, 7741, -4, 7743, -4, // NOLINT 11183ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7745, -4, 7747, -4, 7749, -4, 7751, -4, 7753, -4, 7755, -4, 7757, -4, 7759, -4, // NOLINT 11193ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7761, -4, 7763, -4, 7765, -4, 7767, -4, 7769, -4, 7771, -4, 7773, -4, 7775, -4, // NOLINT 11203ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7777, -4, 7779, -4, 7781, -4, 7783, -4, 7785, -4, 7787, -4, 7789, -4, 7791, -4, // NOLINT 11213ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7793, -4, 7795, -4, 7797, -4, 7799, -4, 7801, -4, 7803, -4, 7805, -4, 7807, -4, // NOLINT 11223ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7809, -4, 7811, -4, 7813, -4, 7815, -4, 7817, -4, 7819, -4, 7821, -4, 7823, -4, // NOLINT 11233ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7825, -4, 7827, -4, 7829, -4, 7830, 25, 7831, 29, 7832, 33, 7833, 37, 7834, 41, // NOLINT 11243ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7835, -236, 7841, -4, 7843, -4, 7845, -4, 7847, -4, 7849, -4, 7851, -4, 7853, -4, // NOLINT 11253ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7855, -4, 7857, -4, 7859, -4, 7861, -4, 7863, -4, 7865, -4, 7867, -4, 7869, -4, // NOLINT 11263ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7871, -4, 7873, -4, 7875, -4, 7877, -4, 7879, -4, 7881, -4, 7883, -4, 7885, -4, // NOLINT 11273ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7887, -4, 7889, -4, 7891, -4, 7893, -4, 7895, -4, 7897, -4, 7899, -4, 7901, -4, // NOLINT 11283ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7903, -4, 7905, -4, 7907, -4, 7909, -4, 7911, -4, 7913, -4, 7915, -4, 7917, -4, // NOLINT 11293ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7919, -4, 7921, -4, 7923, -4, 7925, -4, 7927, -4, 7929, -4, 7931, -4, 7933, -4, // NOLINT 11303ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7935, -4, 1073749760, 32, 7943, 32, 1073749776, 32, 7957, 32, 1073749792, 32, 7975, 32, 1073749808, 32, // NOLINT 11313ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7991, 32, 1073749824, 32, 8005, 32, 8016, 45, 8017, 32, 8018, 49, 8019, 32, 8020, 53, // NOLINT 11323ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8021, 32, 8022, 57, 8023, 32, 1073749856, 32, 8039, 32, 1073749872, 296, 8049, 296, 1073749874, 344, // NOLINT 11333ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8053, 344, 1073749878, 400, 8055, 400, 1073749880, 512, 8057, 512, 1073749882, 448, 8059, 448, 1073749884, 504, // NOLINT 11343ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8061, 504, 8064, 61, 8065, 65, 8066, 69, 8067, 73, 8068, 77, 8069, 81, 8070, 85, // NOLINT 11353ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8071, 89, 8072, 61, 8073, 65, 8074, 69, 8075, 73, 8076, 77, 8077, 81, 8078, 85, // NOLINT 11363ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8079, 89, 8080, 93, 8081, 97, 8082, 101, 8083, 105, 8084, 109, 8085, 113, 8086, 117, // NOLINT 11373ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8087, 121, 8088, 93, 8089, 97, 8090, 101, 8091, 105, 8092, 109, 8093, 113, 8094, 117, // NOLINT 11383ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8095, 121, 8096, 125, 8097, 129, 8098, 133, 8099, 137, 8100, 141, 8101, 145, 8102, 149, // NOLINT 11393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8103, 153, 8104, 125, 8105, 129, 8106, 133, 8107, 137, 8108, 141, 8109, 145, 8110, 149, // NOLINT 11403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8111, 153, 1073749936, 32, 8113, 32, 8114, 157, 8115, 161, 8116, 165, 8118, 169, 8119, 173, // NOLINT 11413ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8124, 161, 8126, -28820, 8130, 177, 8131, 181, 8132, 185, 8134, 189, 8135, 193, 8140, 181, // NOLINT 11423ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749968, 32, 8145, 32, 8146, 197, 8147, 13, 8150, 201, 8151, 205, 1073749984, 32, 8161, 32, // NOLINT 11433ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8162, 209, 8163, 17, 8164, 213, 8165, 28, 8166, 217, 8167, 221, 8178, 225, 8179, 229, // NOLINT 11443ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8180, 233, 8182, 237, 8183, 241, 8188, 229 }; // NOLINT 1145bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kToUppercaseMultiStrings0Size = 62; // NOLINT 1146bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<1> kToUppercaseMultiStrings1[1] = { // NOLINT 11479fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 11483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kToUppercaseTable1Size = 73; // NOLINT 11493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kToUppercaseTable1[146] = { 1150bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 334, -112, 1073742192, -64, 383, -64, 388, -4, 1073743056, -104, 1257, -104, 1073744944, -192, 3166, -192, // NOLINT 11513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3169, -4, 3173, -43180, 3174, -43168, 3176, -4, 3178, -4, 3180, -4, 3187, -4, 3190, -4, // NOLINT 11523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3201, -4, 3203, -4, 3205, -4, 3207, -4, 3209, -4, 3211, -4, 3213, -4, 3215, -4, // NOLINT 11533ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3217, -4, 3219, -4, 3221, -4, 3223, -4, 3225, -4, 3227, -4, 3229, -4, 3231, -4, // NOLINT 11543ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3233, -4, 3235, -4, 3237, -4, 3239, -4, 3241, -4, 3243, -4, 3245, -4, 3247, -4, // NOLINT 11553ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3249, -4, 3251, -4, 3253, -4, 3255, -4, 3257, -4, 3259, -4, 3261, -4, 3263, -4, // NOLINT 11563ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3265, -4, 3267, -4, 3269, -4, 3271, -4, 3273, -4, 3275, -4, 3277, -4, 3279, -4, // NOLINT 11573ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3281, -4, 3283, -4, 3285, -4, 3287, -4, 3289, -4, 3291, -4, 3293, -4, 3295, -4, // NOLINT 11583ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3297, -4, 3299, -4, 3308, -4, 3310, -4, 3315, -4, 1073745152, -29056, 3365, -29056, 3367, -29056, // NOLINT 11593ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3373, -29056 }; // NOLINT 1160bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kToUppercaseMultiStrings1Size = 1; // NOLINT 11613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const MultiCharacterSpecialCase<1> kToUppercaseMultiStrings5[1] = { // NOLINT 11623ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{kSentinel}} }; // NOLINT 11633ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kToUppercaseTable5Size = 88; // NOLINT 11643ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kToUppercaseTable5[176] = { 11653ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1601, -4, 1603, -4, 1605, -4, 1607, -4, 1609, -4, 1611, -4, 1613, -4, 1615, -4, // NOLINT 11663ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1617, -4, 1619, -4, 1621, -4, 1623, -4, 1625, -4, 1627, -4, 1629, -4, 1631, -4, // NOLINT 11673ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1633, -4, 1635, -4, 1637, -4, 1639, -4, 1641, -4, 1643, -4, 1645, -4, 1665, -4, // NOLINT 11683ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1667, -4, 1669, -4, 1671, -4, 1673, -4, 1675, -4, 1677, -4, 1679, -4, 1681, -4, // NOLINT 11693ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1683, -4, 1685, -4, 1687, -4, 1827, -4, 1829, -4, 1831, -4, 1833, -4, 1835, -4, // NOLINT 11703ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1837, -4, 1839, -4, 1843, -4, 1845, -4, 1847, -4, 1849, -4, 1851, -4, 1853, -4, // NOLINT 11713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1855, -4, 1857, -4, 1859, -4, 1861, -4, 1863, -4, 1865, -4, 1867, -4, 1869, -4, // NOLINT 11723ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1871, -4, 1873, -4, 1875, -4, 1877, -4, 1879, -4, 1881, -4, 1883, -4, 1885, -4, // NOLINT 11733ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1887, -4, 1889, -4, 1891, -4, 1893, -4, 1895, -4, 1897, -4, 1899, -4, 1901, -4, // NOLINT 11743ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1903, -4, 1914, -4, 1916, -4, 1919, -4, 1921, -4, 1923, -4, 1925, -4, 1927, -4, // NOLINT 11753ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1932, -4, 1937, -4, 1939, -4, 1953, -4, 1955, -4, 1957, -4, 1959, -4, 1961, -4 }; // NOLINT 11763ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kToUppercaseMultiStrings5Size = 1; // NOLINT 1177bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<3> kToUppercaseMultiStrings7[12] = { // NOLINT 11789fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{70, 70, kSentinel}}, {{70, 73, kSentinel}}, {{70, 76, kSentinel}}, {{70, 70, 73}}, // NOLINT 11799fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{70, 70, 76}}, {{83, 84, kSentinel}}, {{1348, 1350, kSentinel}}, {{1348, 1333, kSentinel}}, // NOLINT 11809fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1348, 1339, kSentinel}}, {{1358, 1350, kSentinel}}, {{1348, 1341, kSentinel}}, {{kSentinel}} }; // NOLINT 1181bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kToUppercaseTable7Size = 14; // NOLINT 1182bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kToUppercaseTable7[28] = { 1183bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 6912, 1, 6913, 5, 6914, 9, 6915, 13, 6916, 17, 6917, 21, 6918, 21, 6931, 25, // NOLINT 1184bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 6932, 29, 6933, 33, 6934, 37, 6935, 41, 1073749825, -128, 8026, -128 }; // NOLINT 1185bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kToUppercaseMultiStrings7Size = 12; // NOLINT 1186a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockint ToUppercase::Convert(uchar c, 1187a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar n, 1188a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar* result, 1189a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block bool* allow_caching_ptr) { 1190bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 1191a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 1192bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 0: return LookupMapping<true>(kToUppercaseTable0, 1193bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToUppercaseTable0Size, 1194bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToUppercaseMultiStrings0, 1195bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1196bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1197bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1198bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1199bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 1: return LookupMapping<true>(kToUppercaseTable1, 1200bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToUppercaseTable1Size, 1201bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToUppercaseMultiStrings1, 1202bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1203bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1204bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1205bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 12063ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch case 5: return LookupMapping<true>(kToUppercaseTable5, 12073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kToUppercaseTable5Size, 12083ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kToUppercaseMultiStrings5, 12093ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch c, 12103ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch n, 12113ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch result, 12123ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch allow_caching_ptr); 1213bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupMapping<true>(kToUppercaseTable7, 1214bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToUppercaseTable7Size, 1215bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kToUppercaseMultiStrings7, 1216bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1217bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1218bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1219bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1220a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return 0; 1221a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 1222a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 1223a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 1224bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<1> kEcma262CanonicalizeMultiStrings0[1] = { // NOLINT 12259fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 12263ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262CanonicalizeTable0Size = 488; // NOLINT 12273ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kEcma262CanonicalizeTable0[976] = { 1228bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741921, -128, 122, -128, 181, 2972, 1073742048, -128, 246, -128, 1073742072, -128, 254, -128, 255, 484, // NOLINT 1229bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 257, -4, 259, -4, 261, -4, 263, -4, 265, -4, 267, -4, 269, -4, 271, -4, // NOLINT 1230bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 273, -4, 275, -4, 277, -4, 279, -4, 281, -4, 283, -4, 285, -4, 287, -4, // NOLINT 1231bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 289, -4, 291, -4, 293, -4, 295, -4, 297, -4, 299, -4, 301, -4, 303, -4, // NOLINT 1232bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 307, -4, 309, -4, 311, -4, 314, -4, 316, -4, 318, -4, 320, -4, 322, -4, // NOLINT 1233bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 324, -4, 326, -4, 328, -4, 331, -4, 333, -4, 335, -4, 337, -4, 339, -4, // NOLINT 1234bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 341, -4, 343, -4, 345, -4, 347, -4, 349, -4, 351, -4, 353, -4, 355, -4, // NOLINT 1235bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 357, -4, 359, -4, 361, -4, 363, -4, 365, -4, 367, -4, 369, -4, 371, -4, // NOLINT 1236bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 373, -4, 375, -4, 378, -4, 380, -4, 382, -4, 384, 780, 387, -4, 389, -4, // NOLINT 1237bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 392, -4, 396, -4, 402, -4, 405, 388, 409, -4, 410, 652, 414, 520, 417, -4, // NOLINT 1238bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 419, -4, 421, -4, 424, -4, 429, -4, 432, -4, 436, -4, 438, -4, 441, -4, // NOLINT 1239bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 445, -4, 447, 224, 453, -4, 454, -8, 456, -4, 457, -8, 459, -4, 460, -8, // NOLINT 1240bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 462, -4, 464, -4, 466, -4, 468, -4, 470, -4, 472, -4, 474, -4, 476, -4, // NOLINT 1241bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 477, -316, 479, -4, 481, -4, 483, -4, 485, -4, 487, -4, 489, -4, 491, -4, // NOLINT 1242bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 493, -4, 495, -4, 498, -4, 499, -8, 501, -4, 505, -4, 507, -4, 509, -4, // NOLINT 1243bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 511, -4, 513, -4, 515, -4, 517, -4, 519, -4, 521, -4, 523, -4, 525, -4, // NOLINT 1244bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 527, -4, 529, -4, 531, -4, 533, -4, 535, -4, 537, -4, 539, -4, 541, -4, // NOLINT 1245bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 543, -4, 547, -4, 549, -4, 551, -4, 553, -4, 555, -4, 557, -4, 559, -4, // NOLINT 12463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 561, -4, 563, -4, 572, -4, 1073742399, 43260, 576, 43260, 578, -4, 583, -4, 585, -4, // NOLINT 12473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 587, -4, 589, -4, 591, -4, 592, 43132, 593, 43120, 594, 43128, 595, -840, 596, -824, // NOLINT 12483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742422, -820, 599, -820, 601, -808, 603, -812, 608, -820, 611, -828, 613, 169120, 614, 169232, // NOLINT 12493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 616, -836, 617, -844, 619, 42972, 623, -844, 625, 42996, 626, -852, 629, -856, 637, 42908, // NOLINT 1250bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 640, -872, 643, -872, 648, -872, 649, -276, 1073742474, -868, 651, -868, 652, -284, 658, -876, // NOLINT 12513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 837, 336, 881, -4, 883, -4, 887, -4, 1073742715, 520, 893, 520, 940, -152, 1073742765, -148, // NOLINT 12523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 943, -148, 1073742769, -128, 961, -128, 962, -124, 1073742787, -128, 971, -128, 972, -256, 1073742797, -252, // NOLINT 12533ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 974, -252, 976, -248, 977, -228, 981, -188, 982, -216, 983, -32, 985, -4, 987, -4, // NOLINT 12543ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 989, -4, 991, -4, 993, -4, 995, -4, 997, -4, 999, -4, 1001, -4, 1003, -4, // NOLINT 12553ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1005, -4, 1007, -4, 1008, -344, 1009, -320, 1010, 28, 1013, -384, 1016, -4, 1019, -4, // NOLINT 12563ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742896, -128, 1103, -128, 1073742928, -320, 1119, -320, 1121, -4, 1123, -4, 1125, -4, 1127, -4, // NOLINT 12573ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1129, -4, 1131, -4, 1133, -4, 1135, -4, 1137, -4, 1139, -4, 1141, -4, 1143, -4, // NOLINT 12583ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1145, -4, 1147, -4, 1149, -4, 1151, -4, 1153, -4, 1163, -4, 1165, -4, 1167, -4, // NOLINT 12593ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1169, -4, 1171, -4, 1173, -4, 1175, -4, 1177, -4, 1179, -4, 1181, -4, 1183, -4, // NOLINT 12603ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1185, -4, 1187, -4, 1189, -4, 1191, -4, 1193, -4, 1195, -4, 1197, -4, 1199, -4, // NOLINT 12613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1201, -4, 1203, -4, 1205, -4, 1207, -4, 1209, -4, 1211, -4, 1213, -4, 1215, -4, // NOLINT 12623ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1218, -4, 1220, -4, 1222, -4, 1224, -4, 1226, -4, 1228, -4, 1230, -4, 1231, -60, // NOLINT 12633ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1233, -4, 1235, -4, 1237, -4, 1239, -4, 1241, -4, 1243, -4, 1245, -4, 1247, -4, // NOLINT 12643ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1249, -4, 1251, -4, 1253, -4, 1255, -4, 1257, -4, 1259, -4, 1261, -4, 1263, -4, // NOLINT 12653ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1265, -4, 1267, -4, 1269, -4, 1271, -4, 1273, -4, 1275, -4, 1277, -4, 1279, -4, // NOLINT 12663ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1281, -4, 1283, -4, 1285, -4, 1287, -4, 1289, -4, 1291, -4, 1293, -4, 1295, -4, // NOLINT 12673ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1297, -4, 1299, -4, 1301, -4, 1303, -4, 1305, -4, 1307, -4, 1309, -4, 1311, -4, // NOLINT 12683ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1313, -4, 1315, -4, 1317, -4, 1319, -4, 1073743201, -192, 1414, -192, 7545, 141328, 7549, 15256, // NOLINT 12693ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7681, -4, 7683, -4, 7685, -4, 7687, -4, 7689, -4, 7691, -4, 7693, -4, 7695, -4, // NOLINT 12703ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7697, -4, 7699, -4, 7701, -4, 7703, -4, 7705, -4, 7707, -4, 7709, -4, 7711, -4, // NOLINT 12713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7713, -4, 7715, -4, 7717, -4, 7719, -4, 7721, -4, 7723, -4, 7725, -4, 7727, -4, // NOLINT 12723ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7729, -4, 7731, -4, 7733, -4, 7735, -4, 7737, -4, 7739, -4, 7741, -4, 7743, -4, // NOLINT 12733ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7745, -4, 7747, -4, 7749, -4, 7751, -4, 7753, -4, 7755, -4, 7757, -4, 7759, -4, // NOLINT 12743ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7761, -4, 7763, -4, 7765, -4, 7767, -4, 7769, -4, 7771, -4, 7773, -4, 7775, -4, // NOLINT 12753ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7777, -4, 7779, -4, 7781, -4, 7783, -4, 7785, -4, 7787, -4, 7789, -4, 7791, -4, // NOLINT 12763ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7793, -4, 7795, -4, 7797, -4, 7799, -4, 7801, -4, 7803, -4, 7805, -4, 7807, -4, // NOLINT 12773ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7809, -4, 7811, -4, 7813, -4, 7815, -4, 7817, -4, 7819, -4, 7821, -4, 7823, -4, // NOLINT 12783ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7825, -4, 7827, -4, 7829, -4, 7835, -236, 7841, -4, 7843, -4, 7845, -4, 7847, -4, // NOLINT 12793ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7849, -4, 7851, -4, 7853, -4, 7855, -4, 7857, -4, 7859, -4, 7861, -4, 7863, -4, // NOLINT 12803ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7865, -4, 7867, -4, 7869, -4, 7871, -4, 7873, -4, 7875, -4, 7877, -4, 7879, -4, // NOLINT 12813ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7881, -4, 7883, -4, 7885, -4, 7887, -4, 7889, -4, 7891, -4, 7893, -4, 7895, -4, // NOLINT 12823ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7897, -4, 7899, -4, 7901, -4, 7903, -4, 7905, -4, 7907, -4, 7909, -4, 7911, -4, // NOLINT 12833ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7913, -4, 7915, -4, 7917, -4, 7919, -4, 7921, -4, 7923, -4, 7925, -4, 7927, -4, // NOLINT 12843ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7929, -4, 7931, -4, 7933, -4, 7935, -4, 1073749760, 32, 7943, 32, 1073749776, 32, 7957, 32, // NOLINT 12853ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749792, 32, 7975, 32, 1073749808, 32, 7991, 32, 1073749824, 32, 8005, 32, 8017, 32, 8019, 32, // NOLINT 12863ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8021, 32, 8023, 32, 1073749856, 32, 8039, 32, 1073749872, 296, 8049, 296, 1073749874, 344, 8053, 344, // NOLINT 12873ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749878, 400, 8055, 400, 1073749880, 512, 8057, 512, 1073749882, 448, 8059, 448, 1073749884, 504, 8061, 504, // NOLINT 12883ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749936, 32, 8113, 32, 8126, -28820, 1073749968, 32, 8145, 32, 1073749984, 32, 8161, 32, 8165, 28 }; // NOLINT 1289bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kEcma262CanonicalizeMultiStrings0Size = 1; // NOLINT 1290bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<1> kEcma262CanonicalizeMultiStrings1[1] = { // NOLINT 12919fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 12923ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262CanonicalizeTable1Size = 73; // NOLINT 12933ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kEcma262CanonicalizeTable1[146] = { 1294bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 334, -112, 1073742192, -64, 383, -64, 388, -4, 1073743056, -104, 1257, -104, 1073744944, -192, 3166, -192, // NOLINT 12953ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3169, -4, 3173, -43180, 3174, -43168, 3176, -4, 3178, -4, 3180, -4, 3187, -4, 3190, -4, // NOLINT 12963ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3201, -4, 3203, -4, 3205, -4, 3207, -4, 3209, -4, 3211, -4, 3213, -4, 3215, -4, // NOLINT 12973ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3217, -4, 3219, -4, 3221, -4, 3223, -4, 3225, -4, 3227, -4, 3229, -4, 3231, -4, // NOLINT 12983ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3233, -4, 3235, -4, 3237, -4, 3239, -4, 3241, -4, 3243, -4, 3245, -4, 3247, -4, // NOLINT 12993ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3249, -4, 3251, -4, 3253, -4, 3255, -4, 3257, -4, 3259, -4, 3261, -4, 3263, -4, // NOLINT 13003ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3265, -4, 3267, -4, 3269, -4, 3271, -4, 3273, -4, 3275, -4, 3277, -4, 3279, -4, // NOLINT 13013ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3281, -4, 3283, -4, 3285, -4, 3287, -4, 3289, -4, 3291, -4, 3293, -4, 3295, -4, // NOLINT 13023ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3297, -4, 3299, -4, 3308, -4, 3310, -4, 3315, -4, 1073745152, -29056, 3365, -29056, 3367, -29056, // NOLINT 13033ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3373, -29056 }; // NOLINT 1304bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kEcma262CanonicalizeMultiStrings1Size = 1; // NOLINT 13053ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const MultiCharacterSpecialCase<1> kEcma262CanonicalizeMultiStrings5[1] = { // NOLINT 13063ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{kSentinel}} }; // NOLINT 13073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262CanonicalizeTable5Size = 88; // NOLINT 13083ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kEcma262CanonicalizeTable5[176] = { 13093ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1601, -4, 1603, -4, 1605, -4, 1607, -4, 1609, -4, 1611, -4, 1613, -4, 1615, -4, // NOLINT 13103ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1617, -4, 1619, -4, 1621, -4, 1623, -4, 1625, -4, 1627, -4, 1629, -4, 1631, -4, // NOLINT 13113ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1633, -4, 1635, -4, 1637, -4, 1639, -4, 1641, -4, 1643, -4, 1645, -4, 1665, -4, // NOLINT 13123ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1667, -4, 1669, -4, 1671, -4, 1673, -4, 1675, -4, 1677, -4, 1679, -4, 1681, -4, // NOLINT 13133ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1683, -4, 1685, -4, 1687, -4, 1827, -4, 1829, -4, 1831, -4, 1833, -4, 1835, -4, // NOLINT 13143ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1837, -4, 1839, -4, 1843, -4, 1845, -4, 1847, -4, 1849, -4, 1851, -4, 1853, -4, // NOLINT 13153ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1855, -4, 1857, -4, 1859, -4, 1861, -4, 1863, -4, 1865, -4, 1867, -4, 1869, -4, // NOLINT 13163ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1871, -4, 1873, -4, 1875, -4, 1877, -4, 1879, -4, 1881, -4, 1883, -4, 1885, -4, // NOLINT 13173ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1887, -4, 1889, -4, 1891, -4, 1893, -4, 1895, -4, 1897, -4, 1899, -4, 1901, -4, // NOLINT 13183ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1903, -4, 1914, -4, 1916, -4, 1919, -4, 1921, -4, 1923, -4, 1925, -4, 1927, -4, // NOLINT 13193ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1932, -4, 1937, -4, 1939, -4, 1953, -4, 1955, -4, 1957, -4, 1959, -4, 1961, -4 }; // NOLINT 13203ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262CanonicalizeMultiStrings5Size = 1; // NOLINT 1321bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<1> kEcma262CanonicalizeMultiStrings7[1] = { // NOLINT 13229fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 1323bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kEcma262CanonicalizeTable7Size = 2; // NOLINT 1324bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kEcma262CanonicalizeTable7[4] = { 1325bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749825, -128, 8026, -128 }; // NOLINT 1326bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kEcma262CanonicalizeMultiStrings7Size = 1; // NOLINT 1327a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockint Ecma262Canonicalize::Convert(uchar c, 1328a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar n, 1329a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar* result, 1330a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block bool* allow_caching_ptr) { 1331bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 1332a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 1333bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 0: return LookupMapping<true>(kEcma262CanonicalizeTable0, 1334bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262CanonicalizeTable0Size, 1335bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262CanonicalizeMultiStrings0, 1336bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1337bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1338bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1339bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1340bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 1: return LookupMapping<true>(kEcma262CanonicalizeTable1, 1341bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262CanonicalizeTable1Size, 1342bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262CanonicalizeMultiStrings1, 1343bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1344bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1345bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1346bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 13473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch case 5: return LookupMapping<true>(kEcma262CanonicalizeTable5, 13483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kEcma262CanonicalizeTable5Size, 13493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kEcma262CanonicalizeMultiStrings5, 13503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch c, 13513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch n, 13523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch result, 13533ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch allow_caching_ptr); 1354bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupMapping<true>(kEcma262CanonicalizeTable7, 1355bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262CanonicalizeTable7Size, 1356bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262CanonicalizeMultiStrings7, 1357bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1358bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1359bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1360bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1361a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return 0; 1362a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 1363a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 1364a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 13653ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const MultiCharacterSpecialCase<4> kEcma262UnCanonicalizeMultiStrings0[497] = { // NOLINT 13669fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{65, 97, kSentinel}}, {{90, 122, kSentinel}}, {{181, 924, 956, kSentinel}}, {{192, 224, kSentinel}}, // NOLINT 13679fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{214, 246, kSentinel}}, {{216, 248, kSentinel}}, {{222, 254, kSentinel}}, {{255, 376, kSentinel}}, // NOLINT 13689fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{256, 257, kSentinel}}, {{258, 259, kSentinel}}, {{260, 261, kSentinel}}, {{262, 263, kSentinel}}, // NOLINT 13699fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{264, 265, kSentinel}}, {{266, 267, kSentinel}}, {{268, 269, kSentinel}}, {{270, 271, kSentinel}}, // NOLINT 13709fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{272, 273, kSentinel}}, {{274, 275, kSentinel}}, {{276, 277, kSentinel}}, {{278, 279, kSentinel}}, // NOLINT 13719fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{280, 281, kSentinel}}, {{282, 283, kSentinel}}, {{284, 285, kSentinel}}, {{286, 287, kSentinel}}, // NOLINT 13729fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{288, 289, kSentinel}}, {{290, 291, kSentinel}}, {{292, 293, kSentinel}}, {{294, 295, kSentinel}}, // NOLINT 13739fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{296, 297, kSentinel}}, {{298, 299, kSentinel}}, {{300, 301, kSentinel}}, {{302, 303, kSentinel}}, // NOLINT 13749fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{306, 307, kSentinel}}, {{308, 309, kSentinel}}, {{310, 311, kSentinel}}, {{313, 314, kSentinel}}, // NOLINT 13759fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{315, 316, kSentinel}}, {{317, 318, kSentinel}}, {{319, 320, kSentinel}}, {{321, 322, kSentinel}}, // NOLINT 13769fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{323, 324, kSentinel}}, {{325, 326, kSentinel}}, {{327, 328, kSentinel}}, {{330, 331, kSentinel}}, // NOLINT 13779fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{332, 333, kSentinel}}, {{334, 335, kSentinel}}, {{336, 337, kSentinel}}, {{338, 339, kSentinel}}, // NOLINT 13789fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{340, 341, kSentinel}}, {{342, 343, kSentinel}}, {{344, 345, kSentinel}}, {{346, 347, kSentinel}}, // NOLINT 13799fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{348, 349, kSentinel}}, {{350, 351, kSentinel}}, {{352, 353, kSentinel}}, {{354, 355, kSentinel}}, // NOLINT 13809fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{356, 357, kSentinel}}, {{358, 359, kSentinel}}, {{360, 361, kSentinel}}, {{362, 363, kSentinel}}, // NOLINT 13819fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{364, 365, kSentinel}}, {{366, 367, kSentinel}}, {{368, 369, kSentinel}}, {{370, 371, kSentinel}}, // NOLINT 13829fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{372, 373, kSentinel}}, {{374, 375, kSentinel}}, {{377, 378, kSentinel}}, {{379, 380, kSentinel}}, // NOLINT 13839fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{381, 382, kSentinel}}, {{384, 579, kSentinel}}, {{385, 595, kSentinel}}, {{386, 387, kSentinel}}, // NOLINT 13849fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{388, 389, kSentinel}}, {{390, 596, kSentinel}}, {{391, 392, kSentinel}}, {{393, 598, kSentinel}}, // NOLINT 13859fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{394, 599, kSentinel}}, {{395, 396, kSentinel}}, {{398, 477, kSentinel}}, {{399, 601, kSentinel}}, // NOLINT 13869fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{400, 603, kSentinel}}, {{401, 402, kSentinel}}, {{403, 608, kSentinel}}, {{404, 611, kSentinel}}, // NOLINT 13879fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{405, 502, kSentinel}}, {{406, 617, kSentinel}}, {{407, 616, kSentinel}}, {{408, 409, kSentinel}}, // NOLINT 13889fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{410, 573, kSentinel}}, {{412, 623, kSentinel}}, {{413, 626, kSentinel}}, {{414, 544, kSentinel}}, // NOLINT 13899fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{415, 629, kSentinel}}, {{416, 417, kSentinel}}, {{418, 419, kSentinel}}, {{420, 421, kSentinel}}, // NOLINT 13909fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{422, 640, kSentinel}}, {{423, 424, kSentinel}}, {{425, 643, kSentinel}}, {{428, 429, kSentinel}}, // NOLINT 13919fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{430, 648, kSentinel}}, {{431, 432, kSentinel}}, {{433, 650, kSentinel}}, {{434, 651, kSentinel}}, // NOLINT 13929fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{435, 436, kSentinel}}, {{437, 438, kSentinel}}, {{439, 658, kSentinel}}, {{440, 441, kSentinel}}, // NOLINT 13939fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{444, 445, kSentinel}}, {{447, 503, kSentinel}}, {{452, 453, 454, kSentinel}}, {{455, 456, 457, kSentinel}}, // NOLINT 13949fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{458, 459, 460, kSentinel}}, {{461, 462, kSentinel}}, {{463, 464, kSentinel}}, {{465, 466, kSentinel}}, // NOLINT 13959fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{467, 468, kSentinel}}, {{469, 470, kSentinel}}, {{471, 472, kSentinel}}, {{473, 474, kSentinel}}, // NOLINT 13969fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{475, 476, kSentinel}}, {{478, 479, kSentinel}}, {{480, 481, kSentinel}}, {{482, 483, kSentinel}}, // NOLINT 13979fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{484, 485, kSentinel}}, {{486, 487, kSentinel}}, {{488, 489, kSentinel}}, {{490, 491, kSentinel}}, // NOLINT 13989fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{492, 493, kSentinel}}, {{494, 495, kSentinel}}, {{497, 498, 499, kSentinel}}, {{500, 501, kSentinel}}, // NOLINT 13999fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{504, 505, kSentinel}}, {{506, 507, kSentinel}}, {{508, 509, kSentinel}}, {{510, 511, kSentinel}}, // NOLINT 14009fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{512, 513, kSentinel}}, {{514, 515, kSentinel}}, {{516, 517, kSentinel}}, {{518, 519, kSentinel}}, // NOLINT 14019fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{520, 521, kSentinel}}, {{522, 523, kSentinel}}, {{524, 525, kSentinel}}, {{526, 527, kSentinel}}, // NOLINT 14029fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{528, 529, kSentinel}}, {{530, 531, kSentinel}}, {{532, 533, kSentinel}}, {{534, 535, kSentinel}}, // NOLINT 14039fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{536, 537, kSentinel}}, {{538, 539, kSentinel}}, {{540, 541, kSentinel}}, {{542, 543, kSentinel}}, // NOLINT 14049fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{546, 547, kSentinel}}, {{548, 549, kSentinel}}, {{550, 551, kSentinel}}, {{552, 553, kSentinel}}, // NOLINT 14059fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{554, 555, kSentinel}}, {{556, 557, kSentinel}}, {{558, 559, kSentinel}}, {{560, 561, kSentinel}}, // NOLINT 14069fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{562, 563, kSentinel}}, {{570, 11365, kSentinel}}, {{571, 572, kSentinel}}, {{574, 11366, kSentinel}}, // NOLINT 14073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{575, 11390, kSentinel}}, {{576, 11391, kSentinel}}, {{577, 578, kSentinel}}, {{580, 649, kSentinel}}, // NOLINT 14083ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{581, 652, kSentinel}}, {{582, 583, kSentinel}}, {{584, 585, kSentinel}}, {{586, 587, kSentinel}}, // NOLINT 14093ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{588, 589, kSentinel}}, {{590, 591, kSentinel}}, {{592, 11375, kSentinel}}, {{593, 11373, kSentinel}}, // NOLINT 14103ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{594, 11376, kSentinel}}, {{613, 42893, kSentinel}}, {{614, 42922, kSentinel}}, {{619, 11362, kSentinel}}, // NOLINT 14113ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{625, 11374, kSentinel}}, {{637, 11364, kSentinel}}, {{837, 921, 953, 8126}}, {{880, 881, kSentinel}}, // NOLINT 14123ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{882, 883, kSentinel}}, {{886, 887, kSentinel}}, {{891, 1021, kSentinel}}, {{893, 1023, kSentinel}}, // NOLINT 14133ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{902, 940, kSentinel}}, {{904, 941, kSentinel}}, {{906, 943, kSentinel}}, {{908, 972, kSentinel}}, // NOLINT 14143ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{910, 973, kSentinel}}, {{911, 974, kSentinel}}, {{913, 945, kSentinel}}, {{914, 946, 976, kSentinel}}, // NOLINT 14153ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{915, 947, kSentinel}}, {{916, 948, kSentinel}}, {{917, 949, 1013, kSentinel}}, {{918, 950, kSentinel}}, // NOLINT 14163ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{919, 951, kSentinel}}, {{920, 952, 977, kSentinel}}, {{922, 954, 1008, kSentinel}}, {{923, 955, kSentinel}}, // NOLINT 14173ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{925, 957, kSentinel}}, {{927, 959, kSentinel}}, {{928, 960, 982, kSentinel}}, {{929, 961, 1009, kSentinel}}, // NOLINT 14183ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{931, 962, 963, kSentinel}}, {{932, 964, kSentinel}}, {{933, 965, kSentinel}}, {{934, 966, 981, kSentinel}}, // NOLINT 14193ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{935, 967, kSentinel}}, {{939, 971, kSentinel}}, {{975, 983, kSentinel}}, {{984, 985, kSentinel}}, // NOLINT 14209fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{986, 987, kSentinel}}, {{988, 989, kSentinel}}, {{990, 991, kSentinel}}, {{992, 993, kSentinel}}, // NOLINT 14219fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{994, 995, kSentinel}}, {{996, 997, kSentinel}}, {{998, 999, kSentinel}}, {{1000, 1001, kSentinel}}, // NOLINT 14229fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1002, 1003, kSentinel}}, {{1004, 1005, kSentinel}}, {{1006, 1007, kSentinel}}, {{1010, 1017, kSentinel}}, // NOLINT 14239fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1015, 1016, kSentinel}}, {{1018, 1019, kSentinel}}, {{1024, 1104, kSentinel}}, {{1039, 1119, kSentinel}}, // NOLINT 14249fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1040, 1072, kSentinel}}, {{1071, 1103, kSentinel}}, {{1120, 1121, kSentinel}}, {{1122, 1123, kSentinel}}, // NOLINT 14259fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1124, 1125, kSentinel}}, {{1126, 1127, kSentinel}}, {{1128, 1129, kSentinel}}, {{1130, 1131, kSentinel}}, // NOLINT 14269fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1132, 1133, kSentinel}}, {{1134, 1135, kSentinel}}, {{1136, 1137, kSentinel}}, {{1138, 1139, kSentinel}}, // NOLINT 14279fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1140, 1141, kSentinel}}, {{1142, 1143, kSentinel}}, {{1144, 1145, kSentinel}}, {{1146, 1147, kSentinel}}, // NOLINT 14289fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1148, 1149, kSentinel}}, {{1150, 1151, kSentinel}}, {{1152, 1153, kSentinel}}, {{1162, 1163, kSentinel}}, // NOLINT 14299fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1164, 1165, kSentinel}}, {{1166, 1167, kSentinel}}, {{1168, 1169, kSentinel}}, {{1170, 1171, kSentinel}}, // NOLINT 14309fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1172, 1173, kSentinel}}, {{1174, 1175, kSentinel}}, {{1176, 1177, kSentinel}}, {{1178, 1179, kSentinel}}, // NOLINT 14319fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1180, 1181, kSentinel}}, {{1182, 1183, kSentinel}}, {{1184, 1185, kSentinel}}, {{1186, 1187, kSentinel}}, // NOLINT 14329fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1188, 1189, kSentinel}}, {{1190, 1191, kSentinel}}, {{1192, 1193, kSentinel}}, {{1194, 1195, kSentinel}}, // NOLINT 14339fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1196, 1197, kSentinel}}, {{1198, 1199, kSentinel}}, {{1200, 1201, kSentinel}}, {{1202, 1203, kSentinel}}, // NOLINT 14349fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1204, 1205, kSentinel}}, {{1206, 1207, kSentinel}}, {{1208, 1209, kSentinel}}, {{1210, 1211, kSentinel}}, // NOLINT 14359fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1212, 1213, kSentinel}}, {{1214, 1215, kSentinel}}, {{1216, 1231, kSentinel}}, {{1217, 1218, kSentinel}}, // NOLINT 14369fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1219, 1220, kSentinel}}, {{1221, 1222, kSentinel}}, {{1223, 1224, kSentinel}}, {{1225, 1226, kSentinel}}, // NOLINT 14379fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1227, 1228, kSentinel}}, {{1229, 1230, kSentinel}}, {{1232, 1233, kSentinel}}, {{1234, 1235, kSentinel}}, // NOLINT 14389fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1236, 1237, kSentinel}}, {{1238, 1239, kSentinel}}, {{1240, 1241, kSentinel}}, {{1242, 1243, kSentinel}}, // NOLINT 14399fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1244, 1245, kSentinel}}, {{1246, 1247, kSentinel}}, {{1248, 1249, kSentinel}}, {{1250, 1251, kSentinel}}, // NOLINT 14409fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1252, 1253, kSentinel}}, {{1254, 1255, kSentinel}}, {{1256, 1257, kSentinel}}, {{1258, 1259, kSentinel}}, // NOLINT 14419fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1260, 1261, kSentinel}}, {{1262, 1263, kSentinel}}, {{1264, 1265, kSentinel}}, {{1266, 1267, kSentinel}}, // NOLINT 14429fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1268, 1269, kSentinel}}, {{1270, 1271, kSentinel}}, {{1272, 1273, kSentinel}}, {{1274, 1275, kSentinel}}, // NOLINT 14439fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1276, 1277, kSentinel}}, {{1278, 1279, kSentinel}}, {{1280, 1281, kSentinel}}, {{1282, 1283, kSentinel}}, // NOLINT 14449fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1284, 1285, kSentinel}}, {{1286, 1287, kSentinel}}, {{1288, 1289, kSentinel}}, {{1290, 1291, kSentinel}}, // NOLINT 14459fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{1292, 1293, kSentinel}}, {{1294, 1295, kSentinel}}, {{1296, 1297, kSentinel}}, {{1298, 1299, kSentinel}}, // NOLINT 14463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{1300, 1301, kSentinel}}, {{1302, 1303, kSentinel}}, {{1304, 1305, kSentinel}}, {{1306, 1307, kSentinel}}, // NOLINT 14473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{1308, 1309, kSentinel}}, {{1310, 1311, kSentinel}}, {{1312, 1313, kSentinel}}, {{1314, 1315, kSentinel}}, // NOLINT 14483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{1316, 1317, kSentinel}}, {{1318, 1319, kSentinel}}, {{1329, 1377, kSentinel}}, {{1366, 1414, kSentinel}}, // NOLINT 14493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{4256, 11520, kSentinel}}, {{4293, 11557, kSentinel}}, {{4295, 11559, kSentinel}}, {{4301, 11565, kSentinel}}, // NOLINT 14503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7545, 42877, kSentinel}}, {{7549, 11363, kSentinel}}, {{7680, 7681, kSentinel}}, {{7682, 7683, kSentinel}}, // NOLINT 14513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7684, 7685, kSentinel}}, {{7686, 7687, kSentinel}}, {{7688, 7689, kSentinel}}, {{7690, 7691, kSentinel}}, // NOLINT 14523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7692, 7693, kSentinel}}, {{7694, 7695, kSentinel}}, {{7696, 7697, kSentinel}}, {{7698, 7699, kSentinel}}, // NOLINT 14533ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7700, 7701, kSentinel}}, {{7702, 7703, kSentinel}}, {{7704, 7705, kSentinel}}, {{7706, 7707, kSentinel}}, // NOLINT 14543ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7708, 7709, kSentinel}}, {{7710, 7711, kSentinel}}, {{7712, 7713, kSentinel}}, {{7714, 7715, kSentinel}}, // NOLINT 14553ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7716, 7717, kSentinel}}, {{7718, 7719, kSentinel}}, {{7720, 7721, kSentinel}}, {{7722, 7723, kSentinel}}, // NOLINT 14563ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7724, 7725, kSentinel}}, {{7726, 7727, kSentinel}}, {{7728, 7729, kSentinel}}, {{7730, 7731, kSentinel}}, // NOLINT 14573ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7732, 7733, kSentinel}}, {{7734, 7735, kSentinel}}, {{7736, 7737, kSentinel}}, {{7738, 7739, kSentinel}}, // NOLINT 14583ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7740, 7741, kSentinel}}, {{7742, 7743, kSentinel}}, {{7744, 7745, kSentinel}}, {{7746, 7747, kSentinel}}, // NOLINT 14593ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7748, 7749, kSentinel}}, {{7750, 7751, kSentinel}}, {{7752, 7753, kSentinel}}, {{7754, 7755, kSentinel}}, // NOLINT 14603ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7756, 7757, kSentinel}}, {{7758, 7759, kSentinel}}, {{7760, 7761, kSentinel}}, {{7762, 7763, kSentinel}}, // NOLINT 14613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7764, 7765, kSentinel}}, {{7766, 7767, kSentinel}}, {{7768, 7769, kSentinel}}, {{7770, 7771, kSentinel}}, // NOLINT 14623ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7772, 7773, kSentinel}}, {{7774, 7775, kSentinel}}, {{7776, 7777, 7835, kSentinel}}, {{7778, 7779, kSentinel}}, // NOLINT 14633ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7780, 7781, kSentinel}}, {{7782, 7783, kSentinel}}, {{7784, 7785, kSentinel}}, {{7786, 7787, kSentinel}}, // NOLINT 14643ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7788, 7789, kSentinel}}, {{7790, 7791, kSentinel}}, {{7792, 7793, kSentinel}}, {{7794, 7795, kSentinel}}, // NOLINT 14653ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7796, 7797, kSentinel}}, {{7798, 7799, kSentinel}}, {{7800, 7801, kSentinel}}, {{7802, 7803, kSentinel}}, // NOLINT 14663ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7804, 7805, kSentinel}}, {{7806, 7807, kSentinel}}, {{7808, 7809, kSentinel}}, {{7810, 7811, kSentinel}}, // NOLINT 14673ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7812, 7813, kSentinel}}, {{7814, 7815, kSentinel}}, {{7816, 7817, kSentinel}}, {{7818, 7819, kSentinel}}, // NOLINT 14683ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7820, 7821, kSentinel}}, {{7822, 7823, kSentinel}}, {{7824, 7825, kSentinel}}, {{7826, 7827, kSentinel}}, // NOLINT 14693ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7828, 7829, kSentinel}}, {{7840, 7841, kSentinel}}, {{7842, 7843, kSentinel}}, {{7844, 7845, kSentinel}}, // NOLINT 14703ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7846, 7847, kSentinel}}, {{7848, 7849, kSentinel}}, {{7850, 7851, kSentinel}}, {{7852, 7853, kSentinel}}, // NOLINT 14713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7854, 7855, kSentinel}}, {{7856, 7857, kSentinel}}, {{7858, 7859, kSentinel}}, {{7860, 7861, kSentinel}}, // NOLINT 14723ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7862, 7863, kSentinel}}, {{7864, 7865, kSentinel}}, {{7866, 7867, kSentinel}}, {{7868, 7869, kSentinel}}, // NOLINT 14733ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7870, 7871, kSentinel}}, {{7872, 7873, kSentinel}}, {{7874, 7875, kSentinel}}, {{7876, 7877, kSentinel}}, // NOLINT 14743ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7878, 7879, kSentinel}}, {{7880, 7881, kSentinel}}, {{7882, 7883, kSentinel}}, {{7884, 7885, kSentinel}}, // NOLINT 14753ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7886, 7887, kSentinel}}, {{7888, 7889, kSentinel}}, {{7890, 7891, kSentinel}}, {{7892, 7893, kSentinel}}, // NOLINT 14763ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7894, 7895, kSentinel}}, {{7896, 7897, kSentinel}}, {{7898, 7899, kSentinel}}, {{7900, 7901, kSentinel}}, // NOLINT 14773ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7902, 7903, kSentinel}}, {{7904, 7905, kSentinel}}, {{7906, 7907, kSentinel}}, {{7908, 7909, kSentinel}}, // NOLINT 14783ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7910, 7911, kSentinel}}, {{7912, 7913, kSentinel}}, {{7914, 7915, kSentinel}}, {{7916, 7917, kSentinel}}, // NOLINT 14793ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7918, 7919, kSentinel}}, {{7920, 7921, kSentinel}}, {{7922, 7923, kSentinel}}, {{7924, 7925, kSentinel}}, // NOLINT 14803ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7926, 7927, kSentinel}}, {{7928, 7929, kSentinel}}, {{7930, 7931, kSentinel}}, {{7932, 7933, kSentinel}}, // NOLINT 14813ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{7934, 7935, kSentinel}}, {{7936, 7944, kSentinel}}, {{7943, 7951, kSentinel}}, {{7952, 7960, kSentinel}}, // NOLINT 14829fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{7957, 7965, kSentinel}}, {{7968, 7976, kSentinel}}, {{7975, 7983, kSentinel}}, {{7984, 7992, kSentinel}}, // NOLINT 14839fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{7991, 7999, kSentinel}}, {{8000, 8008, kSentinel}}, {{8005, 8013, kSentinel}}, {{8017, 8025, kSentinel}}, // NOLINT 14849fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8019, 8027, kSentinel}}, {{8021, 8029, kSentinel}}, {{8023, 8031, kSentinel}}, {{8032, 8040, kSentinel}}, // NOLINT 14859fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8039, 8047, kSentinel}}, {{8048, 8122, kSentinel}}, {{8049, 8123, kSentinel}}, {{8050, 8136, kSentinel}}, // NOLINT 14869fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8053, 8139, kSentinel}}, {{8054, 8154, kSentinel}}, {{8055, 8155, kSentinel}}, {{8056, 8184, kSentinel}}, // NOLINT 14879fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8057, 8185, kSentinel}}, {{8058, 8170, kSentinel}}, {{8059, 8171, kSentinel}}, {{8060, 8186, kSentinel}}, // NOLINT 14889fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8061, 8187, kSentinel}}, {{8112, 8120, kSentinel}}, {{8113, 8121, kSentinel}}, {{8144, 8152, kSentinel}}, // NOLINT 14899fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{8145, 8153, kSentinel}}, {{8160, 8168, kSentinel}}, {{8161, 8169, kSentinel}}, {{8165, 8172, kSentinel}}, // NOLINT 14909fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 14913ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262UnCanonicalizeTable0Size = 990; // NOLINT 14923ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kEcma262UnCanonicalizeTable0[1980] = { 1493bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741889, 1, 90, 5, 1073741921, 1, 122, 5, 181, 9, 1073742016, 13, 214, 17, 1073742040, 21, // NOLINT 1494bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 222, 25, 1073742048, 13, 246, 17, 1073742072, 21, 254, 25, 255, 29, 256, 33, 257, 33, // NOLINT 1495bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 258, 37, 259, 37, 260, 41, 261, 41, 262, 45, 263, 45, 264, 49, 265, 49, // NOLINT 1496bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 266, 53, 267, 53, 268, 57, 269, 57, 270, 61, 271, 61, 272, 65, 273, 65, // NOLINT 1497bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 274, 69, 275, 69, 276, 73, 277, 73, 278, 77, 279, 77, 280, 81, 281, 81, // NOLINT 1498bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 282, 85, 283, 85, 284, 89, 285, 89, 286, 93, 287, 93, 288, 97, 289, 97, // NOLINT 1499bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 290, 101, 291, 101, 292, 105, 293, 105, 294, 109, 295, 109, 296, 113, 297, 113, // NOLINT 1500bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 298, 117, 299, 117, 300, 121, 301, 121, 302, 125, 303, 125, 306, 129, 307, 129, // NOLINT 1501bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 308, 133, 309, 133, 310, 137, 311, 137, 313, 141, 314, 141, 315, 145, 316, 145, // NOLINT 1502bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 317, 149, 318, 149, 319, 153, 320, 153, 321, 157, 322, 157, 323, 161, 324, 161, // NOLINT 1503bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 325, 165, 326, 165, 327, 169, 328, 169, 330, 173, 331, 173, 332, 177, 333, 177, // NOLINT 1504bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 334, 181, 335, 181, 336, 185, 337, 185, 338, 189, 339, 189, 340, 193, 341, 193, // NOLINT 1505bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 342, 197, 343, 197, 344, 201, 345, 201, 346, 205, 347, 205, 348, 209, 349, 209, // NOLINT 1506bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 350, 213, 351, 213, 352, 217, 353, 217, 354, 221, 355, 221, 356, 225, 357, 225, // NOLINT 1507bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 358, 229, 359, 229, 360, 233, 361, 233, 362, 237, 363, 237, 364, 241, 365, 241, // NOLINT 1508bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 366, 245, 367, 245, 368, 249, 369, 249, 370, 253, 371, 253, 372, 257, 373, 257, // NOLINT 1509bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 374, 261, 375, 261, 376, 29, 377, 265, 378, 265, 379, 269, 380, 269, 381, 273, // NOLINT 1510bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 382, 273, 384, 277, 385, 281, 386, 285, 387, 285, 388, 289, 389, 289, 390, 293, // NOLINT 1511bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 391, 297, 392, 297, 1073742217, 301, 394, 305, 395, 309, 396, 309, 398, 313, 399, 317, // NOLINT 1512bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 400, 321, 401, 325, 402, 325, 403, 329, 404, 333, 405, 337, 406, 341, 407, 345, // NOLINT 1513bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 408, 349, 409, 349, 410, 353, 412, 357, 413, 361, 414, 365, 415, 369, 416, 373, // NOLINT 1514bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 417, 373, 418, 377, 419, 377, 420, 381, 421, 381, 422, 385, 423, 389, 424, 389, // NOLINT 1515bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 425, 393, 428, 397, 429, 397, 430, 401, 431, 405, 432, 405, 1073742257, 409, 434, 413, // NOLINT 1516bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 435, 417, 436, 417, 437, 421, 438, 421, 439, 425, 440, 429, 441, 429, 444, 433, // NOLINT 1517bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 445, 433, 447, 437, 452, 441, 453, 441, 454, 441, 455, 445, 456, 445, 457, 445, // NOLINT 1518bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 458, 449, 459, 449, 460, 449, 461, 453, 462, 453, 463, 457, 464, 457, 465, 461, // NOLINT 1519bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 466, 461, 467, 465, 468, 465, 469, 469, 470, 469, 471, 473, 472, 473, 473, 477, // NOLINT 1520bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 474, 477, 475, 481, 476, 481, 477, 313, 478, 485, 479, 485, 480, 489, 481, 489, // NOLINT 1521bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 482, 493, 483, 493, 484, 497, 485, 497, 486, 501, 487, 501, 488, 505, 489, 505, // NOLINT 1522bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 490, 509, 491, 509, 492, 513, 493, 513, 494, 517, 495, 517, 497, 521, 498, 521, // NOLINT 1523bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 499, 521, 500, 525, 501, 525, 502, 337, 503, 437, 504, 529, 505, 529, 506, 533, // NOLINT 1524bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 507, 533, 508, 537, 509, 537, 510, 541, 511, 541, 512, 545, 513, 545, 514, 549, // NOLINT 1525bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 515, 549, 516, 553, 517, 553, 518, 557, 519, 557, 520, 561, 521, 561, 522, 565, // NOLINT 1526bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 523, 565, 524, 569, 525, 569, 526, 573, 527, 573, 528, 577, 529, 577, 530, 581, // NOLINT 1527bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 531, 581, 532, 585, 533, 585, 534, 589, 535, 589, 536, 593, 537, 593, 538, 597, // NOLINT 1528bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 539, 597, 540, 601, 541, 601, 542, 605, 543, 605, 544, 365, 546, 609, 547, 609, // NOLINT 1529bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 548, 613, 549, 613, 550, 617, 551, 617, 552, 621, 553, 621, 554, 625, 555, 625, // NOLINT 1530bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 556, 629, 557, 629, 558, 633, 559, 633, 560, 637, 561, 637, 562, 641, 563, 641, // NOLINT 15313ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 570, 645, 571, 649, 572, 649, 573, 353, 574, 653, 1073742399, 657, 576, 661, 577, 665, // NOLINT 15323ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 578, 665, 579, 277, 580, 669, 581, 673, 582, 677, 583, 677, 584, 681, 585, 681, // NOLINT 15333ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 586, 685, 587, 685, 588, 689, 589, 689, 590, 693, 591, 693, 592, 697, 593, 701, // NOLINT 15343ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 594, 705, 595, 281, 596, 293, 1073742422, 301, 599, 305, 601, 317, 603, 321, 608, 329, // NOLINT 15353ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 611, 333, 613, 709, 614, 713, 616, 345, 617, 341, 619, 717, 623, 357, 625, 721, // NOLINT 15363ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 626, 361, 629, 369, 637, 725, 640, 385, 643, 393, 648, 401, 649, 669, 1073742474, 409, // NOLINT 15373ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 651, 413, 652, 673, 658, 425, 837, 729, 880, 733, 881, 733, 882, 737, 883, 737, // NOLINT 15383ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 886, 741, 887, 741, 1073742715, 745, 893, 749, 902, 753, 1073742728, 757, 906, 761, 908, 765, // NOLINT 15393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742734, 769, 911, 773, 913, 777, 914, 781, 1073742739, 785, 916, 789, 917, 793, 1073742742, 797, // NOLINT 15403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 919, 801, 920, 805, 921, 729, 922, 809, 923, 813, 924, 9, 1073742749, 817, 927, 821, // NOLINT 15413ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 928, 825, 929, 829, 931, 833, 1073742756, 837, 933, 841, 934, 845, 1073742759, 849, 939, 853, // NOLINT 15423ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 940, 753, 1073742765, 757, 943, 761, 945, 777, 946, 781, 1073742771, 785, 948, 789, 949, 793, // NOLINT 15433ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742774, 797, 951, 801, 952, 805, 953, 729, 954, 809, 955, 813, 956, 9, 1073742781, 817, // NOLINT 15443ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 959, 821, 960, 825, 961, 829, 962, 833, 963, 833, 1073742788, 837, 965, 841, 966, 845, // NOLINT 15453ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742791, 849, 971, 853, 972, 765, 1073742797, 769, 974, 773, 975, 857, 976, 781, 977, 805, // NOLINT 15463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 981, 845, 982, 825, 983, 857, 984, 861, 985, 861, 986, 865, 987, 865, 988, 869, // NOLINT 15473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 989, 869, 990, 873, 991, 873, 992, 877, 993, 877, 994, 881, 995, 881, 996, 885, // NOLINT 15483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 997, 885, 998, 889, 999, 889, 1000, 893, 1001, 893, 1002, 897, 1003, 897, 1004, 901, // NOLINT 15493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1005, 901, 1006, 905, 1007, 905, 1008, 809, 1009, 829, 1010, 909, 1013, 793, 1015, 913, // NOLINT 15503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1016, 913, 1017, 909, 1018, 917, 1019, 917, 1073742845, 745, 1023, 749, 1073742848, 921, 1039, 925, // NOLINT 15513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073742864, 929, 1071, 933, 1073742896, 929, 1103, 933, 1073742928, 921, 1119, 925, 1120, 937, 1121, 937, // NOLINT 15523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1122, 941, 1123, 941, 1124, 945, 1125, 945, 1126, 949, 1127, 949, 1128, 953, 1129, 953, // NOLINT 15533ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1130, 957, 1131, 957, 1132, 961, 1133, 961, 1134, 965, 1135, 965, 1136, 969, 1137, 969, // NOLINT 15543ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1138, 973, 1139, 973, 1140, 977, 1141, 977, 1142, 981, 1143, 981, 1144, 985, 1145, 985, // NOLINT 15553ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1146, 989, 1147, 989, 1148, 993, 1149, 993, 1150, 997, 1151, 997, 1152, 1001, 1153, 1001, // NOLINT 15563ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1162, 1005, 1163, 1005, 1164, 1009, 1165, 1009, 1166, 1013, 1167, 1013, 1168, 1017, 1169, 1017, // NOLINT 15573ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1170, 1021, 1171, 1021, 1172, 1025, 1173, 1025, 1174, 1029, 1175, 1029, 1176, 1033, 1177, 1033, // NOLINT 15583ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1178, 1037, 1179, 1037, 1180, 1041, 1181, 1041, 1182, 1045, 1183, 1045, 1184, 1049, 1185, 1049, // NOLINT 15593ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1186, 1053, 1187, 1053, 1188, 1057, 1189, 1057, 1190, 1061, 1191, 1061, 1192, 1065, 1193, 1065, // NOLINT 15603ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1194, 1069, 1195, 1069, 1196, 1073, 1197, 1073, 1198, 1077, 1199, 1077, 1200, 1081, 1201, 1081, // NOLINT 15613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1202, 1085, 1203, 1085, 1204, 1089, 1205, 1089, 1206, 1093, 1207, 1093, 1208, 1097, 1209, 1097, // NOLINT 15623ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1210, 1101, 1211, 1101, 1212, 1105, 1213, 1105, 1214, 1109, 1215, 1109, 1216, 1113, 1217, 1117, // NOLINT 15633ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1218, 1117, 1219, 1121, 1220, 1121, 1221, 1125, 1222, 1125, 1223, 1129, 1224, 1129, 1225, 1133, // NOLINT 15643ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1226, 1133, 1227, 1137, 1228, 1137, 1229, 1141, 1230, 1141, 1231, 1113, 1232, 1145, 1233, 1145, // NOLINT 15653ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1234, 1149, 1235, 1149, 1236, 1153, 1237, 1153, 1238, 1157, 1239, 1157, 1240, 1161, 1241, 1161, // NOLINT 15663ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1242, 1165, 1243, 1165, 1244, 1169, 1245, 1169, 1246, 1173, 1247, 1173, 1248, 1177, 1249, 1177, // NOLINT 15673ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1250, 1181, 1251, 1181, 1252, 1185, 1253, 1185, 1254, 1189, 1255, 1189, 1256, 1193, 1257, 1193, // NOLINT 15683ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1258, 1197, 1259, 1197, 1260, 1201, 1261, 1201, 1262, 1205, 1263, 1205, 1264, 1209, 1265, 1209, // NOLINT 15693ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1266, 1213, 1267, 1213, 1268, 1217, 1269, 1217, 1270, 1221, 1271, 1221, 1272, 1225, 1273, 1225, // NOLINT 15703ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1274, 1229, 1275, 1229, 1276, 1233, 1277, 1233, 1278, 1237, 1279, 1237, 1280, 1241, 1281, 1241, // NOLINT 15713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1282, 1245, 1283, 1245, 1284, 1249, 1285, 1249, 1286, 1253, 1287, 1253, 1288, 1257, 1289, 1257, // NOLINT 15723ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1290, 1261, 1291, 1261, 1292, 1265, 1293, 1265, 1294, 1269, 1295, 1269, 1296, 1273, 1297, 1273, // NOLINT 15733ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1298, 1277, 1299, 1277, 1300, 1281, 1301, 1281, 1302, 1285, 1303, 1285, 1304, 1289, 1305, 1289, // NOLINT 15743ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1306, 1293, 1307, 1293, 1308, 1297, 1309, 1297, 1310, 1301, 1311, 1301, 1312, 1305, 1313, 1305, // NOLINT 15753ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1314, 1309, 1315, 1309, 1316, 1313, 1317, 1313, 1318, 1317, 1319, 1317, 1073743153, 1321, 1366, 1325, // NOLINT 15763ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073743201, 1321, 1414, 1325, 1073746080, 1329, 4293, 1333, 4295, 1337, 4301, 1341, 7545, 1345, 7549, 1349, // NOLINT 15773ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7680, 1353, 7681, 1353, 7682, 1357, 7683, 1357, 7684, 1361, 7685, 1361, 7686, 1365, 7687, 1365, // NOLINT 15783ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7688, 1369, 7689, 1369, 7690, 1373, 7691, 1373, 7692, 1377, 7693, 1377, 7694, 1381, 7695, 1381, // NOLINT 15793ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7696, 1385, 7697, 1385, 7698, 1389, 7699, 1389, 7700, 1393, 7701, 1393, 7702, 1397, 7703, 1397, // NOLINT 15803ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7704, 1401, 7705, 1401, 7706, 1405, 7707, 1405, 7708, 1409, 7709, 1409, 7710, 1413, 7711, 1413, // NOLINT 15813ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7712, 1417, 7713, 1417, 7714, 1421, 7715, 1421, 7716, 1425, 7717, 1425, 7718, 1429, 7719, 1429, // NOLINT 15823ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7720, 1433, 7721, 1433, 7722, 1437, 7723, 1437, 7724, 1441, 7725, 1441, 7726, 1445, 7727, 1445, // NOLINT 15833ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7728, 1449, 7729, 1449, 7730, 1453, 7731, 1453, 7732, 1457, 7733, 1457, 7734, 1461, 7735, 1461, // NOLINT 15843ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7736, 1465, 7737, 1465, 7738, 1469, 7739, 1469, 7740, 1473, 7741, 1473, 7742, 1477, 7743, 1477, // NOLINT 15853ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7744, 1481, 7745, 1481, 7746, 1485, 7747, 1485, 7748, 1489, 7749, 1489, 7750, 1493, 7751, 1493, // NOLINT 15863ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7752, 1497, 7753, 1497, 7754, 1501, 7755, 1501, 7756, 1505, 7757, 1505, 7758, 1509, 7759, 1509, // NOLINT 15873ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7760, 1513, 7761, 1513, 7762, 1517, 7763, 1517, 7764, 1521, 7765, 1521, 7766, 1525, 7767, 1525, // NOLINT 15883ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7768, 1529, 7769, 1529, 7770, 1533, 7771, 1533, 7772, 1537, 7773, 1537, 7774, 1541, 7775, 1541, // NOLINT 15893ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7776, 1545, 7777, 1545, 7778, 1549, 7779, 1549, 7780, 1553, 7781, 1553, 7782, 1557, 7783, 1557, // NOLINT 15903ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7784, 1561, 7785, 1561, 7786, 1565, 7787, 1565, 7788, 1569, 7789, 1569, 7790, 1573, 7791, 1573, // NOLINT 15913ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7792, 1577, 7793, 1577, 7794, 1581, 7795, 1581, 7796, 1585, 7797, 1585, 7798, 1589, 7799, 1589, // NOLINT 15923ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7800, 1593, 7801, 1593, 7802, 1597, 7803, 1597, 7804, 1601, 7805, 1601, 7806, 1605, 7807, 1605, // NOLINT 15933ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7808, 1609, 7809, 1609, 7810, 1613, 7811, 1613, 7812, 1617, 7813, 1617, 7814, 1621, 7815, 1621, // NOLINT 15943ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7816, 1625, 7817, 1625, 7818, 1629, 7819, 1629, 7820, 1633, 7821, 1633, 7822, 1637, 7823, 1637, // NOLINT 15953ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7824, 1641, 7825, 1641, 7826, 1645, 7827, 1645, 7828, 1649, 7829, 1649, 7835, 1545, 7840, 1653, // NOLINT 15963ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7841, 1653, 7842, 1657, 7843, 1657, 7844, 1661, 7845, 1661, 7846, 1665, 7847, 1665, 7848, 1669, // NOLINT 15973ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7849, 1669, 7850, 1673, 7851, 1673, 7852, 1677, 7853, 1677, 7854, 1681, 7855, 1681, 7856, 1685, // NOLINT 15983ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7857, 1685, 7858, 1689, 7859, 1689, 7860, 1693, 7861, 1693, 7862, 1697, 7863, 1697, 7864, 1701, // NOLINT 15993ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7865, 1701, 7866, 1705, 7867, 1705, 7868, 1709, 7869, 1709, 7870, 1713, 7871, 1713, 7872, 1717, // NOLINT 16003ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7873, 1717, 7874, 1721, 7875, 1721, 7876, 1725, 7877, 1725, 7878, 1729, 7879, 1729, 7880, 1733, // NOLINT 16013ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7881, 1733, 7882, 1737, 7883, 1737, 7884, 1741, 7885, 1741, 7886, 1745, 7887, 1745, 7888, 1749, // NOLINT 16023ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7889, 1749, 7890, 1753, 7891, 1753, 7892, 1757, 7893, 1757, 7894, 1761, 7895, 1761, 7896, 1765, // NOLINT 16033ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7897, 1765, 7898, 1769, 7899, 1769, 7900, 1773, 7901, 1773, 7902, 1777, 7903, 1777, 7904, 1781, // NOLINT 16043ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7905, 1781, 7906, 1785, 7907, 1785, 7908, 1789, 7909, 1789, 7910, 1793, 7911, 1793, 7912, 1797, // NOLINT 16053ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7913, 1797, 7914, 1801, 7915, 1801, 7916, 1805, 7917, 1805, 7918, 1809, 7919, 1809, 7920, 1813, // NOLINT 16063ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7921, 1813, 7922, 1817, 7923, 1817, 7924, 1821, 7925, 1821, 7926, 1825, 7927, 1825, 7928, 1829, // NOLINT 16073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7929, 1829, 7930, 1833, 7931, 1833, 7932, 1837, 7933, 1837, 7934, 1841, 7935, 1841, 1073749760, 1845, // NOLINT 16083ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7943, 1849, 1073749768, 1845, 7951, 1849, 1073749776, 1853, 7957, 1857, 1073749784, 1853, 7965, 1857, 1073749792, 1861, // NOLINT 16093ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 7975, 1865, 1073749800, 1861, 7983, 1865, 1073749808, 1869, 7991, 1873, 1073749816, 1869, 7999, 1873, 1073749824, 1877, // NOLINT 16103ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8005, 1881, 1073749832, 1877, 8013, 1881, 8017, 1885, 8019, 1889, 8021, 1893, 8023, 1897, 8025, 1885, // NOLINT 16113ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8027, 1889, 8029, 1893, 8031, 1897, 1073749856, 1901, 8039, 1905, 1073749864, 1901, 8047, 1905, 1073749872, 1909, // NOLINT 16123ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8049, 1913, 1073749874, 1917, 8053, 1921, 1073749878, 1925, 8055, 1929, 1073749880, 1933, 8057, 1937, 1073749882, 1941, // NOLINT 16133ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8059, 1945, 1073749884, 1949, 8061, 1953, 1073749936, 1957, 8113, 1961, 1073749944, 1957, 8121, 1961, 1073749946, 1909, // NOLINT 16143ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8123, 1913, 8126, 729, 1073749960, 1917, 8139, 1921, 1073749968, 1965, 8145, 1969, 1073749976, 1965, 8153, 1969, // NOLINT 16153ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1073749978, 1925, 8155, 1929, 1073749984, 1973, 8161, 1977, 8165, 1981, 1073749992, 1973, 8169, 1977, 1073749994, 1941, // NOLINT 16163ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 8171, 1945, 8172, 1981, 1073750008, 1933, 8185, 1937, 1073750010, 1949, 8187, 1953 }; // NOLINT 16173ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262UnCanonicalizeMultiStrings0Size = 497; // NOLINT 16183ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const MultiCharacterSpecialCase<2> kEcma262UnCanonicalizeMultiStrings1[83] = { // NOLINT 1619bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch {{8498, 8526}}, {{8544, 8560}}, {{8559, 8575}}, {{8579, 8580}}, // NOLINT 1620bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch {{9398, 9424}}, {{9423, 9449}}, {{11264, 11312}}, {{11310, 11358}}, // NOLINT 1621bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch {{11360, 11361}}, {{619, 11362}}, {{7549, 11363}}, {{637, 11364}}, // NOLINT 1622bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch {{570, 11365}}, {{574, 11366}}, {{11367, 11368}}, {{11369, 11370}}, // NOLINT 16233ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11371, 11372}}, {{593, 11373}}, {{625, 11374}}, {{592, 11375}}, // NOLINT 16243ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{594, 11376}}, {{11378, 11379}}, {{11381, 11382}}, {{575, 11390}}, // NOLINT 16253ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{576, 11391}}, {{11392, 11393}}, {{11394, 11395}}, {{11396, 11397}}, // NOLINT 16263ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11398, 11399}}, {{11400, 11401}}, {{11402, 11403}}, {{11404, 11405}}, // NOLINT 16273ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11406, 11407}}, {{11408, 11409}}, {{11410, 11411}}, {{11412, 11413}}, // NOLINT 16283ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11414, 11415}}, {{11416, 11417}}, {{11418, 11419}}, {{11420, 11421}}, // NOLINT 16293ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11422, 11423}}, {{11424, 11425}}, {{11426, 11427}}, {{11428, 11429}}, // NOLINT 16303ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11430, 11431}}, {{11432, 11433}}, {{11434, 11435}}, {{11436, 11437}}, // NOLINT 16313ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11438, 11439}}, {{11440, 11441}}, {{11442, 11443}}, {{11444, 11445}}, // NOLINT 16323ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11446, 11447}}, {{11448, 11449}}, {{11450, 11451}}, {{11452, 11453}}, // NOLINT 16333ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11454, 11455}}, {{11456, 11457}}, {{11458, 11459}}, {{11460, 11461}}, // NOLINT 16343ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11462, 11463}}, {{11464, 11465}}, {{11466, 11467}}, {{11468, 11469}}, // NOLINT 16353ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11470, 11471}}, {{11472, 11473}}, {{11474, 11475}}, {{11476, 11477}}, // NOLINT 16363ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11478, 11479}}, {{11480, 11481}}, {{11482, 11483}}, {{11484, 11485}}, // NOLINT 16373ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11486, 11487}}, {{11488, 11489}}, {{11490, 11491}}, {{11499, 11500}}, // NOLINT 16383ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{11501, 11502}}, {{11506, 11507}}, {{4256, 11520}}, {{4293, 11557}}, // NOLINT 16393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{4295, 11559}}, {{4301, 11565}}, {{kSentinel}} }; // NOLINT 16403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262UnCanonicalizeTable1Size = 149; // NOLINT 16413ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kEcma262UnCanonicalizeTable1[298] = { 1642bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 306, 1, 334, 1, 1073742176, 5, 367, 9, 1073742192, 5, 383, 9, 387, 13, 388, 13, // NOLINT 1643bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073743030, 17, 1231, 21, 1073743056, 17, 1257, 21, 1073744896, 25, 3118, 29, 1073744944, 25, 3166, 29, // NOLINT 1644bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 3168, 33, 3169, 33, 3170, 37, 3171, 41, 3172, 45, 3173, 49, 3174, 53, 3175, 57, // NOLINT 16453ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3176, 57, 3177, 61, 3178, 61, 3179, 65, 3180, 65, 3181, 69, 3182, 73, 3183, 77, // NOLINT 16463ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3184, 81, 3186, 85, 3187, 85, 3189, 89, 3190, 89, 1073745022, 93, 3199, 97, 3200, 101, // NOLINT 16473ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3201, 101, 3202, 105, 3203, 105, 3204, 109, 3205, 109, 3206, 113, 3207, 113, 3208, 117, // NOLINT 16483ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3209, 117, 3210, 121, 3211, 121, 3212, 125, 3213, 125, 3214, 129, 3215, 129, 3216, 133, // NOLINT 16493ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3217, 133, 3218, 137, 3219, 137, 3220, 141, 3221, 141, 3222, 145, 3223, 145, 3224, 149, // NOLINT 16503ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3225, 149, 3226, 153, 3227, 153, 3228, 157, 3229, 157, 3230, 161, 3231, 161, 3232, 165, // NOLINT 16513ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3233, 165, 3234, 169, 3235, 169, 3236, 173, 3237, 173, 3238, 177, 3239, 177, 3240, 181, // NOLINT 16523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3241, 181, 3242, 185, 3243, 185, 3244, 189, 3245, 189, 3246, 193, 3247, 193, 3248, 197, // NOLINT 16533ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3249, 197, 3250, 201, 3251, 201, 3252, 205, 3253, 205, 3254, 209, 3255, 209, 3256, 213, // NOLINT 16543ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3257, 213, 3258, 217, 3259, 217, 3260, 221, 3261, 221, 3262, 225, 3263, 225, 3264, 229, // NOLINT 16553ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3265, 229, 3266, 233, 3267, 233, 3268, 237, 3269, 237, 3270, 241, 3271, 241, 3272, 245, // NOLINT 16563ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3273, 245, 3274, 249, 3275, 249, 3276, 253, 3277, 253, 3278, 257, 3279, 257, 3280, 261, // NOLINT 16573ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3281, 261, 3282, 265, 3283, 265, 3284, 269, 3285, 269, 3286, 273, 3287, 273, 3288, 277, // NOLINT 16583ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3289, 277, 3290, 281, 3291, 281, 3292, 285, 3293, 285, 3294, 289, 3295, 289, 3296, 293, // NOLINT 16593ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3297, 293, 3298, 297, 3299, 297, 3307, 301, 3308, 301, 3309, 305, 3310, 305, 3314, 309, // NOLINT 16603ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 3315, 309, 1073745152, 313, 3365, 317, 3367, 321, 3373, 325 }; // NOLINT 16613ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262UnCanonicalizeMultiStrings1Size = 83; // NOLINT 16623ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const MultiCharacterSpecialCase<2> kEcma262UnCanonicalizeMultiStrings5[92] = { // NOLINT 16633ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42560, 42561}}, {{42562, 42563}}, {{42564, 42565}}, {{42566, 42567}}, // NOLINT 16643ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42568, 42569}}, {{42570, 42571}}, {{42572, 42573}}, {{42574, 42575}}, // NOLINT 16653ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42576, 42577}}, {{42578, 42579}}, {{42580, 42581}}, {{42582, 42583}}, // NOLINT 16663ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42584, 42585}}, {{42586, 42587}}, {{42588, 42589}}, {{42590, 42591}}, // NOLINT 16673ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42592, 42593}}, {{42594, 42595}}, {{42596, 42597}}, {{42598, 42599}}, // NOLINT 16683ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42600, 42601}}, {{42602, 42603}}, {{42604, 42605}}, {{42624, 42625}}, // NOLINT 16693ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42626, 42627}}, {{42628, 42629}}, {{42630, 42631}}, {{42632, 42633}}, // NOLINT 16703ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42634, 42635}}, {{42636, 42637}}, {{42638, 42639}}, {{42640, 42641}}, // NOLINT 16713ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42642, 42643}}, {{42644, 42645}}, {{42646, 42647}}, {{42786, 42787}}, // NOLINT 16723ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42788, 42789}}, {{42790, 42791}}, {{42792, 42793}}, {{42794, 42795}}, // NOLINT 16733ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42796, 42797}}, {{42798, 42799}}, {{42802, 42803}}, {{42804, 42805}}, // NOLINT 16743ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42806, 42807}}, {{42808, 42809}}, {{42810, 42811}}, {{42812, 42813}}, // NOLINT 16753ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42814, 42815}}, {{42816, 42817}}, {{42818, 42819}}, {{42820, 42821}}, // NOLINT 16763ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42822, 42823}}, {{42824, 42825}}, {{42826, 42827}}, {{42828, 42829}}, // NOLINT 16773ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42830, 42831}}, {{42832, 42833}}, {{42834, 42835}}, {{42836, 42837}}, // NOLINT 16783ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42838, 42839}}, {{42840, 42841}}, {{42842, 42843}}, {{42844, 42845}}, // NOLINT 16793ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42846, 42847}}, {{42848, 42849}}, {{42850, 42851}}, {{42852, 42853}}, // NOLINT 16803ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42854, 42855}}, {{42856, 42857}}, {{42858, 42859}}, {{42860, 42861}}, // NOLINT 16813ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42862, 42863}}, {{42873, 42874}}, {{42875, 42876}}, {{7545, 42877}}, // NOLINT 16823ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42878, 42879}}, {{42880, 42881}}, {{42882, 42883}}, {{42884, 42885}}, // NOLINT 16833ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42886, 42887}}, {{42891, 42892}}, {{613, 42893}}, {{42896, 42897}}, // NOLINT 16843ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42898, 42899}}, {{42912, 42913}}, {{42914, 42915}}, {{42916, 42917}}, // NOLINT 16853ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch {{42918, 42919}}, {{42920, 42921}}, {{614, 42922}}, {{kSentinel}} }; // NOLINT 16863ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262UnCanonicalizeTable5Size = 179; // NOLINT 16873ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const int32_t kEcma262UnCanonicalizeTable5[358] = { 16883ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1600, 1, 1601, 1, 1602, 5, 1603, 5, 1604, 9, 1605, 9, 1606, 13, 1607, 13, // NOLINT 16893ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1608, 17, 1609, 17, 1610, 21, 1611, 21, 1612, 25, 1613, 25, 1614, 29, 1615, 29, // NOLINT 16903ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1616, 33, 1617, 33, 1618, 37, 1619, 37, 1620, 41, 1621, 41, 1622, 45, 1623, 45, // NOLINT 16913ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1624, 49, 1625, 49, 1626, 53, 1627, 53, 1628, 57, 1629, 57, 1630, 61, 1631, 61, // NOLINT 16923ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1632, 65, 1633, 65, 1634, 69, 1635, 69, 1636, 73, 1637, 73, 1638, 77, 1639, 77, // NOLINT 16933ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1640, 81, 1641, 81, 1642, 85, 1643, 85, 1644, 89, 1645, 89, 1664, 93, 1665, 93, // NOLINT 16943ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1666, 97, 1667, 97, 1668, 101, 1669, 101, 1670, 105, 1671, 105, 1672, 109, 1673, 109, // NOLINT 16953ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1674, 113, 1675, 113, 1676, 117, 1677, 117, 1678, 121, 1679, 121, 1680, 125, 1681, 125, // NOLINT 16963ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1682, 129, 1683, 129, 1684, 133, 1685, 133, 1686, 137, 1687, 137, 1826, 141, 1827, 141, // NOLINT 16973ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1828, 145, 1829, 145, 1830, 149, 1831, 149, 1832, 153, 1833, 153, 1834, 157, 1835, 157, // NOLINT 16983ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1836, 161, 1837, 161, 1838, 165, 1839, 165, 1842, 169, 1843, 169, 1844, 173, 1845, 173, // NOLINT 16993ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1846, 177, 1847, 177, 1848, 181, 1849, 181, 1850, 185, 1851, 185, 1852, 189, 1853, 189, // NOLINT 17003ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1854, 193, 1855, 193, 1856, 197, 1857, 197, 1858, 201, 1859, 201, 1860, 205, 1861, 205, // NOLINT 17013ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1862, 209, 1863, 209, 1864, 213, 1865, 213, 1866, 217, 1867, 217, 1868, 221, 1869, 221, // NOLINT 17023ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1870, 225, 1871, 225, 1872, 229, 1873, 229, 1874, 233, 1875, 233, 1876, 237, 1877, 237, // NOLINT 17033ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1878, 241, 1879, 241, 1880, 245, 1881, 245, 1882, 249, 1883, 249, 1884, 253, 1885, 253, // NOLINT 17043ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1886, 257, 1887, 257, 1888, 261, 1889, 261, 1890, 265, 1891, 265, 1892, 269, 1893, 269, // NOLINT 17053ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1894, 273, 1895, 273, 1896, 277, 1897, 277, 1898, 281, 1899, 281, 1900, 285, 1901, 285, // NOLINT 17063ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1902, 289, 1903, 289, 1913, 293, 1914, 293, 1915, 297, 1916, 297, 1917, 301, 1918, 305, // NOLINT 17073ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1919, 305, 1920, 309, 1921, 309, 1922, 313, 1923, 313, 1924, 317, 1925, 317, 1926, 321, // NOLINT 17083ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1927, 321, 1931, 325, 1932, 325, 1933, 329, 1936, 333, 1937, 333, 1938, 337, 1939, 337, // NOLINT 17093ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1952, 341, 1953, 341, 1954, 345, 1955, 345, 1956, 349, 1957, 349, 1958, 353, 1959, 353, // NOLINT 17103ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch 1960, 357, 1961, 357, 1962, 361 }; // NOLINT 17113ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdochstatic const uint16_t kEcma262UnCanonicalizeMultiStrings5Size = 92; // NOLINT 1712bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<2> kEcma262UnCanonicalizeMultiStrings7[3] = { // NOLINT 17139fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{65313, 65345}}, {{65338, 65370}}, {{kSentinel}} }; // NOLINT 1714bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kEcma262UnCanonicalizeTable7Size = 4; // NOLINT 1715bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kEcma262UnCanonicalizeTable7[8] = { 1716bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749793, 1, 7994, 5, 1073749825, 1, 8026, 5 }; // NOLINT 1717bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kEcma262UnCanonicalizeMultiStrings7Size = 3; // NOLINT 1718a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockint Ecma262UnCanonicalize::Convert(uchar c, 1719a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar n, 1720a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar* result, 1721a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block bool* allow_caching_ptr) { 1722bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 1723a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 1724bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 0: return LookupMapping<true>(kEcma262UnCanonicalizeTable0, 1725bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262UnCanonicalizeTable0Size, 1726bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262UnCanonicalizeMultiStrings0, 1727bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1728bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1729bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1730bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1731bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 1: return LookupMapping<true>(kEcma262UnCanonicalizeTable1, 1732bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262UnCanonicalizeTable1Size, 1733bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262UnCanonicalizeMultiStrings1, 1734bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1735bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1736bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1737bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 17383ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch case 5: return LookupMapping<true>(kEcma262UnCanonicalizeTable5, 17393ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kEcma262UnCanonicalizeTable5Size, 17403ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch kEcma262UnCanonicalizeMultiStrings5, 17413ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch c, 17423ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch n, 17433ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch result, 17443ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch allow_caching_ptr); 1745bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupMapping<true>(kEcma262UnCanonicalizeTable7, 1746bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262UnCanonicalizeTable7Size, 1747bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kEcma262UnCanonicalizeMultiStrings7, 1748bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1749bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1750bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1751bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1752a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return 0; 1753a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 1754a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 1755a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 1756bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<1> kCanonicalizationRangeMultiStrings0[1] = { // NOLINT 17579fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 1758bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kCanonicalizationRangeTable0Size = 70; // NOLINT 1759bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kCanonicalizationRangeTable0[140] = { 1760bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073741889, 100, 90, 0, 1073741921, 100, 122, 0, 1073742016, 88, 214, 0, 1073742040, 24, 222, 0, // NOLINT 1761bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742048, 88, 246, 0, 1073742072, 24, 254, 0, 1073742715, 8, 893, 0, 1073742728, 8, 906, 0, // NOLINT 1762bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742749, 8, 927, 0, 1073742759, 16, 939, 0, 1073742765, 8, 943, 0, 1073742781, 8, 959, 0, // NOLINT 1763bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742791, 16, 971, 0, 1073742845, 8, 1023, 0, 1073742848, 60, 1039, 0, 1073742864, 124, 1071, 0, // NOLINT 1764bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742896, 124, 1103, 0, 1073742928, 60, 1119, 0, 1073743153, 148, 1366, 0, 1073743201, 148, 1414, 0, // NOLINT 1765bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073746080, 148, 4293, 0, 1073749760, 28, 7943, 0, 1073749768, 28, 7951, 0, 1073749776, 20, 7957, 0, // NOLINT 1766bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749784, 20, 7965, 0, 1073749792, 28, 7975, 0, 1073749800, 28, 7983, 0, 1073749808, 28, 7991, 0, // NOLINT 1767bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749816, 28, 7999, 0, 1073749824, 20, 8005, 0, 1073749832, 20, 8013, 0, 1073749856, 28, 8039, 0, // NOLINT 1768bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749864, 28, 8047, 0, 1073749874, 12, 8053, 0, 1073749960, 12, 8139, 0 }; // NOLINT 1769bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kCanonicalizationRangeMultiStrings0Size = 1; // NOLINT 1770bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<1> kCanonicalizationRangeMultiStrings1[1] = { // NOLINT 17719fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 1772bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kCanonicalizationRangeTable1Size = 14; // NOLINT 1773bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kCanonicalizationRangeTable1[28] = { 1774bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073742176, 60, 367, 0, 1073742192, 60, 383, 0, 1073743030, 100, 1231, 0, 1073743056, 100, 1257, 0, // NOLINT 1775bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073744896, 184, 3118, 0, 1073744944, 184, 3166, 0, 1073745152, 148, 3365, 0 }; // NOLINT 1776bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kCanonicalizationRangeMultiStrings1Size = 1; // NOLINT 1777bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const MultiCharacterSpecialCase<1> kCanonicalizationRangeMultiStrings7[1] = { // NOLINT 17789fac840a46e8b7e26894f4792ba26dde14c56b04Steve Block {{kSentinel}} }; // NOLINT 1779bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kCanonicalizationRangeTable7Size = 4; // NOLINT 1780bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const int32_t kCanonicalizationRangeTable7[8] = { 1781bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch 1073749793, 100, 7994, 0, 1073749825, 100, 8026, 0 }; // NOLINT 1782bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdochstatic const uint16_t kCanonicalizationRangeMultiStrings7Size = 1; // NOLINT 1783a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockint CanonicalizationRange::Convert(uchar c, 1784a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar n, 1785a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block uchar* result, 1786a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block bool* allow_caching_ptr) { 1787bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch int chunk_index = c >> 13; 1788a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block switch (chunk_index) { 1789bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 0: return LookupMapping<false>(kCanonicalizationRangeTable0, 1790bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kCanonicalizationRangeTable0Size, 1791bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kCanonicalizationRangeMultiStrings0, 1792bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1793bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1794bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1795bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1796bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 1: return LookupMapping<false>(kCanonicalizationRangeTable1, 1797bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kCanonicalizationRangeTable1Size, 1798bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kCanonicalizationRangeMultiStrings1, 1799bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1800bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1801bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1802bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1803bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch case 7: return LookupMapping<false>(kCanonicalizationRangeTable7, 1804bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kCanonicalizationRangeTable7Size, 1805bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch kCanonicalizationRangeMultiStrings7, 1806bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch c, 1807bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch n, 1808bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch result, 1809bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch allow_caching_ptr); 1810a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block default: return 0; 1811a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block } 1812a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 1813a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 1814a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 181544f0eee88ff00398ff7f715fab053374d808c90dSteve Blockconst uchar UnicodeData::kMaxCodePoint = 65533; 1816a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 1817a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Blockint UnicodeData::GetByteCount() { 1818bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch return kUppercaseTable0Size * sizeof(int32_t) // NOLINT 1819bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kUppercaseTable1Size * sizeof(int32_t) // NOLINT 18203ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch + kUppercaseTable5Size * sizeof(int32_t) // NOLINT 1821bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kUppercaseTable7Size * sizeof(int32_t) // NOLINT 1822bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLowercaseTable0Size * sizeof(int32_t) // NOLINT 1823bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLowercaseTable1Size * sizeof(int32_t) // NOLINT 18243ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch + kLowercaseTable5Size * sizeof(int32_t) // NOLINT 1825bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLowercaseTable7Size * sizeof(int32_t) // NOLINT 1826bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLetterTable0Size * sizeof(int32_t) // NOLINT 1827bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLetterTable1Size * sizeof(int32_t) // NOLINT 1828bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLetterTable2Size * sizeof(int32_t) // NOLINT 1829bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLetterTable3Size * sizeof(int32_t) // NOLINT 1830bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLetterTable4Size * sizeof(int32_t) // NOLINT 1831bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLetterTable5Size * sizeof(int32_t) // NOLINT 1832bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLetterTable6Size * sizeof(int32_t) // NOLINT 1833bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLetterTable7Size * sizeof(int32_t) // NOLINT 1834bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kSpaceTable0Size * sizeof(int32_t) // NOLINT 1835bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kSpaceTable1Size * sizeof(int32_t) // NOLINT 1836bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kNumberTable0Size * sizeof(int32_t) // NOLINT 18373ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch + kNumberTable5Size * sizeof(int32_t) // NOLINT 1838bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kNumberTable7Size * sizeof(int32_t) // NOLINT 1839bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kWhiteSpaceTable0Size * sizeof(int32_t) // NOLINT 1840bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kWhiteSpaceTable1Size * sizeof(int32_t) // NOLINT 1841bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLineTerminatorTable0Size * sizeof(int32_t) // NOLINT 1842bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kLineTerminatorTable1Size * sizeof(int32_t) // NOLINT 1843bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kCombiningMarkTable0Size * sizeof(int32_t) // NOLINT 1844bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kCombiningMarkTable1Size * sizeof(int32_t) // NOLINT 1845bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kCombiningMarkTable5Size * sizeof(int32_t) // NOLINT 1846bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kCombiningMarkTable7Size * sizeof(int32_t) // NOLINT 1847bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kConnectorPunctuationTable0Size * sizeof(int32_t) // NOLINT 1848bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kConnectorPunctuationTable1Size * sizeof(int32_t) // NOLINT 1849bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kConnectorPunctuationTable7Size * sizeof(int32_t) // NOLINT 1850bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kToLowercaseMultiStrings0Size * sizeof(MultiCharacterSpecialCase<2>) // NOLINT 1851bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kToLowercaseMultiStrings1Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 18523ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch + kToLowercaseMultiStrings5Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 1853bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kToLowercaseMultiStrings7Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 1854bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kToUppercaseMultiStrings0Size * sizeof(MultiCharacterSpecialCase<3>) // NOLINT 1855bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kToUppercaseMultiStrings1Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 18563ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch + kToUppercaseMultiStrings5Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 1857bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kToUppercaseMultiStrings7Size * sizeof(MultiCharacterSpecialCase<3>) // NOLINT 1858bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kEcma262CanonicalizeMultiStrings0Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 1859bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kEcma262CanonicalizeMultiStrings1Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 18603ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch + kEcma262CanonicalizeMultiStrings5Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 1861bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kEcma262CanonicalizeMultiStrings7Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 1862bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kEcma262UnCanonicalizeMultiStrings0Size * sizeof(MultiCharacterSpecialCase<4>) // NOLINT 1863bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kEcma262UnCanonicalizeMultiStrings1Size * sizeof(MultiCharacterSpecialCase<2>) // NOLINT 18643ef787dbeca8a5fb1086949cda830dccee07bfbdBen Murdoch + kEcma262UnCanonicalizeMultiStrings5Size * sizeof(MultiCharacterSpecialCase<2>) // NOLINT 1865bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kEcma262UnCanonicalizeMultiStrings7Size * sizeof(MultiCharacterSpecialCase<2>) // NOLINT 1866bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kCanonicalizationRangeMultiStrings0Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 1867bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kCanonicalizationRangeMultiStrings1Size * sizeof(MultiCharacterSpecialCase<1>) // NOLINT 1868bb769b257e753aafcbd96767abb2abc645eaa20cBen Murdoch + kCanonicalizationRangeMultiStrings7Size * sizeof(MultiCharacterSpecialCase<1>); // NOLINT 1869a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} 1870a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block 1871a7e24c173cf37484693b9abb38e494fa7bd7baebSteve Block} // namespace unicode 1872