V8 Project
unibrow::Lowercase Struct Reference

#include <unicode.h>

+ Collaboration diagram for unibrow::Lowercase:

Static Public Member Functions

static bool Is (uchar c)
 

Detailed Description

Definition at line 200 of file unicode.h.

Member Function Documentation

◆ Is()

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

Definition at line 533 of file unicode.cc.

533  {
534  int chunk_index = c >> 13;
535  switch (chunk_index) {
536  case 0: return LookupPredicate(kLowercaseTable0,
538  c);
539  case 1: return LookupPredicate(kLowercaseTable1,
541  c);
542  case 5: return LookupPredicate(kLowercaseTable5,
544  c);
545  case 7: return LookupPredicate(kLowercaseTable7,
547  c);
548  default: return false;
549  }
550 }
static const int32_t kLowercaseTable5[93]
Definition: unicode.cc:517
static const uint16_t kLowercaseTable7Size
Definition: unicode.cc:530
static const uint16_t kLowercaseTable5Size
Definition: unicode.cc:516
static const uint16_t kLowercaseTable1Size
Definition: unicode.cc:503
static const uint16_t kLowercaseTable0Size
Definition: unicode.cc:443
static const int32_t kLowercaseTable1[84]
Definition: unicode.cc:504
static const int32_t kLowercaseTable0[463]
Definition: unicode.cc:444
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 kLowercaseTable7[6]
Definition: unicode.cc:531

References unibrow::kLowercaseTable0, unibrow::kLowercaseTable0Size, unibrow::kLowercaseTable1, unibrow::kLowercaseTable1Size, unibrow::kLowercaseTable5, unibrow::kLowercaseTable5Size, unibrow::kLowercaseTable7, unibrow::kLowercaseTable7Size, and unibrow::LookupPredicate().

+ Here is the call graph for this function:

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