Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

NS_ConvertUTF16toUTF8 Class Reference

#include <nsString.h>

Inheritance diagram for NS_ConvertUTF16toUTF8:

List of all members.


Detailed Description

A helper class that converts a UTF-16 string to UTF-8

Definition at line 141 of file nsString.h.


Public Types

typedef nsACString abstract_string_type
typedef char char_type
typedef PRUint32 index_type
typedef NS_ConvertUTF16toUTF8 self_type
typedef PRUint32 size_type

Public Member Functions

void Adopt (const char_type *aData, size_type aLength=PR_UINT32_MAX)
const char_type * get () const
 NS_ConvertUTF16toUTF8 (const PRUnichar *aData, PRUint32 aLength=PR_UINT32_MAX)
 NS_ConvertUTF16toUTF8 (const nsAString &aStr)
 NS_ConvertUTF16toUTF8 (const nsAString &aString)
 NS_ConvertUTF16toUTF8 (const PRUnichar *aString, PRUint32 aLength)
 NS_ConvertUTF16toUTF8 (const PRUnichar *aString)
 NS_HIDDEN_ (void) Assign(const char_type *aData
 NS_HIDDEN_ (void) Assign(const self_type &aString)
 NS_HIDDEN_ (PRBool) IsEmpty() const
 NS_HIDDEN_ (size_type) Length() const
 NS_HIDDEN_ (PRBool) SetLength(PRUint32 aLen)
 NS_HIDDEN_ (char_type *) BeginWriting()
 NS_HIDDEN_ (const char_type *) EndReading() const
 NS_HIDDEN_ (const char_type *) BeginReading() const

Public Attributes

size_type aLength

Private Member Functions

 NS_ConvertUTF16toUTF8 (char)
self_type & operator= (const self_type &aString)

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

Generated by  Doxygen 1.6.0   Back to index