V8 Project
unibrow::Uppercase Struct Reference

#include <unicode.h>

+ Collaboration diagram for unibrow::Uppercase:

Static Public Member Functions

static bool Is (uchar c)
 

Detailed Description

Definition at line 197 of file unicode.h.

Member Function Documentation

◆ Is()

bool unibrow::Uppercase::Is ( uchar  c)
static

Definition at line 421 of file unicode.cc.

421  {
422  int chunk_index = c >> 13;
423  switch (chunk_index) {
424  case 0: return LookupPredicate(kUppercaseTable0,
426  c);
427  case 1: return LookupPredicate(kUppercaseTable1,
429  c);
430  case 5: return LookupPredicate(kUppercaseTable5,
432  c);
433  case 7: return LookupPredicate(kUppercaseTable7,
435  c);
436  default: return false;
437  }
438 }
static const int32_t kUppercaseTable0[450]
Definition: unicode.cc:333
static const uint16_t kUppercaseTable1Size
Definition: unicode.cc:391
static const uint16_t kUppercaseTable7Size
Definition: unicode.cc:418
static const uint16_t kUppercaseTable5Size
Definition: unicode.cc:404
static const int32_t kUppercaseTable7[2]
Definition: unicode.cc:419
static const int32_t kUppercaseTable5[91]
Definition: unicode.cc:405
static const int32_t kUppercaseTable1[86]
Definition: unicode.cc:392
static bool LookupPredicate(const int32_t *table, uint16_t size, uchar chr)
Look up a character in the unicode table using a mix of binary and interpolation search.
Definition: unicode.cc:53
static const uint16_t kUppercaseTable0Size
Definition: unicode.cc:332

References unibrow::kUppercaseTable0, unibrow::kUppercaseTable0Size, unibrow::kUppercaseTable1, unibrow::kUppercaseTable1Size, unibrow::kUppercaseTable5, unibrow::kUppercaseTable5Size, unibrow::kUppercaseTable7, unibrow::kUppercaseTable7Size, and unibrow::LookupPredicate().

Referenced by v8::internal::FuncNameInferrer::PushEnclosingName().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this struct was generated from the following files: