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

#include <unicode-decoder.h>

Collaboration diagram for v8::internal::Utf8DecoderBase< Decoder >:

Public Types

enum class  Encoding : uint8_t { kAscii , kLatin1 , kUtf16 , kInvalid }
 

Public Member Functions

bool is_invalid () const
 
bool is_ascii () const
 
bool is_one_byte () const
 
int utf16_length () const
 
int non_ascii_start () const
 
template<typename Char >
void Decode (Char *out, base::Vector< const uint8_t > data)
 

Protected Member Functions

 Utf8DecoderBase (base::Vector< const uint8_t > data)
 

Protected Attributes

Encoding encoding_
 
int non_ascii_start_
 
int utf16_length_
 

Detailed Description

template<class Decoder>
class v8::internal::Utf8DecoderBase< Decoder >

Definition at line 52 of file unicode-decoder.h.

Member Enumeration Documentation

◆ Encoding

template<class Decoder >
enum class v8::internal::Utf8DecoderBase::Encoding : uint8_t
strong
Enumerator
kAscii 
kLatin1 
kUtf16 
kInvalid 

Definition at line 54 of file unicode-decoder.h.

Constructor & Destructor Documentation

◆ Utf8DecoderBase()

template<class Decoder >
v8::internal::Utf8DecoderBase< Decoder >::Utf8DecoderBase ( base::Vector< const uint8_t > data)
explicitprotected

Definition at line 60 of file unicode-decoder.cc.

Here is the call graph for this function:

Member Function Documentation

◆ Decode()

template<class Decoder >
template<typename Char >
void v8::internal::Utf8DecoderBase< Decoder >::Decode ( Char * out,
base::Vector< const uint8_t > data )

Definition at line 130 of file unicode-decoder.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_ascii()

template<class Decoder >
bool v8::internal::Utf8DecoderBase< Decoder >::is_ascii ( ) const
inline

Definition at line 59 of file unicode-decoder.h.

Here is the caller graph for this function:

◆ is_invalid()

template<class Decoder >
bool v8::internal::Utf8DecoderBase< Decoder >::is_invalid ( ) const
inline

Definition at line 56 of file unicode-decoder.h.

Here is the caller graph for this function:

◆ is_one_byte()

template<class Decoder >
bool v8::internal::Utf8DecoderBase< Decoder >::is_one_byte ( ) const
inline

Definition at line 60 of file unicode-decoder.h.

Here is the caller graph for this function:

◆ non_ascii_start()

template<class Decoder >
int v8::internal::Utf8DecoderBase< Decoder >::non_ascii_start ( ) const
inline

Definition at line 65 of file unicode-decoder.h.

Here is the call graph for this function:

◆ utf16_length()

template<class Decoder >
int v8::internal::Utf8DecoderBase< Decoder >::utf16_length ( ) const
inline

Definition at line 61 of file unicode-decoder.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ encoding_

template<class Decoder >
Encoding v8::internal::Utf8DecoderBase< Decoder >::encoding_
protected

Definition at line 75 of file unicode-decoder.h.

◆ non_ascii_start_

template<class Decoder >
int v8::internal::Utf8DecoderBase< Decoder >::non_ascii_start_
protected

Definition at line 76 of file unicode-decoder.h.

◆ utf16_length_

template<class Decoder >
int v8::internal::Utf8DecoderBase< Decoder >::utf16_length_
protected

Definition at line 77 of file unicode-decoder.h.


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