V8 Project
unibrow::Number Struct Reference

#include <unicode.h>

+ Collaboration diagram for unibrow::Number:

Static Public Member Functions

static bool Is (uchar c)
 

Detailed Description

Definition at line 206 of file unicode.h.

Member Function Documentation

◆ Is()

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

Definition at line 708 of file unicode.cc.

708  {
709  int chunk_index = c >> 13;
710  switch (chunk_index) {
711  case 0: return LookupPredicate(kNumberTable0,
713  c);
714  case 5: return LookupPredicate(kNumberTable5,
716  c);
717  case 7: return LookupPredicate(kNumberTable7,
719  c);
720  default: return false;
721  }
722 }
static const int32_t kNumberTable0[56]
Definition: unicode.cc:693
static const int32_t kNumberTable5[12]
Definition: unicode.cc:702
static const int32_t kNumberTable7[2]
Definition: unicode.cc:706
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 kNumberTable0Size
Definition: unicode.cc:692
static const uint16_t kNumberTable7Size
Definition: unicode.cc:705
static const uint16_t kNumberTable5Size
Definition: unicode.cc:701

References unibrow::kNumberTable0, unibrow::kNumberTable0Size, unibrow::kNumberTable5, unibrow::kNumberTable5Size, unibrow::kNumberTable7, unibrow::kNumberTable7Size, 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: