v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
unibrow::Mapping< T, size > Class Template Reference

#include <unicode.h>

Collaboration diagram for unibrow::Mapping< T, size >:

Classes

struct  CacheEntry
 

Public Member Functions

 Mapping ()=default
 
int get (uchar c, uchar n, uchar *result)
 

Private Member Functions

int CalculateValue (uchar c, uchar n, uchar *result)
 

Private Attributes

CacheEntry entries_ [kSize]
 

Static Private Attributes

static const int kSize = size
 
static const int kMask = kSize - 1
 

Friends

class Test
 

Detailed Description

template<class T, int size = 256>
class unibrow::Mapping< T, size >

Definition at line 70 of file unicode.h.

Constructor & Destructor Documentation

◆ Mapping()

template<class T , int size = 256>
unibrow::Mapping< T, size >::Mapping ( )
inlinedefault

Member Function Documentation

◆ CalculateValue()

template<class T , int s>
int unibrow::Mapping< T, s >::CalculateValue ( uchar c,
uchar n,
uchar * result )
private

Definition at line 47 of file unicode-inl.h.

◆ get()

template<class T , int s>
int unibrow::Mapping< T, s >::get ( uchar c,
uchar n,
uchar * result )
inline

Definition at line 32 of file unicode-inl.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ Test

template<class T , int size = 256>
friend class Test
friend

Definition at line 76 of file unicode.h.

Member Data Documentation

◆ entries_

template<class T , int size = 256>
CacheEntry unibrow::Mapping< T, size >::entries_[kSize]
private

Definition at line 88 of file unicode.h.

◆ kMask

template<class T , int size = 256>
const int unibrow::Mapping< T, size >::kMask = kSize - 1
staticprivate

Definition at line 87 of file unicode.h.

◆ kSize

template<class T , int size = 256>
const int unibrow::Mapping< T, size >::kSize = size
staticprivate

Definition at line 86 of file unicode.h.


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