Public Types | Public Member Functions

ConvertUTF16toUTF8 Class Reference

A character sink (see |copy_string| in nsAlgorithm.h) for converting UTF-16 to UTF-8. More...

#include <nsUTF8Utils.h>

List of all members.

Public Types

typedef PRUnichar value_type
typedef char buffer_type

Public Member Functions

 ConvertUTF16toUTF8 (buffer_type *aBuffer)
size_t Size () const
void NS_ALWAYS_INLINE write (const value_type *start, PRUint32 N)
void write_terminator ()

Detailed Description

A character sink (see |copy_string| in nsAlgorithm.h) for converting UTF-16 to UTF-8.

Treats invalid UTF-16 data as 0xFFFD (0xEFBFBD in UTF-8).


Member Typedef Documentation


Constructor & Destructor Documentation

ConvertUTF16toUTF8::ConvertUTF16toUTF8 ( buffer_type aBuffer  )  [inline]

Member Function Documentation

size_t ConvertUTF16toUTF8::Size (  )  const [inline]
void NS_ALWAYS_INLINE ConvertUTF16toUTF8::write ( const value_type start,
PRUint32  N 
) [inline]
void ConvertUTF16toUTF8::write_terminator (  )  [inline]

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