v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utf8Decoder< kBufferSize > Class Template Reference

#include <unicode.h>

Inheritance diagram for Utf8Decoder< kBufferSize >:
Collaboration diagram for Utf8Decoder< kBufferSize >:

Public Member Functions

 Utf8Decoder ()
 
 Utf8Decoder (const char *stream, unsigned length)
 
void Reset (const char *stream, unsigned length)
 
unsigned WriteUtf16 (uint16_t *data, unsigned length) const
 
- Public Member Functions inherited from Utf8DecoderBase
 Utf8DecoderBase ()
 
 Utf8DecoderBase (uint16_t *buffer, unsigned buffer_length, const uint8_t *stream, unsigned stream_length)
 
unsigned Utf16Length () const
 

Additional Inherited Members

- Protected Member Functions inherited from Utf8DecoderBase
void Reset (uint16_t *buffer, unsigned buffer_length, const uint8_t *stream, unsigned stream_length)
 
- Static Protected Member Functions inherited from Utf8DecoderBase
static void WriteUtf16Slow (const uint8_t *stream, uint16_t *data, unsigned length)
 
- Protected Attributes inherited from Utf8DecoderBase
const uint8_t * unbuffered_start_
 
unsigned utf16_length_
 
bool last_byte_of_buffer_unused_
 

Detailed Description

template<unsigned kBufferSize>
class unibrow::Utf8Decoder< kBufferSize >

Definition at line 209 of file unicode.h.

Constructor & Destructor Documentation

Utf8Decoder ( )
inline

Definition at line 211 of file unicode.h.

Utf8Decoder ( const char *  stream,
unsigned  length 
)
inline

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

Member Function Documentation

void Reset ( const char *  stream,
unsigned  length 
)
inline

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

References Utf8DecoderBase::Reset().

unsigned WriteUtf16 ( uint16_t data,
unsigned  length 
) const
inline

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

References ASSERT, OS::MemCopy(), and NULL.


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