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
Utf8WriterVisitor Class Reference

Public Member Functions

 Utf8WriterVisitor (char *buffer, int capacity, bool skip_capacity_check, bool replace_invalid_utf8)
 
template<typename Char >
void Visit (const Char *chars, const int length)
 
bool IsDone ()
 
void VisitOneByteString (const uint8_t *chars, int length)
 
void VisitTwoByteString (const uint16_t *chars, int length)
 
int CompleteWrite (bool write_null, int *utf16_chars_read_out)
 

Static Public Member Functions

static int WriteEndCharacter (uint16_t character, int last_character, int remaining, char *const buffer, bool replace_invalid_utf8)
 

Detailed Description

Definition at line 4467 of file api.cc.

Constructor & Destructor Documentation

Utf8WriterVisitor ( char *  buffer,
int  capacity,
bool  skip_capacity_check,
bool  replace_invalid_utf8 
)
inline

Definition at line 4469 of file api.cc.

Member Function Documentation

int CompleteWrite ( bool  write_null,
int *  utf16_chars_read_out 
)
inline

Definition at line 4625 of file api.cc.

References NULL.

Referenced by String::WriteUtf8().

bool IsDone ( )
inline

Definition at line 4613 of file api.cc.

void Visit ( const Char *  chars,
const int  length 
)
inline

Definition at line 4529 of file api.cc.

References ASSERT, and STATIC_ASSERT.

void VisitOneByteString ( const uint8_t *  chars,
int  length 
)
inline

Definition at line 4617 of file api.cc.

void VisitTwoByteString ( const uint16_t chars,
int  length 
)
inline

Definition at line 4621 of file api.cc.

static int WriteEndCharacter ( uint16_t  character,
int  last_character,
int  remaining,
char *const  buffer,
bool  replace_invalid_utf8 
)
inlinestatic

Definition at line 4484 of file api.cc.

References ASSERT.


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