V8 Project
unibrow::CombiningMark Struct Reference

#include <unicode.h>

+ Collaboration diagram for unibrow::CombiningMark:

Static Public Member Functions

static bool Is (uchar c)
 

Detailed Description

Definition at line 215 of file unicode.h.

Member Function Documentation

◆ Is()

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

Definition at line 821 of file unicode.cc.

821  {
822  int chunk_index = c >> 13;
823  switch (chunk_index) {
824  case 0: return LookupPredicate(kCombiningMarkTable0,
826  c);
827  case 1: return LookupPredicate(kCombiningMarkTable1,
829  c);
830  case 5: return LookupPredicate(kCombiningMarkTable5,
832  c);
833  case 7: return LookupPredicate(kCombiningMarkTable7,
835  c);
836  default: return false;
837  }
838 }
static const uint16_t kCombiningMarkTable7Size
Definition: unicode.cc:818
static const int32_t kCombiningMarkTable7[5]
Definition: unicode.cc:819
static const int32_t kCombiningMarkTable0[258]
Definition: unicode.cc:772
static const uint16_t kCombiningMarkTable1Size
Definition: unicode.cc:806
static const uint16_t kCombiningMarkTable5Size
Definition: unicode.cc:810
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 int32_t kCombiningMarkTable5[47]
Definition: unicode.cc:811
static const uint16_t kCombiningMarkTable0Size
Definition: unicode.cc:771
static const int32_t kCombiningMarkTable1[14]
Definition: unicode.cc:807

References unibrow::kCombiningMarkTable0, unibrow::kCombiningMarkTable0Size, unibrow::kCombiningMarkTable1, unibrow::kCombiningMarkTable1Size, unibrow::kCombiningMarkTable5, unibrow::kCombiningMarkTable5Size, unibrow::kCombiningMarkTable7, unibrow::kCombiningMarkTable7Size, and unibrow::LookupPredicate().

Referenced by v8::internal::IdentifierPart::Is().

+ 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: