Flutter Engine
The Flutter Engine
Static Public Member Functions | Static Public Attributes | List of all members
unibrow::CanonicalizationRange Struct Reference

#include <unibrow.h>

Static Public Member Functions

static intptr_t Convert (int32_t c, int32_t n, int32_t *result, bool *allow_caching_ptr)
 

Static Public Attributes

static constexpr intptr_t kMaxWidth = 1
 

Detailed Description

Definition at line 62 of file unibrow.h.

Member Function Documentation

◆ Convert()

intptr_t unibrow::CanonicalizationRange::Convert ( int32_t  c,
int32_t  n,
int32_t *  result,
bool *  allow_caching_ptr 
)
static

Definition at line 1824 of file unibrow.cc.

1827 {
1828 intptr_t chunk_index = c >> 13;
1829 switch (chunk_index) {
1830 case 0:
1831 return LookupMapping<false>(
1833 kCanonicalizationRangeMultiStrings0, c, n, result, allow_caching_ptr);
1834 case 1:
1835 return LookupMapping<false>(
1837 kCanonicalizationRangeMultiStrings1, c, n, result, allow_caching_ptr);
1838 case 7:
1839 return LookupMapping<false>(
1841 kCanonicalizationRangeMultiStrings7, c, n, result, allow_caching_ptr);
1842 default:
1843 return 0;
1844 }
1845}
GAsyncResult * result
static constexpr uint16_t kCanonicalizationRangeTable7Size
Definition: unibrow.cc:1818
static constexpr int32_t kCanonicalizationRangeTable7[8]
Definition: unibrow.cc:1819
static constexpr int32_t kCanonicalizationRangeTable0[140]
Definition: unibrow.cc:1800
static const MultiCharacterSpecialCase< 1 > kCanonicalizationRangeMultiStrings7[1]
Definition: unibrow.cc:1816
static constexpr uint16_t kCanonicalizationRangeTable0Size
Definition: unibrow.cc:1799
static const MultiCharacterSpecialCase< 1 > kCanonicalizationRangeMultiStrings1[1]
Definition: unibrow.cc:1810
static constexpr int32_t kCanonicalizationRangeTable1[28]
Definition: unibrow.cc:1813
static constexpr uint16_t kCanonicalizationRangeTable1Size
Definition: unibrow.cc:1812
static const MultiCharacterSpecialCase< 1 > kCanonicalizationRangeMultiStrings0[1]
Definition: unibrow.cc:1797

Member Data Documentation

◆ kMaxWidth

constexpr intptr_t unibrow::CanonicalizationRange::kMaxWidth = 1
staticconstexpr

Definition at line 63 of file unibrow.h.


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