V8 Project
unibrow::Letter Struct Reference

#include <unicode.h>

+ Collaboration diagram for unibrow::Letter:

Static Public Member Functions

static bool Is (uchar c)
 

Detailed Description

Definition at line 203 of file unicode.h.

Member Function Documentation

◆ Is()

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

Definition at line 658 of file unicode.cc.

658  {
659  int chunk_index = c >> 13;
660  switch (chunk_index) {
661  case 0: return LookupPredicate(kLetterTable0,
663  c);
664  case 1: return LookupPredicate(kLetterTable1,
666  c);
667  case 2: return LookupPredicate(kLetterTable2,
669  c);
670  case 3: return LookupPredicate(kLetterTable3,
672  c);
673  case 4: return LookupPredicate(kLetterTable4,
675  c);
676  case 5: return LookupPredicate(kLetterTable5,
678  c);
679  case 6: return LookupPredicate(kLetterTable6,
681  c);
682  case 7: return LookupPredicate(kLetterTable7,
684  c);
685  default: return false;
686  }
687 }
static const uint16_t kLetterTable1Size
Definition: unicode.cc:612
static const int32_t kLetterTable1[87]
Definition: unicode.cc:613
static const int32_t kLetterTable7[48]
Definition: unicode.cc:651
static const uint16_t kLetterTable6Size
Definition: unicode.cc:647
static const uint16_t kLetterTable2Size
Definition: unicode.cc:625
static const int32_t kLetterTable0[435]
Definition: unicode.cc:556
static const int32_t kLetterTable6[6]
Definition: unicode.cc:648
static const int32_t kLetterTable5[88]
Definition: unicode.cc:635
static const uint16_t kLetterTable7Size
Definition: unicode.cc:650
static const uint16_t kLetterTable4Size
Definition: unicode.cc:631
static const int32_t kLetterTable2[4]
Definition: unicode.cc:626
static const uint16_t kLetterTable0Size
Definition: unicode.cc:555
static const int32_t kLetterTable4[2]
Definition: unicode.cc:632
static const uint16_t kLetterTable3Size
Definition: unicode.cc:628
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 kLetterTable5Size
Definition: unicode.cc:634
static const int32_t kLetterTable3[2]
Definition: unicode.cc:629

References unibrow::kLetterTable0, unibrow::kLetterTable0Size, unibrow::kLetterTable1, unibrow::kLetterTable1Size, unibrow::kLetterTable2, unibrow::kLetterTable2Size, unibrow::kLetterTable3, unibrow::kLetterTable3Size, unibrow::kLetterTable4, unibrow::kLetterTable4Size, unibrow::kLetterTable5, unibrow::kLetterTable5Size, unibrow::kLetterTable6, unibrow::kLetterTable6Size, unibrow::kLetterTable7, unibrow::kLetterTable7Size, and unibrow::LookupPredicate().

Referenced by v8::internal::IdentifierStart::Is(), and unibrow::LookupMapping().

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