From dceb5f6a8f0148e3cd292204487fb5db62c6bcd5 Mon Sep 17 00:00:00 2001 From: "mads.s.ager@gmail.com" Date: Thu, 28 Aug 2008 09:55:41 +0000 Subject: [PATCH] Improved test support. Fixed issue with building samples and cctests on 64-bit machines. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@23 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- public/debug.h | 4 +- public/v8.h | 12 ++-- src/api.h | 2 +- src/assembler.h | 4 +- src/bootstrapper.cc | 2 +- src/codegen-arm.cc | 9 ++- src/codegen-ia32.cc | 52 +++++++++++----- src/codegen.h | 2 +- src/debug.h | 8 +-- src/flags.cc | 2 +- src/frames.h | 2 +- src/globals.h | 18 +++--- src/handles.cc | 19 +----- src/ic.cc | 10 +++- src/list.h | 2 +- src/platform-linux.cc | 2 +- src/platform.h | 4 +- src/runtime.cc | 65 +++++++++----------- src/runtime.h | 2 +- src/serialize.h | 4 +- src/simulator-arm.cc | 4 +- src/spaces.h | 4 +- src/string-stream.h | 10 ++-- src/top.cc | 2 +- src/unicode.cc | 122 +++++++++++++++++++------------------- test/cctest/test-debug.cc | 2 +- 26 files changed, 189 insertions(+), 180 deletions(-) diff --git a/public/debug.h b/public/debug.h index af75ee9ef..8881e4a29 100644 --- a/public/debug.h +++ b/public/debug.h @@ -33,8 +33,8 @@ #ifdef _WIN32 typedef int int32_t; typedef unsigned int uint32_t; -typedef unsigned short uint16_t; -typedef long long int64_t; +typedef unsigned short uint16_t; // NOLINT +typedef long long int64_t; // NOLINT // Setup for Windows DLL export/import. See v8.h in this directory for // information on how to build/use V8 as a DLL. diff --git a/public/v8.h b/public/v8.h index 083f2c43f..0cbc22a44 100644 --- a/public/v8.h +++ b/public/v8.h @@ -41,8 +41,8 @@ #ifdef _WIN32 typedef int int32_t; typedef unsigned int uint32_t; -typedef unsigned short uint16_t; -typedef long long int64_t; +typedef unsigned short uint16_t; // NOLINT +typedef long long int64_t; // NOLINT // Setup for Windows DLL export/import. When building the V8 DLL the // BUILDING_V8_SHARED needs to be defined. When building a program which uses @@ -486,7 +486,7 @@ class EXPORT Data { * compiling it, and stored between compilations. When script data * is given to the compile method compilation will be faster. */ -class EXPORT ScriptData { +class EXPORT ScriptData { // NOLINT public: virtual ~ScriptData() { } static ScriptData* PreCompile(const char* input, int length); @@ -730,7 +730,7 @@ class EXPORT String : public Primitive { * ExternalStringResource to manage the life cycle of the underlying * buffer. */ - class EXPORT ExternalStringResource { + class EXPORT ExternalStringResource { // NOLINT public: /** * Override the destructor to manage the life cycle of the underlying @@ -755,7 +755,7 @@ class EXPORT String : public Primitive { * underlying buffer. */ - class EXPORT ExternalAsciiStringResource { + class EXPORT ExternalAsciiStringResource { // NOLINT public: /** * Override the destructor to manage the life cycle of the underlying @@ -1504,7 +1504,7 @@ class EXPORT TypeSwitch : public Data { /** * Ignore */ -class EXPORT Extension { +class EXPORT Extension { // NOLINT public: Extension(const char* name, const char* source = 0, diff --git a/src/api.h b/src/api.h index 45701dcc7..cd81174bc 100644 --- a/src/api.h +++ b/src/api.h @@ -420,7 +420,7 @@ class HandleScopeImplementer { char* RestoreThreadHelper(char* from); char* ArchiveThreadHelper(char* to); - DISALLOW_EVIL_CONSTRUCTORS(HandleScopeImplementer); + DISALLOW_COPY_AND_ASSIGN(HandleScopeImplementer); }; diff --git a/src/assembler.h b/src/assembler.h index 9eb0cea52..33fc056bb 100644 --- a/src/assembler.h +++ b/src/assembler.h @@ -329,7 +329,7 @@ class RelocInfoWriter BASE_EMBEDDED { byte* pos_; byte* last_pc_; intptr_t last_data_; - DISALLOW_EVIL_CONSTRUCTORS(RelocInfoWriter); + DISALLOW_COPY_AND_ASSIGN(RelocInfoWriter); }; @@ -388,7 +388,7 @@ class RelocIterator: public Malloced { RelocInfo rinfo_; bool done_; int mode_mask_; - DISALLOW_EVIL_CONSTRUCTORS(RelocIterator); + DISALLOW_COPY_AND_ASSIGN(RelocIterator); }; diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc index 5e5e3d8c0..afb3d85a9 100644 --- a/src/bootstrapper.cc +++ b/src/bootstrapper.cc @@ -95,7 +95,7 @@ class SourceCodeCache BASE_EMBEDDED { private: ScriptType type_; FixedArray* cache_; - DISALLOW_EVIL_CONSTRUCTORS(SourceCodeCache); + DISALLOW_COPY_AND_ASSIGN(SourceCodeCache); }; static SourceCodeCache natives_cache(SCRIPT_TYPE_NATIVE); diff --git a/src/codegen-arm.cc b/src/codegen-arm.cc index 30c1e4b3c..b71c7029c 100644 --- a/src/codegen-arm.cc +++ b/src/codegen-arm.cc @@ -4170,12 +4170,17 @@ void ArmCodeGenerator::VisitUnaryOperation(UnaryOperation* node) { __ mov(r0, Operand(Factory::undefined_value())); break; - case Token::ADD: + case Token::ADD: { + // Smi check. + Label continue_label; + __ tst(r0, Operand(kSmiTagMask)); + __ b(eq, &continue_label); __ push(r0); __ mov(r0, Operand(0)); // not counting receiver __ InvokeBuiltin("TO_NUMBER", 0, CALL_JS); + __ bind(&continue_label); break; - + } default: UNREACHABLE(); } diff --git a/src/codegen-ia32.cc b/src/codegen-ia32.cc index 17aa09dc2..3e55e8c93 100644 --- a/src/codegen-ia32.cc +++ b/src/codegen-ia32.cc @@ -257,8 +257,11 @@ class Ia32CodeGenerator: public CodeGenerator { const OverwriteMode overwrite_mode = NO_OVERWRITE); void Comparison(Condition cc, bool strict = false); + // Inline small integer literals. To prevent long attacker-controlled byte + // sequences, we only inline small Smi:s. + static const int kMaxSmiInlinedBits = 16; + bool IsInlineSmi(Literal* literal); void SmiComparison(Condition cc, Handle value, bool strict = false); - void SmiOperation(Token::Value op, Handle value, bool reversed, @@ -1993,6 +1996,7 @@ void Ia32CodeGenerator::SmiOperation(Token::Value op, // Get the literal value. int int_value = Smi::cast(*value)->value(); + ASSERT(is_intn(int_value, kMaxSmiInlinedBits)); switch (op) { case Token::ADD: { @@ -2357,8 +2361,11 @@ void Ia32CodeGenerator::SmiComparison(Condition cc, // Strict only makes sense for equality comparisons. ASSERT(!strict || cc == equal); + int int_value = Smi::cast(*value)->value(); + ASSERT(is_intn(int_value, kMaxSmiInlinedBits)); + SmiComparisonDeferred* deferred = - new SmiComparisonDeferred(this, cc, strict, Smi::cast(*value)->value()); + new SmiComparisonDeferred(this, cc, strict, int_value); __ pop(eax); __ test(eax, Immediate(kSmiTagMask)); __ j(not_zero, deferred->enter(), not_taken); @@ -2815,6 +2822,7 @@ void Ia32CodeGenerator::VisitLoopStatement(LoopStatement* node) { // body __ bind(&loop); + CheckStack(); // TODO(1222600): ignore if body contains calls. Visit(node->body()); // next @@ -2832,13 +2840,11 @@ void Ia32CodeGenerator::VisitLoopStatement(LoopStatement* node) { __ bind(&entry); switch (info) { case ALWAYS_TRUE: - CheckStack(); // TODO(1222600): ignore if body contains calls. __ jmp(&loop); break; case ALWAYS_FALSE: break; case DONT_KNOW: - CheckStack(); // TODO(1222600): ignore if body contains calls. LoadCondition(node->cond(), CodeGenState::LOAD, &loop, node->break_target(), true); Branch(true, &loop); @@ -3426,21 +3432,21 @@ void Ia32CodeGenerator::VisitSlot(Slot* node) { break; case CodeGenState::STORE: - // Storing a variable must keep the (new) value on the stack. This - // is necessary for compiling assignment expressions. - // ecx may be loaded with context; used below in RecordWrite. - // // Note: We will reach here even with node->var()->mode() == // Variable::CONST because of const declarations which will // initialize consts to 'the hole' value and by doing so, end // up calling this code. - __ mov(eax, TOS); + __ pop(eax); __ mov(SlotOperand(node, ecx), eax); if (node->type() == Slot::CONTEXT) { // ecx is loaded with context when calling SlotOperand above. int offset = FixedArray::kHeaderSize + node->index() * kPointerSize; __ RecordWrite(ecx, offset, eax, ebx); } + // Storing a variable must keep the (new) value on the stack. This + // is necessary for compiling assignment expressions. + // ecx may be loaded with context; used below in RecordWrite. + __ push(eax); break; } } @@ -3475,7 +3481,16 @@ void Ia32CodeGenerator::VisitVariableProxy(VariableProxy* proxy_node) { void Ia32CodeGenerator::VisitLiteral(Literal* node) { Comment cmnt(masm_, "[ Literal"); - __ push(Immediate(node->handle())); + if (node->handle()->IsSmi() && !IsInlineSmi(node)) { + // To prevent long attacker-controlled byte sequences in code, larger + // Smis are loaded in two steps. + int bits = reinterpret_cast(*node->handle()); + __ mov(eax, bits & 0x0000FFFF); + __ xor_(eax, bits & 0xFFFF0000); + __ push(eax); + } else { + __ push(Immediate(node->handle())); + } } @@ -3701,6 +3716,13 @@ void Ia32CodeGenerator::VisitArrayLiteral(ArrayLiteral* node) { } +bool Ia32CodeGenerator::IsInlineSmi(Literal* literal) { + if (literal == NULL || !literal->handle()->IsSmi()) return false; + int int_value = Smi::cast(*literal->handle())->value(); + return is_intn(int_value, kMaxSmiInlinedBits); +} + + void Ia32CodeGenerator::VisitAssignment(Assignment* node) { Comment cmnt(masm_, "[ Assignment"); @@ -3716,7 +3738,7 @@ void Ia32CodeGenerator::VisitAssignment(Assignment* node) { } else { GetValue(&target); Literal* literal = node->value()->AsLiteral(); - if (literal != NULL && literal->handle()->IsSmi()) { + if (IsInlineSmi(literal)) { SmiOperation(node->binary_op(), literal->handle(), false, NO_OVERWRITE); } else { Load(node->value()); @@ -4687,11 +4709,11 @@ void Ia32CodeGenerator::VisitBinaryOperation(BinaryOperation* node) { Literal* lliteral = node->left()->AsLiteral(); Literal* rliteral = node->right()->AsLiteral(); - if (rliteral != NULL && rliteral->handle()->IsSmi()) { + if (IsInlineSmi(rliteral)) { Load(node->left()); SmiOperation(node->op(), rliteral->handle(), false, overwrite_mode); - } else if (lliteral != NULL && lliteral->handle()->IsSmi()) { + } else if (IsInlineSmi(lliteral)) { Load(node->right()); SmiOperation(node->op(), lliteral->handle(), true, overwrite_mode); @@ -4899,12 +4921,12 @@ void Ia32CodeGenerator::VisitCompareOperation(CompareOperation* node) { // Optimize for the case where (at least) one of the expressions // is a literal small integer. - if (left->AsLiteral() != NULL && left->AsLiteral()->handle()->IsSmi()) { + if (IsInlineSmi(left->AsLiteral())) { Load(right); SmiComparison(ReverseCondition(cc), left->AsLiteral()->handle(), strict); return; } - if (right->AsLiteral() != NULL && right->AsLiteral()->handle()->IsSmi()) { + if (IsInlineSmi(right->AsLiteral())) { Load(left); SmiComparison(cc, right->AsLiteral()->handle(), strict); return; diff --git a/src/codegen.h b/src/codegen.h index 4782753b2..ed03dd243 100644 --- a/src/codegen.h +++ b/src/codegen.h @@ -90,7 +90,7 @@ class DeferredCode: public ZoneObject { #ifdef DEBUG const char* comment_; #endif - DISALLOW_EVIL_CONSTRUCTORS(DeferredCode); + DISALLOW_COPY_AND_ASSIGN(DeferredCode); }; diff --git a/src/debug.h b/src/debug.h index 3898e8427..42c8435fe 100644 --- a/src/debug.h +++ b/src/debug.h @@ -121,7 +121,7 @@ class BreakLocationIterator { void SetDebugBreak(); void ClearDebugBreak(); - DISALLOW_EVIL_CONSTRUCTORS(BreakLocationIterator); + DISALLOW_COPY_AND_ASSIGN(BreakLocationIterator); }; @@ -317,7 +317,7 @@ class Debug { // Code to call for handling debug break on return. static Code* debug_break_return_; - DISALLOW_EVIL_CONSTRUCTORS(Debug); + DISALLOW_COPY_AND_ASSIGN(Debug); }; @@ -422,7 +422,7 @@ class LockingMessageQueue BASE_EMBEDDED { private: MessageQueue queue_; Mutex* lock_; - DISALLOW_EVIL_CONSTRUCTORS(LockingMessageQueue); + DISALLOW_COPY_AND_ASSIGN(LockingMessageQueue); }; @@ -465,7 +465,7 @@ class DebugMessageThread: public Thread { static const int kQueueInitialSize = 4; LockingMessageQueue command_queue_; LockingMessageQueue message_queue_; - DISALLOW_EVIL_CONSTRUCTORS(DebugMessageThread); + DISALLOW_COPY_AND_ASSIGN(DebugMessageThread); }; diff --git a/src/flags.cc b/src/flags.cc index 24314606a..7ce4b8afd 100644 --- a/src/flags.cc +++ b/src/flags.cc @@ -331,7 +331,7 @@ int FlagList::SetFlagsFromCommandLine(int* argc, *flag->bool_variable() = !is_bool; break; case Flag::INT: - *flag->int_variable() = strtol(value, &endp, 10); + *flag->int_variable() = strtol(value, &endp, 10); // NOLINT break; case Flag::FLOAT: *flag->float_variable() = strtod(value, &endp); diff --git a/src/frames.h b/src/frames.h index 2b9551c64..693cfedf2 100644 --- a/src/frames.h +++ b/src/frames.h @@ -532,7 +532,7 @@ class StackFrameIterator BASE_EMBEDDED { StackFrame* SingletonFor(StackFrame::Type type, StackFrame::State* state); friend class StackFrame; - DISALLOW_EVIL_CONSTRUCTORS(StackFrameIterator); + DISALLOW_COPY_AND_ASSIGN(StackFrameIterator); }; diff --git a/src/globals.h b/src/globals.h index 5bccfa79c..443212330 100644 --- a/src/globals.h +++ b/src/globals.h @@ -33,8 +33,8 @@ #ifdef WIN32 typedef signed char int8_t; typedef unsigned char uint8_t; -typedef short int16_t; -typedef unsigned short uint16_t; +typedef short int16_t; // NOLINT +typedef unsigned short uint16_t; // NOLINT typedef int int32_t; typedef unsigned int uint32_t; typedef __int64 int64_t; @@ -96,11 +96,11 @@ const int GB = KB * KB * KB; const int kMaxInt = 0x7FFFFFFF; const int kMinInt = -kMaxInt - 1; -const int kCharSize = sizeof(char); -const int kShortSize = sizeof(short); -const int kIntSize = sizeof(int); -const int kDoubleSize = sizeof(double); -const int kPointerSize = sizeof(void*); +const int kCharSize = sizeof(char); // NOLINT +const int kShortSize = sizeof(short); // NOLINT +const int kIntSize = sizeof(int); // NOLINT +const int kDoubleSize = sizeof(double); // NOLINT +const int kPointerSize = sizeof(void*); // NOLINT const int kPointerSizeLog2 = 2; @@ -414,7 +414,7 @@ F FUNCTION_CAST(Address addr) { // A macro to disallow the evil copy constructor and operator= functions // This should be used in the private: declarations for a class -#define DISALLOW_EVIL_CONSTRUCTORS(TypeName) \ +#define DISALLOW_COPY_AND_ASSIGN(TypeName) \ TypeName(const TypeName&); \ void operator=(const TypeName&) @@ -427,7 +427,7 @@ F FUNCTION_CAST(Address addr) { // especially useful for classes containing only static methods. #define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \ TypeName(); \ - DISALLOW_EVIL_CONSTRUCTORS(TypeName) + DISALLOW_COPY_AND_ASSIGN(TypeName) // Support for tracking C++ memory allocation. Insert TRACK_MEMORY("Fisk") diff --git a/src/handles.cc b/src/handles.cc index b7b5380c4..a3251bfd2 100644 --- a/src/handles.cc +++ b/src/handles.cc @@ -215,7 +215,7 @@ Handle GetProperty(Handle obj, Handle GetProperty(Handle obj, Handle key) { - CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, *key), Object); + CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, key), Object); } @@ -256,22 +256,7 @@ Handle SubString(Handle str, int start, int end) { Handle SetElement(Handle object, uint32_t index, Handle value) { - GC_GREEDY_CHECK(); - Object* obj = object->SetElement(index, *value); - // If you set an element then the object may need to get a new map - // which will cause it to grow, which will cause an allocation. - // If you know that the object will not grow then perhaps this check - // does not apply and you may have to split this method into two - // versions. - ASSERT(Heap::IsAllocationAllowed()); - if (obj->IsFailure()) { - CALL_GC(obj); - obj = object->SetElement(index, *value); - if (obj->IsFailure()) { - V8::FatalProcessOutOfMemory("Handles"); // TODO(1181417): Fix this. - } - } - return value; + CALL_HEAP_FUNCTION(object->SetElement(index, *value), Object); } diff --git a/src/ic.cc b/src/ic.cc index 6a414a26e..2074a76a2 100644 --- a/src/ic.cc +++ b/src/ic.cc @@ -706,7 +706,7 @@ Object* KeyedLoadIC::Load(State state, if (use_ic) set_target(generic_stub()); // Get the property. - return Runtime::GetObjectProperty(object, *key); + return Runtime::GetObjectProperty(object, key); } @@ -801,7 +801,9 @@ Object* StoreIC::Store(State state, // Check if the given name is an array index. uint32_t index; if (name->AsArrayIndex(&index)) { - SetElement(receiver, index, value); + HandleScope scope; + Handle result = SetElement(receiver, index, value); + if (result.is_null()) return Failure::Exception(); return *value; } @@ -910,7 +912,9 @@ Object* KeyedStoreIC::Store(State state, // Check if the given name is an array index. uint32_t index; if (name->AsArrayIndex(&index)) { - SetElement(receiver, index, value); + HandleScope scope; + Handle result = SetElement(receiver, index, value); + if (result.is_null()) return Failure::Exception(); return *value; } diff --git a/src/list.h b/src/list.h index 283e74f90..50b66f804 100644 --- a/src/list.h +++ b/src/list.h @@ -108,7 +108,7 @@ class List { INLINE(T* NewData(int n)) { return static_cast(P::New(n * sizeof(T))); } INLINE(void DeleteData(T* data)) { P::Delete(data); } - DISALLOW_EVIL_CONSTRUCTORS(List); + DISALLOW_COPY_AND_ASSIGN(List); }; diff --git a/src/platform-linux.cc b/src/platform-linux.cc index 3d26a4c6c..050375e7f 100644 --- a/src/platform-linux.cc +++ b/src/platform-linux.cc @@ -270,7 +270,7 @@ PosixMemoryMappedFile::~PosixMemoryMappedFile() { #ifdef ENABLE_LOGGING_AND_PROFILING static unsigned StringToLongLong(char* buffer) { - return static_cast(strtoll(buffer, NULL, 16)); + return static_cast(strtoll(buffer, NULL, 16)); // NOLINT } #endif diff --git a/src/platform.h b/src/platform.h index 50879dbb1..50fc4112c 100644 --- a/src/platform.h +++ b/src/platform.h @@ -320,7 +320,7 @@ class Thread: public ThreadHandle { private: class PlatformData; PlatformData* data_; - DISALLOW_EVIL_CONSTRUCTORS(Thread); + DISALLOW_COPY_AND_ASSIGN(Thread); }; @@ -362,7 +362,7 @@ class ScopedLock { private: Mutex* mutex_; - DISALLOW_EVIL_CONSTRUCTORS(ScopedLock); + DISALLOW_COPY_AND_ASSIGN(ScopedLock); }; diff --git a/src/runtime.cc b/src/runtime.cc index 263d86e2a..d9d5a2d2e 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -1207,11 +1207,11 @@ Object* Runtime::GetElementOrCharAt(Handle object, uint32_t index) { } -Object* Runtime::GetObjectProperty(Handle object, Object* key) { +Object* Runtime::GetObjectProperty(Handle object, Handle key) { + HandleScope scope; + if (object->IsUndefined() || object->IsNull()) { - HandleScope scope; - Handle key_handle(key); - Handle args[2] = { key_handle, object }; + Handle args[2] = { key, object }; Handle error = Factory::NewTypeError("non_object_property_load", HandleVector(args, 2)); @@ -1220,32 +1220,29 @@ Object* Runtime::GetObjectProperty(Handle object, Object* key) { // Check if the given key is an array index. uint32_t index; - if (Array::IndexFromObject(key, &index)) { - HandleScope scope; + if (Array::IndexFromObject(*key, &index)) { return GetElementOrCharAt(object, index); } // Convert the key to a string - possibly by calling back into JavaScript. - String* name; + Handle name; if (key->IsString()) { - name = String::cast(key); + name = Handle::cast(key); } else { - HandleScope scope; bool has_pending_exception = false; Handle converted = - Execution::ToString(Handle(key), &has_pending_exception); + Execution::ToString(key, &has_pending_exception); if (has_pending_exception) return Failure::Exception(); - name = String::cast(*converted); + name = Handle::cast(converted); } // Check if the name is trivially convertable to an index and get // the element if so. if (name->AsArrayIndex(&index)) { - HandleScope scope; return GetElementOrCharAt(object, index); } else { PropertyAttributes attr; - return object->GetProperty(name, &attr); + return object->GetProperty(*name, &attr); } } @@ -1255,7 +1252,7 @@ static Object* Runtime_GetProperty(Arguments args) { ASSERT(args.length() == 2); Handle object = args.at(0); - Object* key = args[1]; + Handle key = args.at(1); return Runtime::GetObjectProperty(object, key); } @@ -1265,10 +1262,10 @@ Object* Runtime::SetObjectProperty(Handle object, Handle key, Handle value, PropertyAttributes attr) { + HandleScope scope; + if (object->IsUndefined() || object->IsNull()) { - HandleScope scope; - Handle obj(object); - Handle args[2] = { key, obj }; + Handle args[2] = { key, object }; Handle error = Factory::NewTypeError("non_object_property_store", HandleVector(args, 2)); @@ -1278,6 +1275,8 @@ Object* Runtime::SetObjectProperty(Handle object, // If the object isn't a JavaScript object, we ignore the store. if (!object->IsJSObject()) return *value; + Handle js_object = Handle::cast(object); + // Check if the given key is an array index. uint32_t index; if (Array::IndexFromObject(*key, &index)) { @@ -1290,35 +1289,29 @@ Object* Runtime::SetObjectProperty(Handle object, // the underlying string if the index is in range. Since the underlying // string does nothing with the assignment then we can ignore such // assignments. - if (object->IsStringObjectWithCharacterAt(index)) + if (js_object->IsStringObjectWithCharacterAt(index)) { return *value; + } - Object* result = JSObject::cast(*object)->SetElement(index, *value); - if (result->IsFailure()) return result; + Handle result = SetElement(js_object, index, value); + if (result.is_null()) return Failure::Exception(); return *value; } if (key->IsString()) { - Object* result; - if (String::cast(*key)->AsArrayIndex(&index)) { + Handle result; + if (Handle::cast(key)->AsArrayIndex(&index)) { ASSERT(attr == NONE); - result = JSObject::cast(*object)->SetElement(index, *value); + result = SetElement(js_object, index, value); } else { - String::cast(*key)->TryFlatten(); - result = - JSObject::cast(*object)->SetProperty(String::cast(*key), *value, - attr); + Handle key_string = Handle::cast(key); + key_string->TryFlatten(); + result = SetProperty(js_object, key_string, value, attr); } - if (result->IsFailure()) return result; + if (result.is_null()) return Failure::Exception(); return *value; } - HandleScope scope; - - // Handlify object and value before calling into JavaScript again. - Handle object_handle = Handle::cast(object); - Handle value_handle = value; - // Call-back into JavaScript to convert the key to a string. bool has_pending_exception = false; Handle converted = Execution::ToString(key, &has_pending_exception); @@ -1327,9 +1320,9 @@ Object* Runtime::SetObjectProperty(Handle object, if (name->AsArrayIndex(&index)) { ASSERT(attr == NONE); - return object_handle->SetElement(index, *value_handle); + return js_object->SetElement(index, *value); } else { - return object_handle->SetProperty(*name, *value_handle, attr); + return js_object->SetProperty(*name, *value, attr); } } diff --git a/src/runtime.h b/src/runtime.h index 3353b5e87..d56e0b364 100644 --- a/src/runtime.h +++ b/src/runtime.h @@ -340,7 +340,7 @@ class Runtime : public AllStatic { Handle value, PropertyAttributes attr); - static Object* GetObjectProperty(Handle object, Object* key); + static Object* GetObjectProperty(Handle object, Handle key); // Helper functions used stubs. static void PerformGC(Object* result); diff --git a/src/serialize.h b/src/serialize.h index a87484f75..be0be8386 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -204,7 +204,7 @@ class Serializer: public ObjectVisitor { HashMap saved_addresses_; - DISALLOW_EVIL_CONSTRUCTORS(Serializer); + DISALLOW_COPY_AND_ASSIGN(Serializer); }; // Helper class to read the bytes of the serialized heap. @@ -325,7 +325,7 @@ class Deserializer: public ObjectVisitor { bool expect_debug_information_; #endif - DISALLOW_EVIL_CONSTRUCTORS(Deserializer); + DISALLOW_COPY_AND_ASSIGN(Deserializer); }; } } // namespace v8::internal diff --git a/src/simulator-arm.cc b/src/simulator-arm.cc index 9f20fc9d0..71e3a43e8 100644 --- a/src/simulator-arm.cc +++ b/src/simulator-arm.cc @@ -132,7 +132,7 @@ bool Debugger::GetValue(char* desc, int32_t* value) { } return true; } else { - return sscanf(desc, "%i", value) == 1; + return sscanf(desc, "%i", value) == 1; // NOLINT } return false; } @@ -216,7 +216,7 @@ void Debugger::Debug() { } else { // Use sscanf to parse the individual parts of the command line. At the // moment no command expects more than two parameters. - int args = sscanf(line, + int args = sscanf(line, // NOLINT "%" XSTR(COMMAND_SIZE) "s " "%" XSTR(ARG_SIZE) "s " "%" XSTR(ARG_SIZE) "s", diff --git a/src/spaces.h b/src/spaces.h index f2dbd0b3e..cfa43e96c 100644 --- a/src/spaces.h +++ b/src/spaces.h @@ -1294,7 +1294,7 @@ class OldSpaceFreeList BASE_EMBEDDED { bool Contains(FreeListNode* node); #endif - DISALLOW_EVIL_CONSTRUCTORS(OldSpaceFreeList); + DISALLOW_COPY_AND_ASSIGN(OldSpaceFreeList); }; @@ -1330,7 +1330,7 @@ class MapSpaceFreeList BASE_EMBEDDED { // objects. AllocationSpace owner_; - DISALLOW_EVIL_CONSTRUCTORS(MapSpaceFreeList); + DISALLOW_COPY_AND_ASSIGN(MapSpaceFreeList); }; diff --git a/src/string-stream.h b/src/string-stream.h index fe11deeff..b00c7ccf8 100644 --- a/src/string-stream.h +++ b/src/string-stream.h @@ -72,11 +72,11 @@ class NoAllocationStringAllocator: public StringAllocator { class FmtElm { public: - FmtElm(int value) : type_(INT) { data_.u_int_ = value; } - FmtElm(const char* value) : type_(C_STR) { data_.u_c_str_ = value; } - FmtElm(Object* value) : type_(OBJ) { data_.u_obj_ = value; } - FmtElm(Handle value) : type_(HANDLE) { data_.u_handle_ = value.location(); } - FmtElm(void* value) : type_(INT) { data_.u_int_ = reinterpret_cast(value); } + FmtElm(int value) : type_(INT) { data_.u_int_ = value; } // NOLINT + FmtElm(const char* value) : type_(C_STR) { data_.u_c_str_ = value; } // NOLINT + FmtElm(Object* value) : type_(OBJ) { data_.u_obj_ = value; } // NOLINT + FmtElm(Handle value) : type_(HANDLE) { data_.u_handle_ = value.location(); } // NOLINT + FmtElm(void* value) : type_(INT) { data_.u_int_ = reinterpret_cast(value); } // NOLINT private: friend class StringStream; enum Type { INT, C_STR, OBJ, HANDLE }; diff --git a/src/top.cc b/src/top.cc index 4e12ad278..94e4cc889 100644 --- a/src/top.cc +++ b/src/top.cc @@ -210,7 +210,7 @@ class PreallocatedMemoryThread: public Thread { static char* data_; static unsigned length_; - DISALLOW_EVIL_CONSTRUCTORS(PreallocatedMemoryThread); + DISALLOW_COPY_AND_ASSIGN(PreallocatedMemoryThread); }; PreallocatedMemoryThread* PreallocatedMemoryThread::the_thread_ = NULL; diff --git a/src/unicode.cc b/src/unicode.cc index 0a5c082dd..ffe43add3 100644 --- a/src/unicode.cc +++ b/src/unicode.cc @@ -38,8 +38,8 @@ namespace unibrow { * Implementations of functions for working with unicode. */ -typedef signed short int16_t; -typedef unsigned short uint16_t; +typedef signed short int16_t; // NOLINT +typedef unsigned short uint16_t; // NOLINT // All access to the character table should go through this function. template @@ -323,13 +323,13 @@ void CharacterStream::Seek(unsigned position) { // Uppercase: point.category == 'Lu' static const uint16_t kUppercaseTable0Size = 509; -static const uint16_t kUppercaseTable0[509] = { 32833, 90, 32960, 214, 32984, 222, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 313, 315, 317, 319, 321, 323, 325, 327, 330, 332, 334, 336, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 33144, 377, 379, 381, 33153, 386, 388, 33158, 391, 33161, 395, 33166, 401, 33171, 404, 33174, 408, 33180, 413, 33183, 416, 418, 420, 33190, 423, 425, 428, 33198, 431, 33201, 435, 437, 33207, 440, 444, 452, 455, 458, 461, 463, 465, 467, 469, 471, 473, 475, 478, 480, 482, 484, 486, 488, 490, 492, 494, 497, 500, 33270, 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526, 528, 530, 532, 534, 536, 538, 540, 542, 544, 546, 548, 550, 552, 554, 556, 558, 560, 562, 33338, 571, 33341, 574, 577, 33347, 582, 584, 586, 588, 590, 902, 33672, 906, 908, 33678, 911, 33681, 929, 33699, 939, 33746, 980, 984, 986, 988, 990, 992, 994, 996, 998, 1000, 1002, 1004, 1006, 1012, 1015, 33785, 1018, 33789, 1071, 1120, 1122, 1124, 1126, 1128, 1130, 1132, 1134, 1136, 1138, 1140, 1142, 1144, 1146, 1148, 1150, 1152, 1162, 1164, 1166, 1168, 1170, 1172, 1174, 1176, 1178, 1180, 1182, 1184, 1186, 1188, 1190, 1192, 1194, 1196, 1198, 1200, 1202, 1204, 1206, 1208, 1210, 1212, 1214, 33984, 1217, 1219, 1221, 1223, 1225, 1227, 1229, 1232, 1234, 1236, 1238, 1240, 1242, 1244, 1246, 1248, 1250, 1252, 1254, 1256, 1258, 1260, 1262, 1264, 1266, 1268, 1270, 1272, 1274, 1276, 1278, 1280, 1282, 1284, 1286, 1288, 1290, 1292, 1294, 1296, 1298, 34097, 1366, 37024, 4293, 7680, 7682, 7684, 7686, 7688, 7690, 7692, 7694, 7696, 7698, 7700, 7702, 7704, 7706, 7708, 7710, 7712, 7714, 7716, 7718, 7720, 7722, 7724, 7726, 7728, 7730, 7732, 7734, 7736, 7738, 7740, 7742, 7744, 7746, 7748, 7750, 7752, 7754, 7756, 7758, 7760, 7762, 7764, 7766, 7768, 7770, 7772, 7774, 7776, 7778, 7780, 7782, 7784, 7786, 7788, 7790, 7792, 7794, 7796, 7798, 7800, 7802, 7804, 7806, 7808, 7810, 7812, 7814, 7816, 7818, 7820, 7822, 7824, 7826, 7828, 7840, 7842, 7844, 7846, 7848, 7850, 7852, 7854, 7856, 7858, 7860, 7862, 7864, 7866, 7868, 7870, 7872, 7874, 7876, 7878, 7880, 7882, 7884, 7886, 7888, 7890, 7892, 7894, 7896, 7898, 7900, 7902, 7904, 7906, 7908, 7910, 7912, 7914, 7916, 7918, 7920, 7922, 7924, 7926, 7928, 40712, 7951, 40728, 7965, 40744, 7983, 40760, 7999, 40776, 8013, 8025, 8027, 8029, 8031, 40808, 8047, 40888, 8123, 40904, 8139, 40920, 8155, 40936, 8172, 40952, 8187, 8450, 8455, 41227, 8461, 41232, 8466, 8469, 41241, 8477, 8484, 8486, 8488, 41258, 8493, 41264, 8499, 41278, 8511, 8517, 8579, 44032, 11310, 11360, 44130, 11364, 11367, 11369, 11371, 11381, 11392, 11394, 11396, 11398, 11400, 11402, 11404, 11406, 11408, 11410, 11412, 11414, 11416, 11418, 11420, 11422, 11424, 11426, 11428, 11430, 11432, 11434, 11436, 11438, 11440, 11442, 11444, 11446, 11448, 11450, 11452, 11454, 11456, 11458, 11460, 11462, 11464, 11466, 11468, 11470, 11472, 11474, 11476, 11478, 11480, 11482, 11484, 11486, 11488, 11490 }; +static const uint16_t kUppercaseTable0[509] = { 32833, 90, 32960, 214, 32984, 222, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 313, 315, 317, 319, 321, 323, 325, 327, 330, 332, 334, 336, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 33144, 377, 379, 381, 33153, 386, 388, 33158, 391, 33161, 395, 33166, 401, 33171, 404, 33174, 408, 33180, 413, 33183, 416, 418, 420, 33190, 423, 425, 428, 33198, 431, 33201, 435, 437, 33207, 440, 444, 452, 455, 458, 461, 463, 465, 467, 469, 471, 473, 475, 478, 480, 482, 484, 486, 488, 490, 492, 494, 497, 500, 33270, 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526, 528, 530, 532, 534, 536, 538, 540, 542, 544, 546, 548, 550, 552, 554, 556, 558, 560, 562, 33338, 571, 33341, 574, 577, 33347, 582, 584, 586, 588, 590, 902, 33672, 906, 908, 33678, 911, 33681, 929, 33699, 939, 33746, 980, 984, 986, 988, 990, 992, 994, 996, 998, 1000, 1002, 1004, 1006, 1012, 1015, 33785, 1018, 33789, 1071, 1120, 1122, 1124, 1126, 1128, 1130, 1132, 1134, 1136, 1138, 1140, 1142, 1144, 1146, 1148, 1150, 1152, 1162, 1164, 1166, 1168, 1170, 1172, 1174, 1176, 1178, 1180, 1182, 1184, 1186, 1188, 1190, 1192, 1194, 1196, 1198, 1200, 1202, 1204, 1206, 1208, 1210, 1212, 1214, 33984, 1217, 1219, 1221, 1223, 1225, 1227, 1229, 1232, 1234, 1236, 1238, 1240, 1242, 1244, 1246, 1248, 1250, 1252, 1254, 1256, 1258, 1260, 1262, 1264, 1266, 1268, 1270, 1272, 1274, 1276, 1278, 1280, 1282, 1284, 1286, 1288, 1290, 1292, 1294, 1296, 1298, 34097, 1366, 37024, 4293, 7680, 7682, 7684, 7686, 7688, 7690, 7692, 7694, 7696, 7698, 7700, 7702, 7704, 7706, 7708, 7710, 7712, 7714, 7716, 7718, 7720, 7722, 7724, 7726, 7728, 7730, 7732, 7734, 7736, 7738, 7740, 7742, 7744, 7746, 7748, 7750, 7752, 7754, 7756, 7758, 7760, 7762, 7764, 7766, 7768, 7770, 7772, 7774, 7776, 7778, 7780, 7782, 7784, 7786, 7788, 7790, 7792, 7794, 7796, 7798, 7800, 7802, 7804, 7806, 7808, 7810, 7812, 7814, 7816, 7818, 7820, 7822, 7824, 7826, 7828, 7840, 7842, 7844, 7846, 7848, 7850, 7852, 7854, 7856, 7858, 7860, 7862, 7864, 7866, 7868, 7870, 7872, 7874, 7876, 7878, 7880, 7882, 7884, 7886, 7888, 7890, 7892, 7894, 7896, 7898, 7900, 7902, 7904, 7906, 7908, 7910, 7912, 7914, 7916, 7918, 7920, 7922, 7924, 7926, 7928, 40712, 7951, 40728, 7965, 40744, 7983, 40760, 7999, 40776, 8013, 8025, 8027, 8029, 8031, 40808, 8047, 40888, 8123, 40904, 8139, 40920, 8155, 40936, 8172, 40952, 8187, 8450, 8455, 41227, 8461, 41232, 8466, 8469, 41241, 8477, 8484, 8486, 8488, 41258, 8493, 41264, 8499, 41278, 8511, 8517, 8579, 44032, 11310, 11360, 44130, 11364, 11367, 11369, 11371, 11381, 11392, 11394, 11396, 11398, 11400, 11402, 11404, 11406, 11408, 11410, 11412, 11414, 11416, 11418, 11420, 11422, 11424, 11426, 11428, 11430, 11432, 11434, 11436, 11438, 11440, 11442, 11444, 11446, 11448, 11450, 11452, 11454, 11456, 11458, 11460, 11462, 11464, 11466, 11468, 11470, 11472, 11474, 11476, 11478, 11480, 11482, 11484, 11486, 11488, 11490 }; // NOLINT static const uint16_t kUppercaseTable1Size = 2; -static const uint16_t kUppercaseTable1[2] = { 65313, 32570 }; +static const uint16_t kUppercaseTable1[2] = { 65313, 32570 }; // NOLINT static const uint16_t kUppercaseTable2Size = 2; -static const uint16_t kUppercaseTable2[2] = { 33792, 1063 }; +static const uint16_t kUppercaseTable2[2] = { 33792, 1063 }; // NOLINT static const uint16_t kUppercaseTable3Size = 58; -static const uint16_t kUppercaseTable3[58] = { 54272, 21529, 54324, 21581, 54376, 21633, 21660, 54430, 21663, 21666, 54437, 21670, 54441, 21676, 54446, 21685, 54480, 21737, 54532, 21765, 54535, 21770, 54541, 21780, 54550, 21788, 54584, 21817, 54587, 21822, 54592, 21828, 21830, 54602, 21840, 54636, 21893, 54688, 21945, 54740, 21997, 54792, 22049, 54844, 22101, 54896, 22153, 54952, 22208, 55010, 22266, 55068, 22324, 55126, 22382, 55184, 22440, 22474 }; +static const uint16_t kUppercaseTable3[58] = { 54272, 21529, 54324, 21581, 54376, 21633, 21660, 54430, 21663, 21666, 54437, 21670, 54441, 21676, 54446, 21685, 54480, 21737, 54532, 21765, 54535, 21770, 54541, 21780, 54550, 21788, 54584, 21817, 54587, 21822, 54592, 21828, 21830, 54602, 21840, 54636, 21893, 54688, 21945, 54740, 21997, 54792, 22049, 54844, 22101, 54896, 22153, 54952, 22208, 55010, 22266, 55068, 22324, 55126, 22382, 55184, 22440, 22474 }; // NOLINT bool Uppercase::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -352,13 +352,13 @@ bool Uppercase::Is(uchar c) { // Lowercase: point.category == 'Ll' static const uint16_t kLowercaseTable0Size = 528; -static const uint16_t kLowercaseTable0[528] = { 32865, 122, 170, 181, 186, 32991, 246, 33016, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 33079, 312, 314, 316, 318, 320, 322, 324, 326, 33096, 329, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 359, 361, 363, 365, 367, 369, 371, 373, 375, 378, 380, 33150, 384, 387, 389, 392, 33164, 397, 402, 405, 33177, 411, 414, 417, 419, 421, 424, 33194, 427, 429, 432, 436, 438, 33209, 442, 33213, 447, 454, 457, 460, 462, 464, 466, 468, 470, 472, 474, 33244, 477, 479, 481, 483, 485, 487, 489, 491, 493, 33263, 496, 499, 501, 505, 507, 509, 511, 513, 515, 517, 519, 521, 523, 525, 527, 529, 531, 533, 535, 537, 539, 541, 543, 545, 547, 549, 551, 553, 555, 557, 559, 561, 33331, 569, 572, 33343, 576, 578, 583, 585, 587, 589, 33359, 659, 33429, 687, 33659, 893, 912, 33708, 974, 33744, 977, 33749, 983, 985, 987, 989, 991, 993, 995, 997, 999, 1001, 1003, 1005, 33775, 1011, 1013, 1016, 33787, 1020, 33840, 1119, 1121, 1123, 1125, 1127, 1129, 1131, 1133, 1135, 1137, 1139, 1141, 1143, 1145, 1147, 1149, 1151, 1153, 1163, 1165, 1167, 1169, 1171, 1173, 1175, 1177, 1179, 1181, 1183, 1185, 1187, 1189, 1191, 1193, 1195, 1197, 1199, 1201, 1203, 1205, 1207, 1209, 1211, 1213, 1215, 1218, 1220, 1222, 1224, 1226, 1228, 33998, 1231, 1233, 1235, 1237, 1239, 1241, 1243, 1245, 1247, 1249, 1251, 1253, 1255, 1257, 1259, 1261, 1263, 1265, 1267, 1269, 1271, 1273, 1275, 1277, 1279, 1281, 1283, 1285, 1287, 1289, 1291, 1293, 1295, 1297, 1299, 34145, 1415, 40192, 7467, 40290, 7543, 40313, 7578, 7681, 7683, 7685, 7687, 7689, 7691, 7693, 7695, 7697, 7699, 7701, 7703, 7705, 7707, 7709, 7711, 7713, 7715, 7717, 7719, 7721, 7723, 7725, 7727, 7729, 7731, 7733, 7735, 7737, 7739, 7741, 7743, 7745, 7747, 7749, 7751, 7753, 7755, 7757, 7759, 7761, 7763, 7765, 7767, 7769, 7771, 7773, 7775, 7777, 7779, 7781, 7783, 7785, 7787, 7789, 7791, 7793, 7795, 7797, 7799, 7801, 7803, 7805, 7807, 7809, 7811, 7813, 7815, 7817, 7819, 7821, 7823, 7825, 7827, 40597, 7835, 7841, 7843, 7845, 7847, 7849, 7851, 7853, 7855, 7857, 7859, 7861, 7863, 7865, 7867, 7869, 7871, 7873, 7875, 7877, 7879, 7881, 7883, 7885, 7887, 7889, 7891, 7893, 7895, 7897, 7899, 7901, 7903, 7905, 7907, 7909, 7911, 7913, 7915, 7917, 7919, 7921, 7923, 7925, 7927, 7929, 40704, 7943, 40720, 7957, 40736, 7975, 40752, 7991, 40768, 8005, 40784, 8023, 40800, 8039, 40816, 8061, 40832, 8071, 40848, 8087, 40864, 8103, 40880, 8116, 40886, 8119, 8126, 40898, 8132, 40902, 8135, 40912, 8147, 40918, 8151, 40928, 8167, 40946, 8180, 40950, 8183, 8305, 8319, 8458, 41230, 8463, 8467, 8495, 8500, 8505, 41276, 8509, 41286, 8521, 8526, 8580, 44080, 11358, 11361, 44133, 11366, 11368, 11370, 11372, 11380, 44150, 11383, 11393, 11395, 11397, 11399, 11401, 11403, 11405, 11407, 11409, 11411, 11413, 11415, 11417, 11419, 11421, 11423, 11425, 11427, 11429, 11431, 11433, 11435, 11437, 11439, 11441, 11443, 11445, 11447, 11449, 11451, 11453, 11455, 11457, 11459, 11461, 11463, 11465, 11467, 11469, 11471, 11473, 11475, 11477, 11479, 11481, 11483, 11485, 11487, 11489, 44259, 11492, 44288, 11557 }; +static const uint16_t kLowercaseTable0[528] = { 32865, 122, 170, 181, 186, 32991, 246, 33016, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 33079, 312, 314, 316, 318, 320, 322, 324, 326, 33096, 329, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 359, 361, 363, 365, 367, 369, 371, 373, 375, 378, 380, 33150, 384, 387, 389, 392, 33164, 397, 402, 405, 33177, 411, 414, 417, 419, 421, 424, 33194, 427, 429, 432, 436, 438, 33209, 442, 33213, 447, 454, 457, 460, 462, 464, 466, 468, 470, 472, 474, 33244, 477, 479, 481, 483, 485, 487, 489, 491, 493, 33263, 496, 499, 501, 505, 507, 509, 511, 513, 515, 517, 519, 521, 523, 525, 527, 529, 531, 533, 535, 537, 539, 541, 543, 545, 547, 549, 551, 553, 555, 557, 559, 561, 33331, 569, 572, 33343, 576, 578, 583, 585, 587, 589, 33359, 659, 33429, 687, 33659, 893, 912, 33708, 974, 33744, 977, 33749, 983, 985, 987, 989, 991, 993, 995, 997, 999, 1001, 1003, 1005, 33775, 1011, 1013, 1016, 33787, 1020, 33840, 1119, 1121, 1123, 1125, 1127, 1129, 1131, 1133, 1135, 1137, 1139, 1141, 1143, 1145, 1147, 1149, 1151, 1153, 1163, 1165, 1167, 1169, 1171, 1173, 1175, 1177, 1179, 1181, 1183, 1185, 1187, 1189, 1191, 1193, 1195, 1197, 1199, 1201, 1203, 1205, 1207, 1209, 1211, 1213, 1215, 1218, 1220, 1222, 1224, 1226, 1228, 33998, 1231, 1233, 1235, 1237, 1239, 1241, 1243, 1245, 1247, 1249, 1251, 1253, 1255, 1257, 1259, 1261, 1263, 1265, 1267, 1269, 1271, 1273, 1275, 1277, 1279, 1281, 1283, 1285, 1287, 1289, 1291, 1293, 1295, 1297, 1299, 34145, 1415, 40192, 7467, 40290, 7543, 40313, 7578, 7681, 7683, 7685, 7687, 7689, 7691, 7693, 7695, 7697, 7699, 7701, 7703, 7705, 7707, 7709, 7711, 7713, 7715, 7717, 7719, 7721, 7723, 7725, 7727, 7729, 7731, 7733, 7735, 7737, 7739, 7741, 7743, 7745, 7747, 7749, 7751, 7753, 7755, 7757, 7759, 7761, 7763, 7765, 7767, 7769, 7771, 7773, 7775, 7777, 7779, 7781, 7783, 7785, 7787, 7789, 7791, 7793, 7795, 7797, 7799, 7801, 7803, 7805, 7807, 7809, 7811, 7813, 7815, 7817, 7819, 7821, 7823, 7825, 7827, 40597, 7835, 7841, 7843, 7845, 7847, 7849, 7851, 7853, 7855, 7857, 7859, 7861, 7863, 7865, 7867, 7869, 7871, 7873, 7875, 7877, 7879, 7881, 7883, 7885, 7887, 7889, 7891, 7893, 7895, 7897, 7899, 7901, 7903, 7905, 7907, 7909, 7911, 7913, 7915, 7917, 7919, 7921, 7923, 7925, 7927, 7929, 40704, 7943, 40720, 7957, 40736, 7975, 40752, 7991, 40768, 8005, 40784, 8023, 40800, 8039, 40816, 8061, 40832, 8071, 40848, 8087, 40864, 8103, 40880, 8116, 40886, 8119, 8126, 40898, 8132, 40902, 8135, 40912, 8147, 40918, 8151, 40928, 8167, 40946, 8180, 40950, 8183, 8305, 8319, 8458, 41230, 8463, 8467, 8495, 8500, 8505, 41276, 8509, 41286, 8521, 8526, 8580, 44080, 11358, 11361, 44133, 11366, 11368, 11370, 11372, 11380, 44150, 11383, 11393, 11395, 11397, 11399, 11401, 11403, 11405, 11407, 11409, 11411, 11413, 11415, 11417, 11419, 11421, 11423, 11425, 11427, 11429, 11431, 11433, 11435, 11437, 11439, 11441, 11443, 11445, 11447, 11449, 11451, 11453, 11455, 11457, 11459, 11461, 11463, 11465, 11467, 11469, 11471, 11473, 11475, 11477, 11479, 11481, 11483, 11485, 11487, 11489, 44259, 11492, 44288, 11557 }; // NOLINT static const uint16_t kLowercaseTable1Size = 6; -static const uint16_t kLowercaseTable1[6] = { 64256, 31494, 64275, 31511, 65345, 32602 }; +static const uint16_t kLowercaseTable1[6] = { 64256, 31494, 64275, 31511, 65345, 32602 }; // NOLINT static const uint16_t kLowercaseTable2Size = 2; -static const uint16_t kLowercaseTable2[2] = { 33832, 1103 }; +static const uint16_t kLowercaseTable2[2] = { 33832, 1103 }; // NOLINT static const uint16_t kLowercaseTable3Size = 54; -static const uint16_t kLowercaseTable3[54] = { 54298, 21555, 54350, 21588, 54358, 21607, 54402, 21659, 54454, 21689, 21691, 54461, 21699, 54469, 21711, 54506, 21763, 54558, 21815, 54610, 21867, 54662, 21919, 54714, 21971, 54766, 22023, 54818, 22075, 54870, 22127, 54922, 22181, 54978, 22234, 55004, 22241, 55036, 22292, 55062, 22299, 55094, 22350, 55120, 22357, 55152, 22408, 55178, 22415, 55210, 22466, 55236, 22473, 22475 }; +static const uint16_t kLowercaseTable3[54] = { 54298, 21555, 54350, 21588, 54358, 21607, 54402, 21659, 54454, 21689, 21691, 54461, 21699, 54469, 21711, 54506, 21763, 54558, 21815, 54610, 21867, 54662, 21919, 54714, 21971, 54766, 22023, 54818, 22075, 54870, 22127, 54922, 22181, 54978, 22234, 55004, 22241, 55036, 22292, 55062, 22299, 55094, 22350, 55120, 22357, 55152, 22408, 55178, 22415, 55210, 22466, 55236, 22473, 22475 }; // NOLINT bool Lowercase::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -381,17 +381,17 @@ bool Lowercase::Is(uchar c) { // Letter: point.category in ['Lu', 'Ll', 'Lt', 'Lm', 'Lo' ] static const uint16_t kLetterTable0Size = 475; -static const uint16_t kLetterTable0[475] = { 32833, 90, 32865, 122, 170, 181, 186, 32960, 214, 32984, 246, 33016, 705, 33478, 721, 33504, 740, 750, 33658, 893, 902, 33672, 906, 908, 33678, 929, 33699, 974, 33744, 1013, 33783, 1153, 33930, 1299, 34097, 1366, 1369, 34145, 1415, 34256, 1514, 34288, 1522, 34337, 1594, 34368, 1610, 34414, 1647, 34417, 1747, 1749, 34533, 1766, 34542, 1775, 34554, 1788, 1791, 1808, 34578, 1839, 34637, 1901, 34688, 1957, 1969, 34762, 2026, 34804, 2037, 2042, 35076, 2361, 2365, 2384, 35160, 2401, 35195, 2431, 35205, 2444, 35215, 2448, 35219, 2472, 35242, 2480, 2482, 35254, 2489, 2493, 2510, 35292, 2525, 35295, 2529, 35312, 2545, 35333, 2570, 35343, 2576, 35347, 2600, 35370, 2608, 35378, 2611, 35381, 2614, 35384, 2617, 35417, 2652, 2654, 35442, 2676, 35461, 2701, 35471, 2705, 35475, 2728, 35498, 2736, 35506, 2739, 35509, 2745, 2749, 2768, 35552, 2785, 35589, 2828, 35599, 2832, 35603, 2856, 35626, 2864, 35634, 2867, 35637, 2873, 2877, 35676, 2909, 35679, 2913, 2929, 2947, 35717, 2954, 35726, 2960, 35730, 2965, 35737, 2970, 2972, 35742, 2975, 35747, 2980, 35752, 2986, 35758, 3001, 35845, 3084, 35854, 3088, 35858, 3112, 35882, 3123, 35893, 3129, 35936, 3169, 35973, 3212, 35982, 3216, 35986, 3240, 36010, 3251, 36021, 3257, 3261, 3294, 36064, 3297, 36101, 3340, 36110, 3344, 36114, 3368, 36138, 3385, 36192, 3425, 36229, 3478, 36250, 3505, 36275, 3515, 3517, 36288, 3526, 36353, 3632, 36402, 3635, 36416, 3654, 36481, 3714, 3716, 36487, 3720, 3722, 3725, 36500, 3735, 36505, 3743, 36513, 3747, 3749, 3751, 36522, 3755, 36525, 3760, 36530, 3763, 3773, 36544, 3780, 3782, 36572, 3805, 3840, 36672, 3911, 36681, 3946, 36744, 3979, 36864, 4129, 36899, 4135, 36905, 4138, 36944, 4181, 37024, 4293, 37072, 4346, 4348, 37120, 4441, 37215, 4514, 37288, 4601, 37376, 4680, 37450, 4685, 37456, 4694, 4696, 37466, 4701, 37472, 4744, 37514, 4749, 37520, 4784, 37554, 4789, 37560, 4798, 4800, 37570, 4805, 37576, 4822, 37592, 4880, 37650, 4885, 37656, 4954, 37760, 5007, 37792, 5108, 37889, 5740, 38511, 5750, 38529, 5786, 38560, 5866, 38656, 5900, 38670, 5905, 38688, 5937, 38720, 5969, 38752, 5996, 38766, 6000, 38784, 6067, 6103, 6108, 38944, 6263, 39040, 6312, 39168, 6428, 39248, 6509, 39280, 6516, 39296, 6569, 39361, 6599, 39424, 6678, 39685, 6963, 39749, 6987, 40192, 7615, 40448, 7835, 40608, 7929, 40704, 7957, 40728, 7965, 40736, 8005, 40776, 8013, 40784, 8023, 8025, 8027, 8029, 40799, 8061, 40832, 8116, 40886, 8124, 8126, 40898, 8132, 40902, 8140, 40912, 8147, 40918, 8155, 40928, 8172, 40946, 8180, 40950, 8188, 8305, 8319, 41104, 8340, 8450, 8455, 41226, 8467, 8469, 41241, 8477, 8484, 8486, 8488, 41258, 8493, 41263, 8505, 41276, 8511, 41285, 8521, 8526, 41347, 8580, 44032, 11310, 44080, 11358, 44128, 11372, 44148, 11383, 44160, 11492, 44288, 11557, 44336, 11621, 11631, 44416, 11670, 44448, 11686, 44456, 11694, 44464, 11702, 44472, 11710, 44480, 11718, 44488, 11726, 44496, 11734, 44504, 11742, 45061, 12294, 45105, 12341, 45115, 12348, 45121, 12438, 45213, 12447, 45217, 12538, 45308, 12543, 45317, 12588, 45361, 12686, 45472, 12727, 45552, 12799, 13312, 19893, 19968 }; +static const uint16_t kLetterTable0[475] = { 32833, 90, 32865, 122, 170, 181, 186, 32960, 214, 32984, 246, 33016, 705, 33478, 721, 33504, 740, 750, 33658, 893, 902, 33672, 906, 908, 33678, 929, 33699, 974, 33744, 1013, 33783, 1153, 33930, 1299, 34097, 1366, 1369, 34145, 1415, 34256, 1514, 34288, 1522, 34337, 1594, 34368, 1610, 34414, 1647, 34417, 1747, 1749, 34533, 1766, 34542, 1775, 34554, 1788, 1791, 1808, 34578, 1839, 34637, 1901, 34688, 1957, 1969, 34762, 2026, 34804, 2037, 2042, 35076, 2361, 2365, 2384, 35160, 2401, 35195, 2431, 35205, 2444, 35215, 2448, 35219, 2472, 35242, 2480, 2482, 35254, 2489, 2493, 2510, 35292, 2525, 35295, 2529, 35312, 2545, 35333, 2570, 35343, 2576, 35347, 2600, 35370, 2608, 35378, 2611, 35381, 2614, 35384, 2617, 35417, 2652, 2654, 35442, 2676, 35461, 2701, 35471, 2705, 35475, 2728, 35498, 2736, 35506, 2739, 35509, 2745, 2749, 2768, 35552, 2785, 35589, 2828, 35599, 2832, 35603, 2856, 35626, 2864, 35634, 2867, 35637, 2873, 2877, 35676, 2909, 35679, 2913, 2929, 2947, 35717, 2954, 35726, 2960, 35730, 2965, 35737, 2970, 2972, 35742, 2975, 35747, 2980, 35752, 2986, 35758, 3001, 35845, 3084, 35854, 3088, 35858, 3112, 35882, 3123, 35893, 3129, 35936, 3169, 35973, 3212, 35982, 3216, 35986, 3240, 36010, 3251, 36021, 3257, 3261, 3294, 36064, 3297, 36101, 3340, 36110, 3344, 36114, 3368, 36138, 3385, 36192, 3425, 36229, 3478, 36250, 3505, 36275, 3515, 3517, 36288, 3526, 36353, 3632, 36402, 3635, 36416, 3654, 36481, 3714, 3716, 36487, 3720, 3722, 3725, 36500, 3735, 36505, 3743, 36513, 3747, 3749, 3751, 36522, 3755, 36525, 3760, 36530, 3763, 3773, 36544, 3780, 3782, 36572, 3805, 3840, 36672, 3911, 36681, 3946, 36744, 3979, 36864, 4129, 36899, 4135, 36905, 4138, 36944, 4181, 37024, 4293, 37072, 4346, 4348, 37120, 4441, 37215, 4514, 37288, 4601, 37376, 4680, 37450, 4685, 37456, 4694, 4696, 37466, 4701, 37472, 4744, 37514, 4749, 37520, 4784, 37554, 4789, 37560, 4798, 4800, 37570, 4805, 37576, 4822, 37592, 4880, 37650, 4885, 37656, 4954, 37760, 5007, 37792, 5108, 37889, 5740, 38511, 5750, 38529, 5786, 38560, 5866, 38656, 5900, 38670, 5905, 38688, 5937, 38720, 5969, 38752, 5996, 38766, 6000, 38784, 6067, 6103, 6108, 38944, 6263, 39040, 6312, 39168, 6428, 39248, 6509, 39280, 6516, 39296, 6569, 39361, 6599, 39424, 6678, 39685, 6963, 39749, 6987, 40192, 7615, 40448, 7835, 40608, 7929, 40704, 7957, 40728, 7965, 40736, 8005, 40776, 8013, 40784, 8023, 8025, 8027, 8029, 40799, 8061, 40832, 8116, 40886, 8124, 8126, 40898, 8132, 40902, 8140, 40912, 8147, 40918, 8155, 40928, 8172, 40946, 8180, 40950, 8188, 8305, 8319, 41104, 8340, 8450, 8455, 41226, 8467, 8469, 41241, 8477, 8484, 8486, 8488, 41258, 8493, 41263, 8505, 41276, 8511, 41285, 8521, 8526, 41347, 8580, 44032, 11310, 44080, 11358, 44128, 11372, 44148, 11383, 44160, 11492, 44288, 11557, 44336, 11621, 11631, 44416, 11670, 44448, 11686, 44456, 11694, 44464, 11702, 44472, 11710, 44480, 11718, 44488, 11726, 44496, 11734, 44504, 11742, 45061, 12294, 45105, 12341, 45115, 12348, 45121, 12438, 45213, 12447, 45217, 12538, 45308, 12543, 45317, 12588, 45361, 12686, 45472, 12727, 45552, 12799, 13312, 19893, 19968 }; // NOLINT static const uint16_t kLetterTable1Size = 67; -static const uint16_t kLetterTable1[67] = { 8123, 40960, 9356, 42775, 10010, 43008, 10241, 43011, 10245, 43015, 10250, 43020, 10274, 43072, 10355, 11264, 22435, 63744, 31277, 64048, 31338, 64112, 31449, 64256, 31494, 64275, 31511, 31517, 64287, 31528, 64298, 31542, 64312, 31548, 31550, 64320, 31553, 64323, 31556, 64326, 31665, 64467, 32061, 64848, 32143, 64914, 32199, 65008, 32251, 65136, 32372, 65142, 32508, 65313, 32570, 65345, 32602, 65382, 32702, 65474, 32711, 65482, 32719, 65490, 32727, 65498, 32732 }; +static const uint16_t kLetterTable1[67] = { 8123, 40960, 9356, 42775, 10010, 43008, 10241, 43011, 10245, 43015, 10250, 43020, 10274, 43072, 10355, 11264, 22435, 63744, 31277, 64048, 31338, 64112, 31449, 64256, 31494, 64275, 31511, 31517, 64287, 31528, 64298, 31542, 64312, 31548, 31550, 64320, 31553, 64323, 31556, 64326, 31665, 64467, 32061, 64848, 32143, 64914, 32199, 65008, 32251, 65136, 32372, 65142, 32508, 65313, 32570, 65345, 32602, 65382, 32702, 65474, 32711, 65482, 32719, 65490, 32727, 65498, 32732 }; // NOLINT static const uint16_t kLetterTable2Size = 48; -static const uint16_t kLetterTable2[48] = { 32768, 11, 32781, 38, 32808, 58, 32828, 61, 32831, 77, 32848, 93, 32896, 250, 33536, 798, 33584, 832, 33602, 841, 33664, 925, 33696, 963, 33736, 975, 33792, 1181, 34816, 2053, 2056, 34826, 2101, 34871, 2104, 2108, 2111, 35072, 2325, 2560, 35344, 2579, 35349, 2583, 35353, 2611, 40960, 9070 }; +static const uint16_t kLetterTable2[48] = { 32768, 11, 32781, 38, 32808, 58, 32828, 61, 32831, 77, 32848, 93, 32896, 250, 33536, 798, 33584, 832, 33602, 841, 33664, 925, 33696, 963, 33736, 975, 33792, 1181, 34816, 2053, 2056, 34826, 2101, 34871, 2104, 2108, 2111, 35072, 2325, 2560, 35344, 2579, 35349, 2583, 35353, 2611, 40960, 9070 }; // NOLINT static const uint16_t kLetterTable3Size = 57; -static const uint16_t kLetterTable3[57] = { 54272, 21588, 54358, 21660, 54430, 21663, 21666, 54437, 21670, 54441, 21676, 54446, 21689, 21691, 54461, 21699, 54469, 21765, 54535, 21770, 54541, 21780, 54550, 21788, 54558, 21817, 54587, 21822, 54592, 21828, 21830, 54602, 21840, 54610, 22181, 54952, 22208, 54978, 22234, 55004, 22266, 55036, 22292, 55062, 22324, 55094, 22350, 55120, 22382, 55152, 22408, 55178, 22440, 55210, 22466, 55236, 22475 }; +static const uint16_t kLetterTable3[57] = { 54272, 21588, 54358, 21660, 54430, 21663, 21666, 54437, 21670, 54441, 21676, 54446, 21689, 21691, 54461, 21699, 54469, 21765, 54535, 21770, 54541, 21780, 54550, 21788, 54558, 21817, 54587, 21822, 54592, 21828, 21830, 54602, 21840, 54610, 22181, 54952, 22208, 54978, 22234, 55004, 22266, 55036, 22292, 55062, 22324, 55094, 22350, 55120, 22382, 55152, 22408, 55178, 22440, 55210, 22466, 55236, 22475 }; // NOLINT static const uint16_t kLetterTable4Size = 1; -static const uint16_t kLetterTable4[1] = { 0 }; +static const uint16_t kLetterTable4[1] = { 0 }; // NOLINT static const uint16_t kLetterTable5Size = 3; -static const uint16_t kLetterTable5[3] = { 9942, 63488, 31261 }; +static const uint16_t kLetterTable5[3] = { 9942, 63488, 31261 }; // NOLINT bool Letter::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -420,7 +420,7 @@ bool Letter::Is(uchar c) { // Space: point.category == 'Zs' static const uint16_t kSpaceTable0Size = 9; -static const uint16_t kSpaceTable0[9] = { 32, 160, 5760, 6158, 40960, 8202, 8239, 8287, 12288 }; +static const uint16_t kSpaceTable0[9] = { 32, 160, 5760, 6158, 40960, 8202, 8239, 8287, 12288 }; // NOLINT bool Space::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -434,7 +434,7 @@ bool Space::Is(uchar c) { // Titlecase: point.category == 'Lt' static const uint16_t kTitlecaseTable0Size = 13; -static const uint16_t kTitlecaseTable0[13] = { 453, 456, 459, 498, 40840, 8079, 40856, 8095, 40872, 8111, 8124, 8140, 8188 }; +static const uint16_t kTitlecaseTable0[13] = { 453, 456, 459, 498, 40840, 8079, 40856, 8095, 40872, 8111, 8124, 8140, 8188 }; // NOLINT bool Titlecase::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -448,13 +448,13 @@ bool Titlecase::Is(uchar c) { // Number: point.category in ['Nd', 'Nl', 'No' ] static const uint16_t kNumberTable0Size = 86; -static const uint16_t kNumberTable0[86] = { 32816, 57, 32946, 179, 185, 32956, 190, 34400, 1641, 34544, 1785, 34752, 1993, 35174, 2415, 35302, 2543, 35316, 2553, 35430, 2671, 35558, 2799, 35686, 2927, 35814, 3058, 35942, 3183, 36070, 3311, 36198, 3439, 36432, 3673, 36560, 3801, 36640, 3891, 36928, 4169, 37737, 4988, 38638, 5872, 38880, 6121, 38896, 6137, 38928, 6169, 39238, 6479, 39376, 6617, 39760, 7001, 8304, 41076, 8313, 41088, 8329, 41299, 8578, 42080, 9371, 42218, 9471, 42870, 10131, 11517, 12295, 45089, 12329, 45112, 12346, 45458, 12693, 45600, 12841, 45649, 12895, 45696, 12937, 45745, 12991 }; +static const uint16_t kNumberTable0[86] = { 32816, 57, 32946, 179, 185, 32956, 190, 34400, 1641, 34544, 1785, 34752, 1993, 35174, 2415, 35302, 2543, 35316, 2553, 35430, 2671, 35558, 2799, 35686, 2927, 35814, 3058, 35942, 3183, 36070, 3311, 36198, 3439, 36432, 3673, 36560, 3801, 36640, 3891, 36928, 4169, 37737, 4988, 38638, 5872, 38880, 6121, 38896, 6137, 38928, 6169, 39238, 6479, 39376, 6617, 39760, 7001, 8304, 41076, 8313, 41088, 8329, 41299, 8578, 42080, 9371, 42218, 9471, 42870, 10131, 11517, 12295, 45089, 12329, 45112, 12346, 45458, 12693, 45600, 12841, 45649, 12895, 45696, 12937, 45745, 12991 }; // NOLINT static const uint16_t kNumberTable1Size = 2; -static const uint16_t kNumberTable1[2] = { 65296, 32537 }; +static const uint16_t kNumberTable1[2] = { 65296, 32537 }; // NOLINT static const uint16_t kNumberTable2Size = 19; -static const uint16_t kNumberTable2[19] = { 33031, 307, 33088, 376, 394, 33568, 803, 833, 842, 33745, 981, 33952, 1193, 35094, 2329, 35392, 2631, 41984, 9314 }; +static const uint16_t kNumberTable2[19] = { 33031, 307, 33088, 376, 394, 33568, 803, 833, 842, 33745, 981, 33952, 1193, 35094, 2329, 35392, 2631, 41984, 9314 }; // NOLINT static const uint16_t kNumberTable3Size = 4; -static const uint16_t kNumberTable3[4] = { 54112, 21361, 55246, 22527 }; +static const uint16_t kNumberTable3[4] = { 54112, 21361, 55246, 22527 }; // NOLINT bool Number::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -477,13 +477,13 @@ bool Number::Is(uchar c) { // DecimalDigit: point.category == 'Nd' static const uint16_t kDecimalDigitTable0Size = 44; -static const uint16_t kDecimalDigitTable0[44] = { 32816, 57, 34400, 1641, 34544, 1785, 34752, 1993, 35174, 2415, 35302, 2543, 35430, 2671, 35558, 2799, 35686, 2927, 35814, 3055, 35942, 3183, 36070, 3311, 36198, 3439, 36432, 3673, 36560, 3801, 36640, 3881, 36928, 4169, 38880, 6121, 38928, 6169, 39238, 6479, 39376, 6617, 39760, 7001 }; +static const uint16_t kDecimalDigitTable0[44] = { 32816, 57, 34400, 1641, 34544, 1785, 34752, 1993, 35174, 2415, 35302, 2543, 35430, 2671, 35558, 2799, 35686, 2927, 35814, 3055, 35942, 3183, 36070, 3311, 36198, 3439, 36432, 3673, 36560, 3801, 36640, 3881, 36928, 4169, 38880, 6121, 38928, 6169, 39238, 6479, 39376, 6617, 39760, 7001 }; // NOLINT static const uint16_t kDecimalDigitTable1Size = 2; -static const uint16_t kDecimalDigitTable1[2] = { 65296, 32537 }; +static const uint16_t kDecimalDigitTable1[2] = { 65296, 32537 }; // NOLINT static const uint16_t kDecimalDigitTable2Size = 2; -static const uint16_t kDecimalDigitTable2[2] = { 33952, 1193 }; +static const uint16_t kDecimalDigitTable2[2] = { 33952, 1193 }; // NOLINT static const uint16_t kDecimalDigitTable3Size = 2; -static const uint16_t kDecimalDigitTable3[2] = { 55246, 22527 }; +static const uint16_t kDecimalDigitTable3[2] = { 55246, 22527 }; // NOLINT bool DecimalDigit::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -506,13 +506,13 @@ bool DecimalDigit::Is(uchar c) { // Ideographic: 'Id' in point.properties static const uint16_t kIdeographicTable0Size = 9; -static const uint16_t kIdeographicTable0[9] = { 45062, 12295, 45089, 12329, 45112, 12346, 13312, 19893, 19968 }; +static const uint16_t kIdeographicTable0[9] = { 45062, 12295, 45089, 12329, 45112, 12346, 13312, 19893, 19968 }; // NOLINT static const uint16_t kIdeographicTable1Size = 5; -static const uint16_t kIdeographicTable1[5] = { 8123, 63744, 31277, 64112, 31449 }; +static const uint16_t kIdeographicTable1[5] = { 8123, 63744, 31277, 64112, 31449 }; // NOLINT static const uint16_t kIdeographicTable4Size = 1; -static const uint16_t kIdeographicTable4[1] = { 0 }; +static const uint16_t kIdeographicTable4[1] = { 0 }; // NOLINT static const uint16_t kIdeographicTable5Size = 3; -static const uint16_t kIdeographicTable5[3] = { 9942, 63488, 31261 }; +static const uint16_t kIdeographicTable5[3] = { 9942, 63488, 31261 }; // NOLINT bool Ideographic::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -535,7 +535,7 @@ bool Ideographic::Is(uchar c) { // WhiteSpace: 'Ws' in point.properties static const uint16_t kWhiteSpaceTable0Size = 14; -static const uint16_t kWhiteSpaceTable0[14] = { 32777, 13, 32, 133, 160, 5760, 6158, 40960, 8202, 41000, 8233, 8239, 8287, 12288 }; +static const uint16_t kWhiteSpaceTable0[14] = { 32777, 13, 32, 133, 160, 5760, 6158, 40960, 8202, 41000, 8233, 8239, 8287, 12288 }; // NOLINT bool WhiteSpace::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -549,9 +549,9 @@ bool WhiteSpace::Is(uchar c) { // HexDigit: 'Hd' in point.properties static const uint16_t kHexDigitTable0Size = 6; -static const uint16_t kHexDigitTable0[6] = { 32816, 57, 32833, 70, 32865, 102 }; +static const uint16_t kHexDigitTable0[6] = { 32816, 57, 32833, 70, 32865, 102 }; // NOLINT static const uint16_t kHexDigitTable1Size = 6; -static const uint16_t kHexDigitTable1[6] = { 65296, 32537, 65313, 32550, 65345, 32582 }; +static const uint16_t kHexDigitTable1[6] = { 65296, 32537, 65313, 32550, 65345, 32582 }; // NOLINT bool HexDigit::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -568,7 +568,7 @@ bool HexDigit::Is(uchar c) { // AsciiHexDigit: 'Ah' in point.properties static const uint16_t kAsciiHexDigitTable0Size = 6; -static const uint16_t kAsciiHexDigitTable0[6] = { 32816, 57, 32833, 70, 32865, 102 }; +static const uint16_t kAsciiHexDigitTable0[6] = { 32816, 57, 32833, 70, 32865, 102 }; // NOLINT bool AsciiHexDigit::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -582,7 +582,7 @@ bool AsciiHexDigit::Is(uchar c) { // BidiControl: 'Bc' in point.properties static const uint16_t kBidiControlTable0Size = 4; -static const uint16_t kBidiControlTable0[4] = { 40974, 8207, 41002, 8238 }; +static const uint16_t kBidiControlTable0[4] = { 40974, 8207, 41002, 8238 }; // NOLINT bool BidiControl::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -596,7 +596,7 @@ bool BidiControl::Is(uchar c) { // JoinControl: 'Jc' in point.properties static const uint16_t kJoinControlTable0Size = 2; -static const uint16_t kJoinControlTable0[2] = { 40972, 8205 }; +static const uint16_t kJoinControlTable0[2] = { 40972, 8205 }; // NOLINT bool JoinControl::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -610,9 +610,9 @@ bool JoinControl::Is(uchar c) { // Dash: 'Dh' in point.properties static const uint16_t kDashTable0Size = 14; -static const uint16_t kDashTable0[14] = { 45, 1418, 1470, 6150, 40976, 8213, 8275, 8315, 8331, 8722, 11799, 12316, 12336, 12448 }; +static const uint16_t kDashTable0[14] = { 45, 1418, 1470, 6150, 40976, 8213, 8275, 8315, 8331, 8722, 11799, 12316, 12336, 12448 }; // NOLINT static const uint16_t kDashTable1Size = 5; -static const uint16_t kDashTable1[5] = { 65073, 32306, 32344, 32355, 32525 }; +static const uint16_t kDashTable1[5] = { 65073, 32306, 32344, 32355, 32525 }; // NOLINT bool Dash::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -629,9 +629,9 @@ bool Dash::Is(uchar c) { // Hyphen: 'Hp' in point.properties static const uint16_t kHyphenTable0Size = 8; -static const uint16_t kHyphenTable0[8] = { 45, 173, 1418, 6150, 40976, 8209, 11799, 12539 }; +static const uint16_t kHyphenTable0[8] = { 45, 173, 1418, 6150, 40976, 8209, 11799, 12539 }; // NOLINT static const uint16_t kHyphenTable1Size = 3; -static const uint16_t kHyphenTable1[3] = { 32355, 32525, 32613 }; +static const uint16_t kHyphenTable1[3] = { 32355, 32525, 32613 }; // NOLINT bool Hyphen::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -648,7 +648,7 @@ bool Hyphen::Is(uchar c) { // LineTerminator: 'Lt' in point.properties static const uint16_t kLineTerminatorTable0Size = 4; -static const uint16_t kLineTerminatorTable0[4] = { 10, 13, 41000, 8233 }; +static const uint16_t kLineTerminatorTable0[4] = { 10, 13, 41000, 8233 }; // NOLINT bool LineTerminator::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -662,15 +662,15 @@ bool LineTerminator::Is(uchar c) { // CombiningMark: point.category in ['Mn', 'Mc'] static const uint16_t kCombiningMarkTable0Size = 214; -static const uint16_t kCombiningMarkTable0[214] = { 33536, 879, 33923, 1158, 34193, 1469, 1471, 34241, 1474, 34244, 1477, 1479, 34320, 1557, 34379, 1630, 1648, 34518, 1756, 34527, 1764, 34535, 1768, 34538, 1773, 1809, 34608, 1866, 34726, 1968, 34795, 2035, 35073, 2307, 2364, 35134, 2381, 35153, 2388, 35170, 2403, 35201, 2435, 2492, 35262, 2500, 35271, 2504, 35275, 2509, 2519, 35298, 2531, 35329, 2563, 2620, 35390, 2626, 35399, 2632, 35403, 2637, 35440, 2673, 35457, 2691, 2748, 35518, 2757, 35527, 2761, 35531, 2765, 35554, 2787, 35585, 2819, 2876, 35646, 2883, 35655, 2888, 35659, 2893, 35670, 2903, 2946, 35774, 3010, 35782, 3016, 35786, 3021, 3031, 35841, 3075, 35902, 3140, 35910, 3144, 35914, 3149, 35925, 3158, 35970, 3203, 3260, 36030, 3268, 36038, 3272, 36042, 3277, 36053, 3286, 36066, 3299, 36098, 3331, 36158, 3395, 36166, 3400, 36170, 3405, 3415, 36226, 3459, 3530, 36303, 3540, 3542, 36312, 3551, 36338, 3571, 3633, 36404, 3642, 36423, 3662, 3761, 36532, 3769, 36539, 3772, 36552, 3789, 36632, 3865, 3893, 3895, 3897, 36670, 3903, 36721, 3972, 36742, 3975, 36752, 3991, 36761, 4028, 4038, 36908, 4146, 36918, 4153, 36950, 4185, 4959, 38674, 5908, 38706, 5940, 38738, 5971, 38770, 6003, 38838, 6099, 6109, 38923, 6157, 6313, 39200, 6443, 39216, 6459, 39344, 6592, 39368, 6601, 39447, 6683, 39680, 6916, 39732, 6980, 39787, 7027, 40384, 7626, 40446, 7679, 41168, 8412, 8417, 41189, 8431, 45098, 12335, 45209, 12442 }; +static const uint16_t kCombiningMarkTable0[214] = { 33536, 879, 33923, 1158, 34193, 1469, 1471, 34241, 1474, 34244, 1477, 1479, 34320, 1557, 34379, 1630, 1648, 34518, 1756, 34527, 1764, 34535, 1768, 34538, 1773, 1809, 34608, 1866, 34726, 1968, 34795, 2035, 35073, 2307, 2364, 35134, 2381, 35153, 2388, 35170, 2403, 35201, 2435, 2492, 35262, 2500, 35271, 2504, 35275, 2509, 2519, 35298, 2531, 35329, 2563, 2620, 35390, 2626, 35399, 2632, 35403, 2637, 35440, 2673, 35457, 2691, 2748, 35518, 2757, 35527, 2761, 35531, 2765, 35554, 2787, 35585, 2819, 2876, 35646, 2883, 35655, 2888, 35659, 2893, 35670, 2903, 2946, 35774, 3010, 35782, 3016, 35786, 3021, 3031, 35841, 3075, 35902, 3140, 35910, 3144, 35914, 3149, 35925, 3158, 35970, 3203, 3260, 36030, 3268, 36038, 3272, 36042, 3277, 36053, 3286, 36066, 3299, 36098, 3331, 36158, 3395, 36166, 3400, 36170, 3405, 3415, 36226, 3459, 3530, 36303, 3540, 3542, 36312, 3551, 36338, 3571, 3633, 36404, 3642, 36423, 3662, 3761, 36532, 3769, 36539, 3772, 36552, 3789, 36632, 3865, 3893, 3895, 3897, 36670, 3903, 36721, 3972, 36742, 3975, 36752, 3991, 36761, 4028, 4038, 36908, 4146, 36918, 4153, 36950, 4185, 4959, 38674, 5908, 38706, 5940, 38738, 5971, 38770, 6003, 38838, 6099, 6109, 38923, 6157, 6313, 39200, 6443, 39216, 6459, 39344, 6592, 39368, 6601, 39447, 6683, 39680, 6916, 39732, 6980, 39787, 7027, 40384, 7626, 40446, 7679, 41168, 8412, 8417, 41189, 8431, 45098, 12335, 45209, 12442 }; // NOLINT static const uint16_t kCombiningMarkTable1Size = 10; -static const uint16_t kCombiningMarkTable1[10] = { 10242, 10246, 10251, 43043, 10279, 31518, 65024, 32271, 65056, 32291 }; +static const uint16_t kCombiningMarkTable1[10] = { 10242, 10246, 10251, 43043, 10279, 31518, 65024, 32271, 65056, 32291 }; // NOLINT static const uint16_t kCombiningMarkTable2Size = 9; -static const uint16_t kCombiningMarkTable2[9] = { 35329, 2563, 35333, 2566, 35340, 2575, 35384, 2618, 2623 }; +static const uint16_t kCombiningMarkTable2[9] = { 35329, 2563, 35333, 2566, 35340, 2575, 35384, 2618, 2623 }; // NOLINT static const uint16_t kCombiningMarkTable3Size = 12; -static const uint16_t kCombiningMarkTable3[12] = { 53605, 20841, 53613, 20850, 53627, 20866, 53637, 20875, 53674, 20909, 53826, 21060 }; +static const uint16_t kCombiningMarkTable3[12] = { 53605, 20841, 53613, 20850, 53627, 20866, 53637, 20875, 53674, 20909, 53826, 21060 }; // NOLINT static const uint16_t kCombiningMarkTable28Size = 2; -static const uint16_t kCombiningMarkTable28[2] = { 33024, 495 }; +static const uint16_t kCombiningMarkTable28[2] = { 33024, 495 }; // NOLINT bool CombiningMark::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -696,9 +696,9 @@ bool CombiningMark::Is(uchar c) { // ConnectorPunctuation: point.category == 'Pc' static const uint16_t kConnectorPunctuationTable0Size = 4; -static const uint16_t kConnectorPunctuationTable0[4] = { 95, 41023, 8256, 8276 }; +static const uint16_t kConnectorPunctuationTable0[4] = { 95, 41023, 8256, 8276 }; // NOLINT static const uint16_t kConnectorPunctuationTable1Size = 5; -static const uint16_t kConnectorPunctuationTable1[5] = { 65075, 32308, 65101, 32335, 32575 }; +static const uint16_t kConnectorPunctuationTable1[5] = { 65075, 32308, 65101, 32335, 32575 }; // NOLINT bool ConnectorPunctuation::Is(uchar c) { int chunk_index = c >> 15; switch (chunk_index) { @@ -712,15 +712,15 @@ bool ConnectorPunctuation::Is(uchar c) { } } -static const MultiCharacterSpecialCase kToLowercaseMultiStrings0[] = { {2, {105, 775}}, {0, {0}} }; +static const MultiCharacterSpecialCase kToLowercaseMultiStrings0[] = { {2, {105, 775}}, {0, {0}} }; // NOLINT static const uint16_t kToLowercaseTable0Size = 531; -static const uint16_t kToLowercaseTable0[1062] = { 32833, 128, 90, 128, 32960, 128, 214, 128, 32984, 128, 222, 128, 256, 4, 258, 4, 260, 4, 262, 4, 264, 4, 266, 4, 268, 4, 270, 4, 272, 4, 274, 4, 276, 4, 278, 4, 280, 4, 282, 4, 284, 4, 286, 4, 288, 4, 290, 4, 292, 4, 294, 4, 296, 4, 298, 4, 300, 4, 302, 4, 304, 1, 306, 4, 308, 4, 310, 4, 313, 4, 315, 4, 317, 4, 319, 4, 321, 4, 323, 4, 325, 4, 327, 4, 330, 4, 332, 4, 334, 4, 336, 4, 338, 4, 340, 4, 342, 4, 344, 4, 346, 4, 348, 4, 350, 4, 352, 4, 354, 4, 356, 4, 358, 4, 360, 4, 362, 4, 364, 4, 366, 4, 368, 4, 370, 4, 372, 4, 374, 4, 376, static_cast(-484), 377, 4, 379, 4, 381, 4, 385, 840, 386, 4, 388, 4, 390, 824, 391, 4, 33161, 820, 394, 820, 395, 4, 398, 316, 399, 808, 400, 812, 401, 4, 403, 820, 404, 828, 406, 844, 407, 836, 408, 4, 412, 844, 413, 852, 415, 856, 416, 4, 418, 4, 420, 4, 422, 872, 423, 4, 425, 872, 428, 4, 430, 872, 431, 4, 33201, 868, 434, 868, 435, 4, 437, 4, 439, 876, 440, 4, 444, 4, 452, 8, 453, 4, 455, 8, 456, 4, 458, 8, 459, 4, 461, 4, 463, 4, 465, 4, 467, 4, 469, 4, 471, 4, 473, 4, 475, 4, 478, 4, 480, 4, 482, 4, 484, 4, 486, 4, 488, 4, 490, 4, 492, 4, 494, 4, 497, 8, 498, 4, 500, 4, 502, static_cast(-388), 503, static_cast(-224), 504, 4, 506, 4, 508, 4, 510, 4, 512, 4, 514, 4, 516, 4, 518, 4, 520, 4, 522, 4, 524, 4, 526, 4, 528, 4, 530, 4, 532, 4, 534, 4, 536, 4, 538, 4, 540, 4, 542, 4, 544, static_cast(-520), 546, 4, 548, 4, 550, 4, 552, 4, 554, 4, 556, 4, 558, 4, 560, 4, 562, 4, 570, 43180, 571, 4, 573, static_cast(-652), 574, 43168, 577, 4, 579, static_cast(-780), 580, 276, 581, 284, 582, 4, 584, 4, 586, 4, 588, 4, 590, 4, 902, 152, 33672, 148, 906, 148, 908, 256, 33678, 252, 911, 252, 33681, 128, 929, 128, 33699, 6, 939, 128, 984, 4, 986, 4, 988, 4, 990, 4, 992, 4, 994, 4, 996, 4, 998, 4, 1000, 4, 1002, 4, 1004, 4, 1006, 4, 1012, static_cast(-240), 1015, 4, 1017, static_cast(-28), 1018, 4, 33789, static_cast(-520), 1023, static_cast(-520), 33792, 320, 1039, 320, 33808, 128, 1071, 128, 1120, 4, 1122, 4, 1124, 4, 1126, 4, 1128, 4, 1130, 4, 1132, 4, 1134, 4, 1136, 4, 1138, 4, 1140, 4, 1142, 4, 1144, 4, 1146, 4, 1148, 4, 1150, 4, 1152, 4, 1162, 4, 1164, 4, 1166, 4, 1168, 4, 1170, 4, 1172, 4, 1174, 4, 1176, 4, 1178, 4, 1180, 4, 1182, 4, 1184, 4, 1186, 4, 1188, 4, 1190, 4, 1192, 4, 1194, 4, 1196, 4, 1198, 4, 1200, 4, 1202, 4, 1204, 4, 1206, 4, 1208, 4, 1210, 4, 1212, 4, 1214, 4, 1216, 60, 1217, 4, 1219, 4, 1221, 4, 1223, 4, 1225, 4, 1227, 4, 1229, 4, 1232, 4, 1234, 4, 1236, 4, 1238, 4, 1240, 4, 1242, 4, 1244, 4, 1246, 4, 1248, 4, 1250, 4, 1252, 4, 1254, 4, 1256, 4, 1258, 4, 1260, 4, 1262, 4, 1264, 4, 1266, 4, 1268, 4, 1270, 4, 1272, 4, 1274, 4, 1276, 4, 1278, 4, 1280, 4, 1282, 4, 1284, 4, 1286, 4, 1288, 4, 1290, 4, 1292, 4, 1294, 4, 1296, 4, 1298, 4, 34097, 192, 1366, 192, 37024, 29056, 4293, 29056, 7680, 4, 7682, 4, 7684, 4, 7686, 4, 7688, 4, 7690, 4, 7692, 4, 7694, 4, 7696, 4, 7698, 4, 7700, 4, 7702, 4, 7704, 4, 7706, 4, 7708, 4, 7710, 4, 7712, 4, 7714, 4, 7716, 4, 7718, 4, 7720, 4, 7722, 4, 7724, 4, 7726, 4, 7728, 4, 7730, 4, 7732, 4, 7734, 4, 7736, 4, 7738, 4, 7740, 4, 7742, 4, 7744, 4, 7746, 4, 7748, 4, 7750, 4, 7752, 4, 7754, 4, 7756, 4, 7758, 4, 7760, 4, 7762, 4, 7764, 4, 7766, 4, 7768, 4, 7770, 4, 7772, 4, 7774, 4, 7776, 4, 7778, 4, 7780, 4, 7782, 4, 7784, 4, 7786, 4, 7788, 4, 7790, 4, 7792, 4, 7794, 4, 7796, 4, 7798, 4, 7800, 4, 7802, 4, 7804, 4, 7806, 4, 7808, 4, 7810, 4, 7812, 4, 7814, 4, 7816, 4, 7818, 4, 7820, 4, 7822, 4, 7824, 4, 7826, 4, 7828, 4, 7840, 4, 7842, 4, 7844, 4, 7846, 4, 7848, 4, 7850, 4, 7852, 4, 7854, 4, 7856, 4, 7858, 4, 7860, 4, 7862, 4, 7864, 4, 7866, 4, 7868, 4, 7870, 4, 7872, 4, 7874, 4, 7876, 4, 7878, 4, 7880, 4, 7882, 4, 7884, 4, 7886, 4, 7888, 4, 7890, 4, 7892, 4, 7894, 4, 7896, 4, 7898, 4, 7900, 4, 7902, 4, 7904, 4, 7906, 4, 7908, 4, 7910, 4, 7912, 4, 7914, 4, 7916, 4, 7918, 4, 7920, 4, 7922, 4, 7924, 4, 7926, 4, 7928, 4, 40712, static_cast(-32), 7951, static_cast(-32), 40728, static_cast(-32), 7965, static_cast(-32), 40744, static_cast(-32), 7983, static_cast(-32), 40760, static_cast(-32), 7999, static_cast(-32), 40776, static_cast(-32), 8013, static_cast(-32), 8025, static_cast(-32), 8027, static_cast(-32), 8029, static_cast(-32), 8031, static_cast(-32), 40808, static_cast(-32), 8047, static_cast(-32), 40840, static_cast(-32), 8079, static_cast(-32), 40856, static_cast(-32), 8095, static_cast(-32), 40872, static_cast(-32), 8111, static_cast(-32), 40888, static_cast(-32), 8121, static_cast(-32), 40890, static_cast(-296), 8123, static_cast(-296), 8124, static_cast(-36), 40904, static_cast(-344), 8139, static_cast(-344), 8140, static_cast(-36), 40920, static_cast(-32), 8153, static_cast(-32), 40922, static_cast(-400), 8155, static_cast(-400), 40936, static_cast(-32), 8169, static_cast(-32), 40938, static_cast(-448), 8171, static_cast(-448), 8172, static_cast(-28), 40952, static_cast(-512), 8185, static_cast(-512), 40954, static_cast(-504), 8187, static_cast(-504), 8188, static_cast(-36), 8486, static_cast(-30068), 8490, static_cast(-33532), 8491, static_cast(-33048), 8498, 112, 41312, 64, 8559, 64, 8579, 4, 42166, 104, 9423, 104, 44032, 192, 11310, 192, 11360, 4, 11362, static_cast(-42972), 11363, static_cast(-15256), 11364, static_cast(-42908), 11367, 4, 11369, 4, 11371, 4, 11381, 4, 11392, 4, 11394, 4, 11396, 4, 11398, 4, 11400, 4, 11402, 4, 11404, 4, 11406, 4, 11408, 4, 11410, 4, 11412, 4, 11414, 4, 11416, 4, 11418, 4, 11420, 4, 11422, 4, 11424, 4, 11426, 4, 11428, 4, 11430, 4, 11432, 4, 11434, 4, 11436, 4, 11438, 4, 11440, 4, 11442, 4, 11444, 4, 11446, 4, 11448, 4, 11450, 4, 11452, 4, 11454, 4, 11456, 4, 11458, 4, 11460, 4, 11462, 4, 11464, 4, 11466, 4, 11468, 4, 11470, 4, 11472, 4, 11474, 4, 11476, 4, 11478, 4, 11480, 4, 11482, 4, 11484, 4, 11486, 4, 11488, 4, 11490, 4 }; -static const MultiCharacterSpecialCase kToLowercaseMultiStrings1[] = { {0, {0}} }; +static const uint16_t kToLowercaseTable0[1062] = { 32833, 128, 90, 128, 32960, 128, 214, 128, 32984, 128, 222, 128, 256, 4, 258, 4, 260, 4, 262, 4, 264, 4, 266, 4, 268, 4, 270, 4, 272, 4, 274, 4, 276, 4, 278, 4, 280, 4, 282, 4, 284, 4, 286, 4, 288, 4, 290, 4, 292, 4, 294, 4, 296, 4, 298, 4, 300, 4, 302, 4, 304, 1, 306, 4, 308, 4, 310, 4, 313, 4, 315, 4, 317, 4, 319, 4, 321, 4, 323, 4, 325, 4, 327, 4, 330, 4, 332, 4, 334, 4, 336, 4, 338, 4, 340, 4, 342, 4, 344, 4, 346, 4, 348, 4, 350, 4, 352, 4, 354, 4, 356, 4, 358, 4, 360, 4, 362, 4, 364, 4, 366, 4, 368, 4, 370, 4, 372, 4, 374, 4, 376, static_cast(-484), 377, 4, 379, 4, 381, 4, 385, 840, 386, 4, 388, 4, 390, 824, 391, 4, 33161, 820, 394, 820, 395, 4, 398, 316, 399, 808, 400, 812, 401, 4, 403, 820, 404, 828, 406, 844, 407, 836, 408, 4, 412, 844, 413, 852, 415, 856, 416, 4, 418, 4, 420, 4, 422, 872, 423, 4, 425, 872, 428, 4, 430, 872, 431, 4, 33201, 868, 434, 868, 435, 4, 437, 4, 439, 876, 440, 4, 444, 4, 452, 8, 453, 4, 455, 8, 456, 4, 458, 8, 459, 4, 461, 4, 463, 4, 465, 4, 467, 4, 469, 4, 471, 4, 473, 4, 475, 4, 478, 4, 480, 4, 482, 4, 484, 4, 486, 4, 488, 4, 490, 4, 492, 4, 494, 4, 497, 8, 498, 4, 500, 4, 502, static_cast(-388), 503, static_cast(-224), 504, 4, 506, 4, 508, 4, 510, 4, 512, 4, 514, 4, 516, 4, 518, 4, 520, 4, 522, 4, 524, 4, 526, 4, 528, 4, 530, 4, 532, 4, 534, 4, 536, 4, 538, 4, 540, 4, 542, 4, 544, static_cast(-520), 546, 4, 548, 4, 550, 4, 552, 4, 554, 4, 556, 4, 558, 4, 560, 4, 562, 4, 570, 43180, 571, 4, 573, static_cast(-652), 574, 43168, 577, 4, 579, static_cast(-780), 580, 276, 581, 284, 582, 4, 584, 4, 586, 4, 588, 4, 590, 4, 902, 152, 33672, 148, 906, 148, 908, 256, 33678, 252, 911, 252, 33681, 128, 929, 128, 33699, 6, 939, 128, 984, 4, 986, 4, 988, 4, 990, 4, 992, 4, 994, 4, 996, 4, 998, 4, 1000, 4, 1002, 4, 1004, 4, 1006, 4, 1012, static_cast(-240), 1015, 4, 1017, static_cast(-28), 1018, 4, 33789, static_cast(-520), 1023, static_cast(-520), 33792, 320, 1039, 320, 33808, 128, 1071, 128, 1120, 4, 1122, 4, 1124, 4, 1126, 4, 1128, 4, 1130, 4, 1132, 4, 1134, 4, 1136, 4, 1138, 4, 1140, 4, 1142, 4, 1144, 4, 1146, 4, 1148, 4, 1150, 4, 1152, 4, 1162, 4, 1164, 4, 1166, 4, 1168, 4, 1170, 4, 1172, 4, 1174, 4, 1176, 4, 1178, 4, 1180, 4, 1182, 4, 1184, 4, 1186, 4, 1188, 4, 1190, 4, 1192, 4, 1194, 4, 1196, 4, 1198, 4, 1200, 4, 1202, 4, 1204, 4, 1206, 4, 1208, 4, 1210, 4, 1212, 4, 1214, 4, 1216, 60, 1217, 4, 1219, 4, 1221, 4, 1223, 4, 1225, 4, 1227, 4, 1229, 4, 1232, 4, 1234, 4, 1236, 4, 1238, 4, 1240, 4, 1242, 4, 1244, 4, 1246, 4, 1248, 4, 1250, 4, 1252, 4, 1254, 4, 1256, 4, 1258, 4, 1260, 4, 1262, 4, 1264, 4, 1266, 4, 1268, 4, 1270, 4, 1272, 4, 1274, 4, 1276, 4, 1278, 4, 1280, 4, 1282, 4, 1284, 4, 1286, 4, 1288, 4, 1290, 4, 1292, 4, 1294, 4, 1296, 4, 1298, 4, 34097, 192, 1366, 192, 37024, 29056, 4293, 29056, 7680, 4, 7682, 4, 7684, 4, 7686, 4, 7688, 4, 7690, 4, 7692, 4, 7694, 4, 7696, 4, 7698, 4, 7700, 4, 7702, 4, 7704, 4, 7706, 4, 7708, 4, 7710, 4, 7712, 4, 7714, 4, 7716, 4, 7718, 4, 7720, 4, 7722, 4, 7724, 4, 7726, 4, 7728, 4, 7730, 4, 7732, 4, 7734, 4, 7736, 4, 7738, 4, 7740, 4, 7742, 4, 7744, 4, 7746, 4, 7748, 4, 7750, 4, 7752, 4, 7754, 4, 7756, 4, 7758, 4, 7760, 4, 7762, 4, 7764, 4, 7766, 4, 7768, 4, 7770, 4, 7772, 4, 7774, 4, 7776, 4, 7778, 4, 7780, 4, 7782, 4, 7784, 4, 7786, 4, 7788, 4, 7790, 4, 7792, 4, 7794, 4, 7796, 4, 7798, 4, 7800, 4, 7802, 4, 7804, 4, 7806, 4, 7808, 4, 7810, 4, 7812, 4, 7814, 4, 7816, 4, 7818, 4, 7820, 4, 7822, 4, 7824, 4, 7826, 4, 7828, 4, 7840, 4, 7842, 4, 7844, 4, 7846, 4, 7848, 4, 7850, 4, 7852, 4, 7854, 4, 7856, 4, 7858, 4, 7860, 4, 7862, 4, 7864, 4, 7866, 4, 7868, 4, 7870, 4, 7872, 4, 7874, 4, 7876, 4, 7878, 4, 7880, 4, 7882, 4, 7884, 4, 7886, 4, 7888, 4, 7890, 4, 7892, 4, 7894, 4, 7896, 4, 7898, 4, 7900, 4, 7902, 4, 7904, 4, 7906, 4, 7908, 4, 7910, 4, 7912, 4, 7914, 4, 7916, 4, 7918, 4, 7920, 4, 7922, 4, 7924, 4, 7926, 4, 7928, 4, 40712, static_cast(-32), 7951, static_cast(-32), 40728, static_cast(-32), 7965, static_cast(-32), 40744, static_cast(-32), 7983, static_cast(-32), 40760, static_cast(-32), 7999, static_cast(-32), 40776, static_cast(-32), 8013, static_cast(-32), 8025, static_cast(-32), 8027, static_cast(-32), 8029, static_cast(-32), 8031, static_cast(-32), 40808, static_cast(-32), 8047, static_cast(-32), 40840, static_cast(-32), 8079, static_cast(-32), 40856, static_cast(-32), 8095, static_cast(-32), 40872, static_cast(-32), 8111, static_cast(-32), 40888, static_cast(-32), 8121, static_cast(-32), 40890, static_cast(-296), 8123, static_cast(-296), 8124, static_cast(-36), 40904, static_cast(-344), 8139, static_cast(-344), 8140, static_cast(-36), 40920, static_cast(-32), 8153, static_cast(-32), 40922, static_cast(-400), 8155, static_cast(-400), 40936, static_cast(-32), 8169, static_cast(-32), 40938, static_cast(-448), 8171, static_cast(-448), 8172, static_cast(-28), 40952, static_cast(-512), 8185, static_cast(-512), 40954, static_cast(-504), 8187, static_cast(-504), 8188, static_cast(-36), 8486, static_cast(-30068), 8490, static_cast(-33532), 8491, static_cast(-33048), 8498, 112, 41312, 64, 8559, 64, 8579, 4, 42166, 104, 9423, 104, 44032, 192, 11310, 192, 11360, 4, 11362, static_cast(-42972), 11363, static_cast(-15256), 11364, static_cast(-42908), 11367, 4, 11369, 4, 11371, 4, 11381, 4, 11392, 4, 11394, 4, 11396, 4, 11398, 4, 11400, 4, 11402, 4, 11404, 4, 11406, 4, 11408, 4, 11410, 4, 11412, 4, 11414, 4, 11416, 4, 11418, 4, 11420, 4, 11422, 4, 11424, 4, 11426, 4, 11428, 4, 11430, 4, 11432, 4, 11434, 4, 11436, 4, 11438, 4, 11440, 4, 11442, 4, 11444, 4, 11446, 4, 11448, 4, 11450, 4, 11452, 4, 11454, 4, 11456, 4, 11458, 4, 11460, 4, 11462, 4, 11464, 4, 11466, 4, 11468, 4, 11470, 4, 11472, 4, 11474, 4, 11476, 4, 11478, 4, 11480, 4, 11482, 4, 11484, 4, 11486, 4, 11488, 4, 11490, 4 }; // NOLINT +static const MultiCharacterSpecialCase kToLowercaseMultiStrings1[] = { {0, {0}} }; // NOLINT static const uint16_t kToLowercaseTable1Size = 2; -static const uint16_t kToLowercaseTable1[4] = { 65313, 128, 32570, 128 }; -static const MultiCharacterSpecialCase kToLowercaseMultiStrings2[] = { {0, {0}} }; +static const uint16_t kToLowercaseTable1[4] = { 65313, 128, 32570, 128 }; // NOLINT +static const MultiCharacterSpecialCase kToLowercaseMultiStrings2[] = { {0, {0}} }; // NOLINT static const uint16_t kToLowercaseTable2Size = 2; -static const uint16_t kToLowercaseTable2[4] = { 33792, 160, 1063, 160 }; +static const uint16_t kToLowercaseTable2[4] = { 33792, 160, 1063, 160 }; // NOLINT int ToLowercase::Convert(uchar c, uchar n, uchar* result, @@ -752,15 +752,15 @@ int ToLowercase::Convert(uchar c, } } -static const MultiCharacterSpecialCase kToUppercaseMultiStrings0[] = { {2, {83, 83}}, {2, {700, 78}}, {2, {74, 780}}, {3, {921, 776, 769}}, {3, {933, 776, 769}}, {2, {1333, 1362}}, {2, {72, 817}}, {2, {84, 776}}, {2, {87, 778}}, {2, {89, 778}}, {2, {65, 702}}, {2, {933, 787}}, {3, {933, 787, 768}}, {3, {933, 787, 769}}, {3, {933, 787, 834}}, {2, {7944, 921}}, {2, {7945, 921}}, {2, {7946, 921}}, {2, {7947, 921}}, {2, {7948, 921}}, {2, {7949, 921}}, {2, {7950, 921}}, {2, {7951, 921}}, {2, {7944, 921}}, {2, {7945, 921}}, {2, {7946, 921}}, {2, {7947, 921}}, {2, {7948, 921}}, {2, {7949, 921}}, {2, {7950, 921}}, {2, {7951, 921}}, {2, {7976, 921}}, {2, {7977, 921}}, {2, {7978, 921}}, {2, {7979, 921}}, {2, {7980, 921}}, {2, {7981, 921}}, {2, {7982, 921}}, {2, {7983, 921}}, {2, {7976, 921}}, {2, {7977, 921}}, {2, {7978, 921}}, {2, {7979, 921}}, {2, {7980, 921}}, {2, {7981, 921}}, {2, {7982, 921}}, {2, {7983, 921}}, {2, {8040, 921}}, {2, {8041, 921}}, {2, {8042, 921}}, {2, {8043, 921}}, {2, {8044, 921}}, {2, {8045, 921}}, {2, {8046, 921}}, {2, {8047, 921}}, {2, {8040, 921}}, {2, {8041, 921}}, {2, {8042, 921}}, {2, {8043, 921}}, {2, {8044, 921}}, {2, {8045, 921}}, {2, {8046, 921}}, {2, {8047, 921}}, {2, {8122, 921}}, {2, {913, 921}}, {2, {902, 921}}, {2, {913, 834}}, {3, {913, 834, 921}}, {2, {913, 921}}, {2, {8138, 921}}, {2, {919, 921}}, {2, {905, 921}}, {2, {919, 834}}, {3, {919, 834, 921}}, {2, {919, 921}}, {3, {921, 776, 768}}, {3, {921, 776, 769}}, {2, {921, 834}}, {3, {921, 776, 834}}, {3, {933, 776, 768}}, {3, {933, 776, 769}}, {2, {929, 787}}, {2, {933, 834}}, {3, {933, 776, 834}}, {2, {8186, 921}}, {2, {937, 921}}, {2, {911, 921}}, {2, {937, 834}}, {3, {937, 834, 921}}, {2, {937, 921}}, {0, {0}} }; +static const MultiCharacterSpecialCase kToUppercaseMultiStrings0[] = { {2, {83, 83}}, {2, {700, 78}}, {2, {74, 780}}, {3, {921, 776, 769}}, {3, {933, 776, 769}}, {2, {1333, 1362}}, {2, {72, 817}}, {2, {84, 776}}, {2, {87, 778}}, {2, {89, 778}}, {2, {65, 702}}, {2, {933, 787}}, {3, {933, 787, 768}}, {3, {933, 787, 769}}, {3, {933, 787, 834}}, {2, {7944, 921}}, {2, {7945, 921}}, {2, {7946, 921}}, {2, {7947, 921}}, {2, {7948, 921}}, {2, {7949, 921}}, {2, {7950, 921}}, {2, {7951, 921}}, {2, {7944, 921}}, {2, {7945, 921}}, {2, {7946, 921}}, {2, {7947, 921}}, {2, {7948, 921}}, {2, {7949, 921}}, {2, {7950, 921}}, {2, {7951, 921}}, {2, {7976, 921}}, {2, {7977, 921}}, {2, {7978, 921}}, {2, {7979, 921}}, {2, {7980, 921}}, {2, {7981, 921}}, {2, {7982, 921}}, {2, {7983, 921}}, {2, {7976, 921}}, {2, {7977, 921}}, {2, {7978, 921}}, {2, {7979, 921}}, {2, {7980, 921}}, {2, {7981, 921}}, {2, {7982, 921}}, {2, {7983, 921}}, {2, {8040, 921}}, {2, {8041, 921}}, {2, {8042, 921}}, {2, {8043, 921}}, {2, {8044, 921}}, {2, {8045, 921}}, {2, {8046, 921}}, {2, {8047, 921}}, {2, {8040, 921}}, {2, {8041, 921}}, {2, {8042, 921}}, {2, {8043, 921}}, {2, {8044, 921}}, {2, {8045, 921}}, {2, {8046, 921}}, {2, {8047, 921}}, {2, {8122, 921}}, {2, {913, 921}}, {2, {902, 921}}, {2, {913, 834}}, {3, {913, 834, 921}}, {2, {913, 921}}, {2, {8138, 921}}, {2, {919, 921}}, {2, {905, 921}}, {2, {919, 834}}, {3, {919, 834, 921}}, {2, {919, 921}}, {3, {921, 776, 768}}, {3, {921, 776, 769}}, {2, {921, 834}}, {3, {921, 776, 834}}, {3, {933, 776, 768}}, {3, {933, 776, 769}}, {2, {929, 787}}, {2, {933, 834}}, {3, {933, 776, 834}}, {2, {8186, 921}}, {2, {937, 921}}, {2, {911, 921}}, {2, {937, 834}}, {3, {937, 834, 921}}, {2, {937, 921}}, {0, {0}} }; // NOLINT static const uint16_t kToUppercaseTable0Size = 621; -static const uint16_t kToUppercaseTable0[1242] = { 32865, static_cast(-128), 122, static_cast(-128), 181, 2972, 223, 1, 32992, static_cast(-128), 246, static_cast(-128), 33016, static_cast(-128), 254, static_cast(-128), 255, 484, 257, static_cast(-4), 259, static_cast(-4), 261, static_cast(-4), 263, static_cast(-4), 265, static_cast(-4), 267, static_cast(-4), 269, static_cast(-4), 271, static_cast(-4), 273, static_cast(-4), 275, static_cast(-4), 277, static_cast(-4), 279, static_cast(-4), 281, static_cast(-4), 283, static_cast(-4), 285, static_cast(-4), 287, static_cast(-4), 289, static_cast(-4), 291, static_cast(-4), 293, static_cast(-4), 295, static_cast(-4), 297, static_cast(-4), 299, static_cast(-4), 301, static_cast(-4), 303, static_cast(-4), 305, static_cast(-928), 307, static_cast(-4), 309, static_cast(-4), 311, static_cast(-4), 314, static_cast(-4), 316, static_cast(-4), 318, static_cast(-4), 320, static_cast(-4), 322, static_cast(-4), 324, static_cast(-4), 326, static_cast(-4), 328, static_cast(-4), 329, 5, 331, static_cast(-4), 333, static_cast(-4), 335, static_cast(-4), 337, static_cast(-4), 339, static_cast(-4), 341, static_cast(-4), 343, static_cast(-4), 345, static_cast(-4), 347, static_cast(-4), 349, static_cast(-4), 351, static_cast(-4), 353, static_cast(-4), 355, static_cast(-4), 357, static_cast(-4), 359, static_cast(-4), 361, static_cast(-4), 363, static_cast(-4), 365, static_cast(-4), 367, static_cast(-4), 369, static_cast(-4), 371, static_cast(-4), 373, static_cast(-4), 375, static_cast(-4), 378, static_cast(-4), 380, static_cast(-4), 382, static_cast(-4), 383, static_cast(-1200), 384, 780, 387, static_cast(-4), 389, static_cast(-4), 392, static_cast(-4), 396, static_cast(-4), 402, static_cast(-4), 405, 388, 409, static_cast(-4), 410, 652, 414, 520, 417, static_cast(-4), 419, static_cast(-4), 421, static_cast(-4), 424, static_cast(-4), 429, static_cast(-4), 432, static_cast(-4), 436, static_cast(-4), 438, static_cast(-4), 441, static_cast(-4), 445, static_cast(-4), 447, 224, 453, static_cast(-4), 454, static_cast(-8), 456, static_cast(-4), 457, static_cast(-8), 459, static_cast(-4), 460, static_cast(-8), 462, static_cast(-4), 464, static_cast(-4), 466, static_cast(-4), 468, static_cast(-4), 470, static_cast(-4), 472, static_cast(-4), 474, static_cast(-4), 476, static_cast(-4), 477, static_cast(-316), 479, static_cast(-4), 481, static_cast(-4), 483, static_cast(-4), 485, static_cast(-4), 487, static_cast(-4), 489, static_cast(-4), 491, static_cast(-4), 493, static_cast(-4), 495, static_cast(-4), 496, 9, 498, static_cast(-4), 499, static_cast(-8), 501, static_cast(-4), 505, static_cast(-4), 507, static_cast(-4), 509, static_cast(-4), 511, static_cast(-4), 513, static_cast(-4), 515, static_cast(-4), 517, static_cast(-4), 519, static_cast(-4), 521, static_cast(-4), 523, static_cast(-4), 525, static_cast(-4), 527, static_cast(-4), 529, static_cast(-4), 531, static_cast(-4), 533, static_cast(-4), 535, static_cast(-4), 537, static_cast(-4), 539, static_cast(-4), 541, static_cast(-4), 543, static_cast(-4), 547, static_cast(-4), 549, static_cast(-4), 551, static_cast(-4), 553, static_cast(-4), 555, static_cast(-4), 557, static_cast(-4), 559, static_cast(-4), 561, static_cast(-4), 563, static_cast(-4), 572, static_cast(-4), 578, static_cast(-4), 583, static_cast(-4), 585, static_cast(-4), 587, static_cast(-4), 589, static_cast(-4), 591, static_cast(-4), 595, static_cast(-840), 596, static_cast(-824), 33366, static_cast(-820), 599, static_cast(-820), 601, static_cast(-808), 603, static_cast(-812), 608, static_cast(-820), 611, static_cast(-828), 616, static_cast(-836), 617, static_cast(-844), 619, 42972, 623, static_cast(-844), 626, static_cast(-852), 629, static_cast(-856), 637, 42908, 640, static_cast(-872), 643, static_cast(-872), 648, static_cast(-872), 649, static_cast(-276), 33418, static_cast(-868), 651, static_cast(-868), 652, static_cast(-284), 658, static_cast(-876), 837, 336, 33659, 520, 893, 520, 912, 13, 940, static_cast(-152), 33709, static_cast(-148), 943, static_cast(-148), 944, 17, 33713, static_cast(-128), 961, static_cast(-128), 962, static_cast(-124), 33731, static_cast(-128), 971, static_cast(-128), 972, static_cast(-256), 33741, static_cast(-252), 974, static_cast(-252), 976, static_cast(-248), 977, static_cast(-228), 981, static_cast(-188), 982, static_cast(-216), 985, static_cast(-4), 987, static_cast(-4), 989, static_cast(-4), 991, static_cast(-4), 993, static_cast(-4), 995, static_cast(-4), 997, static_cast(-4), 999, static_cast(-4), 1001, static_cast(-4), 1003, static_cast(-4), 1005, static_cast(-4), 1007, static_cast(-4), 1008, static_cast(-344), 1009, static_cast(-320), 1010, 28, 1013, static_cast(-384), 1016, static_cast(-4), 1019, static_cast(-4), 33840, static_cast(-128), 1103, static_cast(-128), 33872, static_cast(-320), 1119, static_cast(-320), 1121, static_cast(-4), 1123, static_cast(-4), 1125, static_cast(-4), 1127, static_cast(-4), 1129, static_cast(-4), 1131, static_cast(-4), 1133, static_cast(-4), 1135, static_cast(-4), 1137, static_cast(-4), 1139, static_cast(-4), 1141, static_cast(-4), 1143, static_cast(-4), 1145, static_cast(-4), 1147, static_cast(-4), 1149, static_cast(-4), 1151, static_cast(-4), 1153, static_cast(-4), 1163, static_cast(-4), 1165, static_cast(-4), 1167, static_cast(-4), 1169, static_cast(-4), 1171, static_cast(-4), 1173, static_cast(-4), 1175, static_cast(-4), 1177, static_cast(-4), 1179, static_cast(-4), 1181, static_cast(-4), 1183, static_cast(-4), 1185, static_cast(-4), 1187, static_cast(-4), 1189, static_cast(-4), 1191, static_cast(-4), 1193, static_cast(-4), 1195, static_cast(-4), 1197, static_cast(-4), 1199, static_cast(-4), 1201, static_cast(-4), 1203, static_cast(-4), 1205, static_cast(-4), 1207, static_cast(-4), 1209, static_cast(-4), 1211, static_cast(-4), 1213, static_cast(-4), 1215, static_cast(-4), 1218, static_cast(-4), 1220, static_cast(-4), 1222, static_cast(-4), 1224, static_cast(-4), 1226, static_cast(-4), 1228, static_cast(-4), 1230, static_cast(-4), 1231, static_cast(-60), 1233, static_cast(-4), 1235, static_cast(-4), 1237, static_cast(-4), 1239, static_cast(-4), 1241, static_cast(-4), 1243, static_cast(-4), 1245, static_cast(-4), 1247, static_cast(-4), 1249, static_cast(-4), 1251, static_cast(-4), 1253, static_cast(-4), 1255, static_cast(-4), 1257, static_cast(-4), 1259, static_cast(-4), 1261, static_cast(-4), 1263, static_cast(-4), 1265, static_cast(-4), 1267, static_cast(-4), 1269, static_cast(-4), 1271, static_cast(-4), 1273, static_cast(-4), 1275, static_cast(-4), 1277, static_cast(-4), 1279, static_cast(-4), 1281, static_cast(-4), 1283, static_cast(-4), 1285, static_cast(-4), 1287, static_cast(-4), 1289, static_cast(-4), 1291, static_cast(-4), 1293, static_cast(-4), 1295, static_cast(-4), 1297, static_cast(-4), 1299, static_cast(-4), 34145, static_cast(-192), 1414, static_cast(-192), 1415, 21, 7549, 15256, 7681, static_cast(-4), 7683, static_cast(-4), 7685, static_cast(-4), 7687, static_cast(-4), 7689, static_cast(-4), 7691, static_cast(-4), 7693, static_cast(-4), 7695, static_cast(-4), 7697, static_cast(-4), 7699, static_cast(-4), 7701, static_cast(-4), 7703, static_cast(-4), 7705, static_cast(-4), 7707, static_cast(-4), 7709, static_cast(-4), 7711, static_cast(-4), 7713, static_cast(-4), 7715, static_cast(-4), 7717, static_cast(-4), 7719, static_cast(-4), 7721, static_cast(-4), 7723, static_cast(-4), 7725, static_cast(-4), 7727, static_cast(-4), 7729, static_cast(-4), 7731, static_cast(-4), 7733, static_cast(-4), 7735, static_cast(-4), 7737, static_cast(-4), 7739, static_cast(-4), 7741, static_cast(-4), 7743, static_cast(-4), 7745, static_cast(-4), 7747, static_cast(-4), 7749, static_cast(-4), 7751, static_cast(-4), 7753, static_cast(-4), 7755, static_cast(-4), 7757, static_cast(-4), 7759, static_cast(-4), 7761, static_cast(-4), 7763, static_cast(-4), 7765, static_cast(-4), 7767, static_cast(-4), 7769, static_cast(-4), 7771, static_cast(-4), 7773, static_cast(-4), 7775, static_cast(-4), 7777, static_cast(-4), 7779, static_cast(-4), 7781, static_cast(-4), 7783, static_cast(-4), 7785, static_cast(-4), 7787, static_cast(-4), 7789, static_cast(-4), 7791, static_cast(-4), 7793, static_cast(-4), 7795, static_cast(-4), 7797, static_cast(-4), 7799, static_cast(-4), 7801, static_cast(-4), 7803, static_cast(-4), 7805, static_cast(-4), 7807, static_cast(-4), 7809, static_cast(-4), 7811, static_cast(-4), 7813, static_cast(-4), 7815, static_cast(-4), 7817, static_cast(-4), 7819, static_cast(-4), 7821, static_cast(-4), 7823, static_cast(-4), 7825, static_cast(-4), 7827, static_cast(-4), 7829, static_cast(-4), 7830, 25, 7831, 29, 7832, 33, 7833, 37, 7834, 41, 7835, static_cast(-236), 7841, static_cast(-4), 7843, static_cast(-4), 7845, static_cast(-4), 7847, static_cast(-4), 7849, static_cast(-4), 7851, static_cast(-4), 7853, static_cast(-4), 7855, static_cast(-4), 7857, static_cast(-4), 7859, static_cast(-4), 7861, static_cast(-4), 7863, static_cast(-4), 7865, static_cast(-4), 7867, static_cast(-4), 7869, static_cast(-4), 7871, static_cast(-4), 7873, static_cast(-4), 7875, static_cast(-4), 7877, static_cast(-4), 7879, static_cast(-4), 7881, static_cast(-4), 7883, static_cast(-4), 7885, static_cast(-4), 7887, static_cast(-4), 7889, static_cast(-4), 7891, static_cast(-4), 7893, static_cast(-4), 7895, static_cast(-4), 7897, static_cast(-4), 7899, static_cast(-4), 7901, static_cast(-4), 7903, static_cast(-4), 7905, static_cast(-4), 7907, static_cast(-4), 7909, static_cast(-4), 7911, static_cast(-4), 7913, static_cast(-4), 7915, static_cast(-4), 7917, static_cast(-4), 7919, static_cast(-4), 7921, static_cast(-4), 7923, static_cast(-4), 7925, static_cast(-4), 7927, static_cast(-4), 7929, static_cast(-4), 40704, 32, 7943, 32, 40720, 32, 7957, 32, 40736, 32, 7975, 32, 40752, 32, 7991, 32, 40768, 32, 8005, 32, 8016, 45, 8017, 32, 8018, 49, 8019, 32, 8020, 53, 8021, 32, 8022, 57, 8023, 32, 40800, 32, 8039, 32, 40816, 296, 8049, 296, 40818, 344, 8053, 344, 40822, 400, 8055, 400, 40824, 512, 8057, 512, 40826, 448, 8059, 448, 40828, 504, 8061, 504, 8064, 61, 8065, 65, 8066, 69, 8067, 73, 8068, 77, 8069, 81, 8070, 85, 8071, 89, 8072, 93, 8073, 97, 8074, 101, 8075, 105, 8076, 109, 8077, 113, 8078, 117, 8079, 121, 8080, 125, 8081, 129, 8082, 133, 8083, 137, 8084, 141, 8085, 145, 8086, 149, 8087, 153, 8088, 157, 8089, 161, 8090, 165, 8091, 169, 8092, 173, 8093, 177, 8094, 181, 8095, 185, 8096, 189, 8097, 193, 8098, 197, 8099, 201, 8100, 205, 8101, 209, 8102, 213, 8103, 217, 8104, 221, 8105, 225, 8106, 229, 8107, 233, 8108, 237, 8109, 241, 8110, 245, 8111, 249, 40880, 32, 8113, 32, 8114, 253, 8115, 257, 8116, 261, 8118, 265, 8119, 269, 8124, 273, 8126, static_cast(-28820), 8130, 277, 8131, 281, 8132, 285, 8134, 289, 8135, 293, 8140, 297, 40912, 32, 8145, 32, 8146, 301, 8147, 305, 8150, 309, 8151, 313, 40928, 32, 8161, 32, 8162, 317, 8163, 321, 8164, 325, 8165, 28, 8166, 329, 8167, 333, 8178, 337, 8179, 341, 8180, 345, 8182, 349, 8183, 353, 8188, 357, 8526, static_cast(-112), 41328, static_cast(-64), 8575, static_cast(-64), 8580, static_cast(-4), 42192, static_cast(-104), 9449, static_cast(-104), 44080, static_cast(-192), 11358, static_cast(-192), 11361, static_cast(-4), 11365, static_cast(-43180), 11366, static_cast(-43168), 11368, static_cast(-4), 11370, static_cast(-4), 11372, static_cast(-4), 11382, static_cast(-4), 11393, static_cast(-4), 11395, static_cast(-4), 11397, static_cast(-4), 11399, static_cast(-4), 11401, static_cast(-4), 11403, static_cast(-4), 11405, static_cast(-4), 11407, static_cast(-4), 11409, static_cast(-4), 11411, static_cast(-4), 11413, static_cast(-4), 11415, static_cast(-4), 11417, static_cast(-4), 11419, static_cast(-4), 11421, static_cast(-4), 11423, static_cast(-4), 11425, static_cast(-4), 11427, static_cast(-4), 11429, static_cast(-4), 11431, static_cast(-4), 11433, static_cast(-4), 11435, static_cast(-4), 11437, static_cast(-4), 11439, static_cast(-4), 11441, static_cast(-4), 11443, static_cast(-4), 11445, static_cast(-4), 11447, static_cast(-4), 11449, static_cast(-4), 11451, static_cast(-4), 11453, static_cast(-4), 11455, static_cast(-4), 11457, static_cast(-4), 11459, static_cast(-4), 11461, static_cast(-4), 11463, static_cast(-4), 11465, static_cast(-4), 11467, static_cast(-4), 11469, static_cast(-4), 11471, static_cast(-4), 11473, static_cast(-4), 11475, static_cast(-4), 11477, static_cast(-4), 11479, static_cast(-4), 11481, static_cast(-4), 11483, static_cast(-4), 11485, static_cast(-4), 11487, static_cast(-4), 11489, static_cast(-4), 11491, static_cast(-4), 44288, static_cast(-29056), 11557, static_cast(-29056) }; -static const MultiCharacterSpecialCase kToUppercaseMultiStrings1[] = { {2, {70, 70}}, {2, {70, 73}}, {2, {70, 76}}, {3, {70, 70, 73}}, {3, {70, 70, 76}}, {2, {83, 84}}, {2, {83, 84}}, {2, {1348, 1350}}, {2, {1348, 1333}}, {2, {1348, 1339}}, {2, {1358, 1350}}, {2, {1348, 1341}}, {0, {0}} }; +static const uint16_t kToUppercaseTable0[1242] = { 32865, static_cast(-128), 122, static_cast(-128), 181, 2972, 223, 1, 32992, static_cast(-128), 246, static_cast(-128), 33016, static_cast(-128), 254, static_cast(-128), 255, 484, 257, static_cast(-4), 259, static_cast(-4), 261, static_cast(-4), 263, static_cast(-4), 265, static_cast(-4), 267, static_cast(-4), 269, static_cast(-4), 271, static_cast(-4), 273, static_cast(-4), 275, static_cast(-4), 277, static_cast(-4), 279, static_cast(-4), 281, static_cast(-4), 283, static_cast(-4), 285, static_cast(-4), 287, static_cast(-4), 289, static_cast(-4), 291, static_cast(-4), 293, static_cast(-4), 295, static_cast(-4), 297, static_cast(-4), 299, static_cast(-4), 301, static_cast(-4), 303, static_cast(-4), 305, static_cast(-928), 307, static_cast(-4), 309, static_cast(-4), 311, static_cast(-4), 314, static_cast(-4), 316, static_cast(-4), 318, static_cast(-4), 320, static_cast(-4), 322, static_cast(-4), 324, static_cast(-4), 326, static_cast(-4), 328, static_cast(-4), 329, 5, 331, static_cast(-4), 333, static_cast(-4), 335, static_cast(-4), 337, static_cast(-4), 339, static_cast(-4), 341, static_cast(-4), 343, static_cast(-4), 345, static_cast(-4), 347, static_cast(-4), 349, static_cast(-4), 351, static_cast(-4), 353, static_cast(-4), 355, static_cast(-4), 357, static_cast(-4), 359, static_cast(-4), 361, static_cast(-4), 363, static_cast(-4), 365, static_cast(-4), 367, static_cast(-4), 369, static_cast(-4), 371, static_cast(-4), 373, static_cast(-4), 375, static_cast(-4), 378, static_cast(-4), 380, static_cast(-4), 382, static_cast(-4), 383, static_cast(-1200), 384, 780, 387, static_cast(-4), 389, static_cast(-4), 392, static_cast(-4), 396, static_cast(-4), 402, static_cast(-4), 405, 388, 409, static_cast(-4), 410, 652, 414, 520, 417, static_cast(-4), 419, static_cast(-4), 421, static_cast(-4), 424, static_cast(-4), 429, static_cast(-4), 432, static_cast(-4), 436, static_cast(-4), 438, static_cast(-4), 441, static_cast(-4), 445, static_cast(-4), 447, 224, 453, static_cast(-4), 454, static_cast(-8), 456, static_cast(-4), 457, static_cast(-8), 459, static_cast(-4), 460, static_cast(-8), 462, static_cast(-4), 464, static_cast(-4), 466, static_cast(-4), 468, static_cast(-4), 470, static_cast(-4), 472, static_cast(-4), 474, static_cast(-4), 476, static_cast(-4), 477, static_cast(-316), 479, static_cast(-4), 481, static_cast(-4), 483, static_cast(-4), 485, static_cast(-4), 487, static_cast(-4), 489, static_cast(-4), 491, static_cast(-4), 493, static_cast(-4), 495, static_cast(-4), 496, 9, 498, static_cast(-4), 499, static_cast(-8), 501, static_cast(-4), 505, static_cast(-4), 507, static_cast(-4), 509, static_cast(-4), 511, static_cast(-4), 513, static_cast(-4), 515, static_cast(-4), 517, static_cast(-4), 519, static_cast(-4), 521, static_cast(-4), 523, static_cast(-4), 525, static_cast(-4), 527, static_cast(-4), 529, static_cast(-4), 531, static_cast(-4), 533, static_cast(-4), 535, static_cast(-4), 537, static_cast(-4), 539, static_cast(-4), 541, static_cast(-4), 543, static_cast(-4), 547, static_cast(-4), 549, static_cast(-4), 551, static_cast(-4), 553, static_cast(-4), 555, static_cast(-4), 557, static_cast(-4), 559, static_cast(-4), 561, static_cast(-4), 563, static_cast(-4), 572, static_cast(-4), 578, static_cast(-4), 583, static_cast(-4), 585, static_cast(-4), 587, static_cast(-4), 589, static_cast(-4), 591, static_cast(-4), 595, static_cast(-840), 596, static_cast(-824), 33366, static_cast(-820), 599, static_cast(-820), 601, static_cast(-808), 603, static_cast(-812), 608, static_cast(-820), 611, static_cast(-828), 616, static_cast(-836), 617, static_cast(-844), 619, 42972, 623, static_cast(-844), 626, static_cast(-852), 629, static_cast(-856), 637, 42908, 640, static_cast(-872), 643, static_cast(-872), 648, static_cast(-872), 649, static_cast(-276), 33418, static_cast(-868), 651, static_cast(-868), 652, static_cast(-284), 658, static_cast(-876), 837, 336, 33659, 520, 893, 520, 912, 13, 940, static_cast(-152), 33709, static_cast(-148), 943, static_cast(-148), 944, 17, 33713, static_cast(-128), 961, static_cast(-128), 962, static_cast(-124), 33731, static_cast(-128), 971, static_cast(-128), 972, static_cast(-256), 33741, static_cast(-252), 974, static_cast(-252), 976, static_cast(-248), 977, static_cast(-228), 981, static_cast(-188), 982, static_cast(-216), 985, static_cast(-4), 987, static_cast(-4), 989, static_cast(-4), 991, static_cast(-4), 993, static_cast(-4), 995, static_cast(-4), 997, static_cast(-4), 999, static_cast(-4), 1001, static_cast(-4), 1003, static_cast(-4), 1005, static_cast(-4), 1007, static_cast(-4), 1008, static_cast(-344), 1009, static_cast(-320), 1010, 28, 1013, static_cast(-384), 1016, static_cast(-4), 1019, static_cast(-4), 33840, static_cast(-128), 1103, static_cast(-128), 33872, static_cast(-320), 1119, static_cast(-320), 1121, static_cast(-4), 1123, static_cast(-4), 1125, static_cast(-4), 1127, static_cast(-4), 1129, static_cast(-4), 1131, static_cast(-4), 1133, static_cast(-4), 1135, static_cast(-4), 1137, static_cast(-4), 1139, static_cast(-4), 1141, static_cast(-4), 1143, static_cast(-4), 1145, static_cast(-4), 1147, static_cast(-4), 1149, static_cast(-4), 1151, static_cast(-4), 1153, static_cast(-4), 1163, static_cast(-4), 1165, static_cast(-4), 1167, static_cast(-4), 1169, static_cast(-4), 1171, static_cast(-4), 1173, static_cast(-4), 1175, static_cast(-4), 1177, static_cast(-4), 1179, static_cast(-4), 1181, static_cast(-4), 1183, static_cast(-4), 1185, static_cast(-4), 1187, static_cast(-4), 1189, static_cast(-4), 1191, static_cast(-4), 1193, static_cast(-4), 1195, static_cast(-4), 1197, static_cast(-4), 1199, static_cast(-4), 1201, static_cast(-4), 1203, static_cast(-4), 1205, static_cast(-4), 1207, static_cast(-4), 1209, static_cast(-4), 1211, static_cast(-4), 1213, static_cast(-4), 1215, static_cast(-4), 1218, static_cast(-4), 1220, static_cast(-4), 1222, static_cast(-4), 1224, static_cast(-4), 1226, static_cast(-4), 1228, static_cast(-4), 1230, static_cast(-4), 1231, static_cast(-60), 1233, static_cast(-4), 1235, static_cast(-4), 1237, static_cast(-4), 1239, static_cast(-4), 1241, static_cast(-4), 1243, static_cast(-4), 1245, static_cast(-4), 1247, static_cast(-4), 1249, static_cast(-4), 1251, static_cast(-4), 1253, static_cast(-4), 1255, static_cast(-4), 1257, static_cast(-4), 1259, static_cast(-4), 1261, static_cast(-4), 1263, static_cast(-4), 1265, static_cast(-4), 1267, static_cast(-4), 1269, static_cast(-4), 1271, static_cast(-4), 1273, static_cast(-4), 1275, static_cast(-4), 1277, static_cast(-4), 1279, static_cast(-4), 1281, static_cast(-4), 1283, static_cast(-4), 1285, static_cast(-4), 1287, static_cast(-4), 1289, static_cast(-4), 1291, static_cast(-4), 1293, static_cast(-4), 1295, static_cast(-4), 1297, static_cast(-4), 1299, static_cast(-4), 34145, static_cast(-192), 1414, static_cast(-192), 1415, 21, 7549, 15256, 7681, static_cast(-4), 7683, static_cast(-4), 7685, static_cast(-4), 7687, static_cast(-4), 7689, static_cast(-4), 7691, static_cast(-4), 7693, static_cast(-4), 7695, static_cast(-4), 7697, static_cast(-4), 7699, static_cast(-4), 7701, static_cast(-4), 7703, static_cast(-4), 7705, static_cast(-4), 7707, static_cast(-4), 7709, static_cast(-4), 7711, static_cast(-4), 7713, static_cast(-4), 7715, static_cast(-4), 7717, static_cast(-4), 7719, static_cast(-4), 7721, static_cast(-4), 7723, static_cast(-4), 7725, static_cast(-4), 7727, static_cast(-4), 7729, static_cast(-4), 7731, static_cast(-4), 7733, static_cast(-4), 7735, static_cast(-4), 7737, static_cast(-4), 7739, static_cast(-4), 7741, static_cast(-4), 7743, static_cast(-4), 7745, static_cast(-4), 7747, static_cast(-4), 7749, static_cast(-4), 7751, static_cast(-4), 7753, static_cast(-4), 7755, static_cast(-4), 7757, static_cast(-4), 7759, static_cast(-4), 7761, static_cast(-4), 7763, static_cast(-4), 7765, static_cast(-4), 7767, static_cast(-4), 7769, static_cast(-4), 7771, static_cast(-4), 7773, static_cast(-4), 7775, static_cast(-4), 7777, static_cast(-4), 7779, static_cast(-4), 7781, static_cast(-4), 7783, static_cast(-4), 7785, static_cast(-4), 7787, static_cast(-4), 7789, static_cast(-4), 7791, static_cast(-4), 7793, static_cast(-4), 7795, static_cast(-4), 7797, static_cast(-4), 7799, static_cast(-4), 7801, static_cast(-4), 7803, static_cast(-4), 7805, static_cast(-4), 7807, static_cast(-4), 7809, static_cast(-4), 7811, static_cast(-4), 7813, static_cast(-4), 7815, static_cast(-4), 7817, static_cast(-4), 7819, static_cast(-4), 7821, static_cast(-4), 7823, static_cast(-4), 7825, static_cast(-4), 7827, static_cast(-4), 7829, static_cast(-4), 7830, 25, 7831, 29, 7832, 33, 7833, 37, 7834, 41, 7835, static_cast(-236), 7841, static_cast(-4), 7843, static_cast(-4), 7845, static_cast(-4), 7847, static_cast(-4), 7849, static_cast(-4), 7851, static_cast(-4), 7853, static_cast(-4), 7855, static_cast(-4), 7857, static_cast(-4), 7859, static_cast(-4), 7861, static_cast(-4), 7863, static_cast(-4), 7865, static_cast(-4), 7867, static_cast(-4), 7869, static_cast(-4), 7871, static_cast(-4), 7873, static_cast(-4), 7875, static_cast(-4), 7877, static_cast(-4), 7879, static_cast(-4), 7881, static_cast(-4), 7883, static_cast(-4), 7885, static_cast(-4), 7887, static_cast(-4), 7889, static_cast(-4), 7891, static_cast(-4), 7893, static_cast(-4), 7895, static_cast(-4), 7897, static_cast(-4), 7899, static_cast(-4), 7901, static_cast(-4), 7903, static_cast(-4), 7905, static_cast(-4), 7907, static_cast(-4), 7909, static_cast(-4), 7911, static_cast(-4), 7913, static_cast(-4), 7915, static_cast(-4), 7917, static_cast(-4), 7919, static_cast(-4), 7921, static_cast(-4), 7923, static_cast(-4), 7925, static_cast(-4), 7927, static_cast(-4), 7929, static_cast(-4), 40704, 32, 7943, 32, 40720, 32, 7957, 32, 40736, 32, 7975, 32, 40752, 32, 7991, 32, 40768, 32, 8005, 32, 8016, 45, 8017, 32, 8018, 49, 8019, 32, 8020, 53, 8021, 32, 8022, 57, 8023, 32, 40800, 32, 8039, 32, 40816, 296, 8049, 296, 40818, 344, 8053, 344, 40822, 400, 8055, 400, 40824, 512, 8057, 512, 40826, 448, 8059, 448, 40828, 504, 8061, 504, 8064, 61, 8065, 65, 8066, 69, 8067, 73, 8068, 77, 8069, 81, 8070, 85, 8071, 89, 8072, 93, 8073, 97, 8074, 101, 8075, 105, 8076, 109, 8077, 113, 8078, 117, 8079, 121, 8080, 125, 8081, 129, 8082, 133, 8083, 137, 8084, 141, 8085, 145, 8086, 149, 8087, 153, 8088, 157, 8089, 161, 8090, 165, 8091, 169, 8092, 173, 8093, 177, 8094, 181, 8095, 185, 8096, 189, 8097, 193, 8098, 197, 8099, 201, 8100, 205, 8101, 209, 8102, 213, 8103, 217, 8104, 221, 8105, 225, 8106, 229, 8107, 233, 8108, 237, 8109, 241, 8110, 245, 8111, 249, 40880, 32, 8113, 32, 8114, 253, 8115, 257, 8116, 261, 8118, 265, 8119, 269, 8124, 273, 8126, static_cast(-28820), 8130, 277, 8131, 281, 8132, 285, 8134, 289, 8135, 293, 8140, 297, 40912, 32, 8145, 32, 8146, 301, 8147, 305, 8150, 309, 8151, 313, 40928, 32, 8161, 32, 8162, 317, 8163, 321, 8164, 325, 8165, 28, 8166, 329, 8167, 333, 8178, 337, 8179, 341, 8180, 345, 8182, 349, 8183, 353, 8188, 357, 8526, static_cast(-112), 41328, static_cast(-64), 8575, static_cast(-64), 8580, static_cast(-4), 42192, static_cast(-104), 9449, static_cast(-104), 44080, static_cast(-192), 11358, static_cast(-192), 11361, static_cast(-4), 11365, static_cast(-43180), 11366, static_cast(-43168), 11368, static_cast(-4), 11370, static_cast(-4), 11372, static_cast(-4), 11382, static_cast(-4), 11393, static_cast(-4), 11395, static_cast(-4), 11397, static_cast(-4), 11399, static_cast(-4), 11401, static_cast(-4), 11403, static_cast(-4), 11405, static_cast(-4), 11407, static_cast(-4), 11409, static_cast(-4), 11411, static_cast(-4), 11413, static_cast(-4), 11415, static_cast(-4), 11417, static_cast(-4), 11419, static_cast(-4), 11421, static_cast(-4), 11423, static_cast(-4), 11425, static_cast(-4), 11427, static_cast(-4), 11429, static_cast(-4), 11431, static_cast(-4), 11433, static_cast(-4), 11435, static_cast(-4), 11437, static_cast(-4), 11439, static_cast(-4), 11441, static_cast(-4), 11443, static_cast(-4), 11445, static_cast(-4), 11447, static_cast(-4), 11449, static_cast(-4), 11451, static_cast(-4), 11453, static_cast(-4), 11455, static_cast(-4), 11457, static_cast(-4), 11459, static_cast(-4), 11461, static_cast(-4), 11463, static_cast(-4), 11465, static_cast(-4), 11467, static_cast(-4), 11469, static_cast(-4), 11471, static_cast(-4), 11473, static_cast(-4), 11475, static_cast(-4), 11477, static_cast(-4), 11479, static_cast(-4), 11481, static_cast(-4), 11483, static_cast(-4), 11485, static_cast(-4), 11487, static_cast(-4), 11489, static_cast(-4), 11491, static_cast(-4), 44288, static_cast(-29056), 11557, static_cast(-29056) }; // NOLINT +static const MultiCharacterSpecialCase kToUppercaseMultiStrings1[] = { {2, {70, 70}}, {2, {70, 73}}, {2, {70, 76}}, {3, {70, 70, 73}}, {3, {70, 70, 76}}, {2, {83, 84}}, {2, {83, 84}}, {2, {1348, 1350}}, {2, {1348, 1333}}, {2, {1348, 1339}}, {2, {1358, 1350}}, {2, {1348, 1341}}, {0, {0}} }; // NOLINT static const uint16_t kToUppercaseTable1Size = 14; -static const uint16_t kToUppercaseTable1[28] = { 31488, 1, 31489, 5, 31490, 9, 31491, 13, 31492, 17, 31493, 21, 31494, 25, 31507, 29, 31508, 33, 31509, 37, 31510, 41, 31511, 45, 65345, static_cast(-128), 32602, static_cast(-128) }; -static const MultiCharacterSpecialCase kToUppercaseMultiStrings2[] = { {0, {0}} }; +static const uint16_t kToUppercaseTable1[28] = { 31488, 1, 31489, 5, 31490, 9, 31491, 13, 31492, 17, 31493, 21, 31494, 25, 31507, 29, 31508, 33, 31509, 37, 31510, 41, 31511, 45, 65345, static_cast(-128), 32602, static_cast(-128) }; // NOLINT +static const MultiCharacterSpecialCase kToUppercaseMultiStrings2[] = { {0, {0}} }; // NOLINT static const uint16_t kToUppercaseTable2Size = 2; -static const uint16_t kToUppercaseTable2[4] = { 33832, static_cast(-160), 1103, static_cast(-160) }; +static const uint16_t kToUppercaseTable2[4] = { 33832, static_cast(-160), 1103, static_cast(-160) }; // NOLINT int ToUppercase::Convert(uchar c, uchar n, uchar* result, @@ -796,7 +796,7 @@ int ToUppercase::Convert(uchar c, uchar UnicodeData::kMaxCodePoint = 1114109; int UnicodeData::GetByteCount() { - return 0 + (sizeof(uint16_t) * kUppercaseTable0Size) + (sizeof(uint16_t) * kUppercaseTable1Size) + (sizeof(uint16_t) * kUppercaseTable2Size) + (sizeof(uint16_t) * kUppercaseTable3Size) + (sizeof(uint16_t) * kLowercaseTable0Size) + (sizeof(uint16_t) * kLowercaseTable1Size) + (sizeof(uint16_t) * kLowercaseTable2Size) + (sizeof(uint16_t) * kLowercaseTable3Size) + (sizeof(uint16_t) * kLetterTable0Size) + (sizeof(uint16_t) * kLetterTable1Size) + (sizeof(uint16_t) * kLetterTable2Size) + (sizeof(uint16_t) * kLetterTable3Size) + (sizeof(uint16_t) * kLetterTable4Size) + (sizeof(uint16_t) * kLetterTable5Size) + (sizeof(uint16_t) * kSpaceTable0Size) + (sizeof(uint16_t) * kTitlecaseTable0Size) + (sizeof(uint16_t) * kNumberTable0Size) + (sizeof(uint16_t) * kNumberTable1Size) + (sizeof(uint16_t) * kNumberTable2Size) + (sizeof(uint16_t) * kNumberTable3Size) + (sizeof(uint16_t) * kDecimalDigitTable0Size) + (sizeof(uint16_t) * kDecimalDigitTable1Size) + (sizeof(uint16_t) * kDecimalDigitTable2Size) + (sizeof(uint16_t) * kDecimalDigitTable3Size) + (sizeof(uint16_t) * kIdeographicTable0Size) + (sizeof(uint16_t) * kIdeographicTable1Size) + (sizeof(uint16_t) * kIdeographicTable4Size) + (sizeof(uint16_t) * kIdeographicTable5Size) + (sizeof(uint16_t) * kWhiteSpaceTable0Size) + (sizeof(uint16_t) * kHexDigitTable0Size) + (sizeof(uint16_t) * kHexDigitTable1Size) + (sizeof(uint16_t) * kAsciiHexDigitTable0Size) + (sizeof(uint16_t) * kBidiControlTable0Size) + (sizeof(uint16_t) * kJoinControlTable0Size) + (sizeof(uint16_t) * kDashTable0Size) + (sizeof(uint16_t) * kDashTable1Size) + (sizeof(uint16_t) * kHyphenTable0Size) + (sizeof(uint16_t) * kHyphenTable1Size) + (sizeof(uint16_t) * kLineTerminatorTable0Size) + (sizeof(uint16_t) * kCombiningMarkTable0Size) + (sizeof(uint16_t) * kCombiningMarkTable1Size) + (sizeof(uint16_t) * kCombiningMarkTable2Size) + (sizeof(uint16_t) * kCombiningMarkTable3Size) + (sizeof(uint16_t) * kCombiningMarkTable28Size) + (sizeof(uint16_t) * kConnectorPunctuationTable0Size) + (sizeof(uint16_t) * kConnectorPunctuationTable1Size) + (sizeof(uint16_t) * kToLowercaseTable0Size) + (sizeof(uint16_t) * kToLowercaseTable1Size) + (sizeof(uint16_t) * kToLowercaseTable2Size) + (sizeof(uint16_t) * kToUppercaseTable0Size) + (sizeof(uint16_t) * kToUppercaseTable1Size) + (sizeof(uint16_t) * kToUppercaseTable2Size); + return 0 + (sizeof(uint16_t) * kUppercaseTable0Size) + (sizeof(uint16_t) * kUppercaseTable1Size) + (sizeof(uint16_t) * kUppercaseTable2Size) + (sizeof(uint16_t) * kUppercaseTable3Size) + (sizeof(uint16_t) * kLowercaseTable0Size) + (sizeof(uint16_t) * kLowercaseTable1Size) + (sizeof(uint16_t) * kLowercaseTable2Size) + (sizeof(uint16_t) * kLowercaseTable3Size) + (sizeof(uint16_t) * kLetterTable0Size) + (sizeof(uint16_t) * kLetterTable1Size) + (sizeof(uint16_t) * kLetterTable2Size) + (sizeof(uint16_t) * kLetterTable3Size) + (sizeof(uint16_t) * kLetterTable4Size) + (sizeof(uint16_t) * kLetterTable5Size) + (sizeof(uint16_t) * kSpaceTable0Size) + (sizeof(uint16_t) * kTitlecaseTable0Size) + (sizeof(uint16_t) * kNumberTable0Size) + (sizeof(uint16_t) * kNumberTable1Size) + (sizeof(uint16_t) * kNumberTable2Size) + (sizeof(uint16_t) * kNumberTable3Size) + (sizeof(uint16_t) * kDecimalDigitTable0Size) + (sizeof(uint16_t) * kDecimalDigitTable1Size) + (sizeof(uint16_t) * kDecimalDigitTable2Size) + (sizeof(uint16_t) * kDecimalDigitTable3Size) + (sizeof(uint16_t) * kIdeographicTable0Size) + (sizeof(uint16_t) * kIdeographicTable1Size) + (sizeof(uint16_t) * kIdeographicTable4Size) + (sizeof(uint16_t) * kIdeographicTable5Size) + (sizeof(uint16_t) * kWhiteSpaceTable0Size) + (sizeof(uint16_t) * kHexDigitTable0Size) + (sizeof(uint16_t) * kHexDigitTable1Size) + (sizeof(uint16_t) * kAsciiHexDigitTable0Size) + (sizeof(uint16_t) * kBidiControlTable0Size) + (sizeof(uint16_t) * kJoinControlTable0Size) + (sizeof(uint16_t) * kDashTable0Size) + (sizeof(uint16_t) * kDashTable1Size) + (sizeof(uint16_t) * kHyphenTable0Size) + (sizeof(uint16_t) * kHyphenTable1Size) + (sizeof(uint16_t) * kLineTerminatorTable0Size) + (sizeof(uint16_t) * kCombiningMarkTable0Size) + (sizeof(uint16_t) * kCombiningMarkTable1Size) + (sizeof(uint16_t) * kCombiningMarkTable2Size) + (sizeof(uint16_t) * kCombiningMarkTable3Size) + (sizeof(uint16_t) * kCombiningMarkTable28Size) + (sizeof(uint16_t) * kConnectorPunctuationTable0Size) + (sizeof(uint16_t) * kConnectorPunctuationTable1Size) + (sizeof(uint16_t) * kToLowercaseTable0Size) + (sizeof(uint16_t) * kToLowercaseTable1Size) + (sizeof(uint16_t) * kToLowercaseTable2Size) + (sizeof(uint16_t) * kToUppercaseTable0Size) + (sizeof(uint16_t) * kToUppercaseTable1Size) + (sizeof(uint16_t) * kToUppercaseTable2Size); // NOLINT } } // namespace unicode diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc index 5a49f3896..8392c225a 100644 --- a/test/cctest/test-debug.cc +++ b/test/cctest/test-debug.cc @@ -327,7 +327,7 @@ static void PrepareStep(StepAction step_action) { // This function is in namespace v8::internal to be friend with class // v8::internal::Debug. -namespace v8 { namespace internal { +namespace v8 { namespace internal { // NOLINT // Collect the currently debugged functions. Handle GetDebuggedFunctions() { -- 2.34.1