V8 Project
unibrow::LineTerminator Struct Reference

#include <unicode.h>

+ Collaboration diagram for unibrow::LineTerminator:

Static Public Member Functions

static bool Is (uchar c)
 

Detailed Description

Definition at line 212 of file unicode.h.

Member Function Documentation

◆ Is()

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

Definition at line 755 of file unicode.cc.

755  {
756  int chunk_index = c >> 13;
757  switch (chunk_index) {
758  case 0: return LookupPredicate(kLineTerminatorTable0,
760  c);
761  case 1: return LookupPredicate(kLineTerminatorTable1,
763  c);
764  default: return false;
765  }
766 }
static const uint16_t kLineTerminatorTable0Size
Definition: unicode.cc:749
static const int32_t kLineTerminatorTable1[2]
Definition: unicode.cc:753
static const uint16_t kLineTerminatorTable1Size
Definition: unicode.cc:752
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 kLineTerminatorTable0[2]
Definition: unicode.cc:750

References unibrow::kLineTerminatorTable0, unibrow::kLineTerminatorTable0Size, unibrow::kLineTerminatorTable1, unibrow::kLineTerminatorTable1Size, and unibrow::LookupPredicate().

Referenced by v8::internal::WhiteSpaceOrLineTerminator::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: