Public Types | Public Member Functions

CalculateUTF8Size Class Reference

A character sink (see |copy_string| in nsAlgorithm.h) for computing the number of bytes a UTF-16 would occupy in UTF-8. More...

#include <nsUTF8Utils.h>

List of all members.

Public Types

typedef PRUnichar value_type

Public Member Functions

 CalculateUTF8Size ()
size_t Size () const
void NS_ALWAYS_INLINE write (const value_type *start, PRUint32 N)

Detailed Description

A character sink (see |copy_string| in nsAlgorithm.h) for computing the number of bytes a UTF-16 would occupy in UTF-8.

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


Member Typedef Documentation


Constructor & Destructor Documentation

CalculateUTF8Size::CalculateUTF8Size (  )  [inline]

Member Function Documentation

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

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