Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
unibrow::Letter Struct Reference

#include <unibrow.h>

Static Public Member Functions

static bool Is (int32_t c)
 

Detailed Description

Definition at line 45 of file unibrow.h.

Member Function Documentation

◆ Is()

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

Definition at line 357 of file unibrow.cc.

357 {
358 intptr_t chunk_index = c >> 13;
359 switch (chunk_index) {
360 case 0: return LookupPredicate(kLetterTable0,
362 c);
363 case 1: return LookupPredicate(kLetterTable1,
365 c);
366 case 2: return LookupPredicate(kLetterTable2,
368 c);
369 case 3: return LookupPredicate(kLetterTable3,
371 c);
372 case 4: return LookupPredicate(kLetterTable4,
374 c);
375 case 5: return LookupPredicate(kLetterTable5,
377 c);
378 case 6: return LookupPredicate(kLetterTable6,
380 c);
381 case 7: return LookupPredicate(kLetterTable7,
383 c);
384 default: return false;
385 }
386}
static constexpr uint16_t kLetterTable0Size
Definition unibrow.cc:187
static constexpr int32_t kLetterTable6[6]
Definition unibrow.cc:347
static constexpr uint16_t kLetterTable7Size
Definition unibrow.cc:349
static constexpr uint16_t kLetterTable5Size
Definition unibrow.cc:319
static constexpr int32_t kLetterTable5[100]
Definition unibrow.cc:320
static constexpr int32_t kLetterTable3[2]
Definition unibrow.cc:314
static constexpr int32_t kLetterTable1[87]
Definition unibrow.cc:298
static constexpr uint16_t kLetterTable2Size
Definition unibrow.cc:310
static constexpr uint16_t kLetterTable6Size
Definition unibrow.cc:346
static bool LookupPredicate(const int32_t *table, uint16_t size, int32_t chr)
Definition unibrow.cc:48
static constexpr int32_t kLetterTable4[2]
Definition unibrow.cc:317
static constexpr uint16_t kLetterTable1Size
Definition unibrow.cc:297
static constexpr uint16_t kLetterTable3Size
Definition unibrow.cc:313
static constexpr int32_t kLetterTable0[431]
Definition unibrow.cc:188
static constexpr uint16_t kLetterTable4Size
Definition unibrow.cc:316
static constexpr int32_t kLetterTable7[48]
Definition unibrow.cc:350
static constexpr int32_t kLetterTable2[4]
Definition unibrow.cc:311

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