Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

NS_LossyConvertUTF16toASCII Class Reference

#include <nsString.h>

Inheritance diagram for NS_LossyConvertUTF16toASCII:

List of all members.


Detailed Description

A helper class that converts a UTF-16 string to ASCII in a lossy manner

Definition at line 1021 of file nsStringAPI.h.


Public Types

typedef nsACString abstract_string_type
typedef char char_type
typedef PRInt32(* ComparatorFunc )(const char_type *a, const char_type *b, PRUint32 length)
typedef PRUint32 index_type
typedef NS_LossyConvertUTF16toASCII 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_HIDDEN_ (PRInt32) ToInteger(nsresult *aErrorCode
 NS_HIDDEN_ (void) AppendInt(int aInt
 NS_HIDDEN_ (PRInt32) RFindChar(char_type aChar) const
 NS_HIDDEN_ (PRInt32) FindChar(char_type aChar
 NS_HIDDEN_ (PRInt32) RFind(const char_type *aStr
 NS_HIDDEN_ (PRInt32) RFind(const char_type *aStr
 NS_HIDDEN_ (PRInt32) RFind(const self_type &aStr
 NS_HIDDEN_ (PRInt32) Find(const char_type *aStr
 NS_HIDDEN_ (PRInt32) Find(const char_type *aStr
 NS_HIDDEN_ (PRBool) operator<
 NS_HIDDEN_ (PRBool) operator<(const char_type *other) const
 NS_HIDDEN_ (PRBool) operator<(const self_type &other) const
 NS_HIDDEN_ (PRBool) Equals(const self_type &other
 NS_HIDDEN_ (PRBool) Equals(const char_type *other
 NS_HIDDEN_ (PRInt32) Compare(const self_type &other
 NS_HIDDEN_ (PRInt32) Compare(const char_type *other
 NS_HIDDEN_ (void) Trim(const char *aSet
 NS_HIDDEN_ (void) StripWhitespace()
 NS_HIDDEN_ (void) Assign(const char_type *aData
 NS_HIDDEN_ (void) Assign(const self_type &aString)
 NS_HIDDEN_ (PRBool) IsVoid() const
 NS_HIDDEN_ (void) SetIsVoid(PRBool val)
 NS_HIDDEN_ (PRBool) IsEmpty() const
 NS_HIDDEN_ (size_type) Length() const
 NS_HIDDEN_ (PRBool) SetLength(PRUint32 aLen)
 NS_HIDDEN_ (char_type *) EndWriting()
 NS_HIDDEN_ (char_type *) BeginWriting(PRUint32 aLen
 NS_HIDDEN_ (PRUint32) BeginWriting(char_type **begin
 NS_HIDDEN_ (char_type) First() const
 NS_HIDDEN_ (char_type) operator[](PRUint32 aPos) const
 NS_HIDDEN_ (char_type) CharAt(PRUint32 aPos) const
 NS_HIDDEN_ (const char_type *) EndReading() const
 NS_HIDDEN_ (const char_type *) BeginReading() const
 NS_HIDDEN_ (PRUint32) BeginReading(const char_type **begin
 NS_LossyConvertUTF16toASCII (const nsAString &aString)
 NS_LossyConvertUTF16toASCII (const PRUnichar *aString, PRUint32 aLength)
 NS_LossyConvertUTF16toASCII (const PRUnichar *aString)
 NS_LossyConvertUTF16toASCII (const PRUnichar *aData, PRUint32 aLength=PR_UINT32_MAX)
 NS_LossyConvertUTF16toASCII (const nsAString &aStr)

Static Public Member Functions

static NS_HIDDEN_ (PRInt32) DefaultComparator(const char_type *a

Public Attributes

PRBool aLeading = PR_TRUE
PRInt32 aLen
PRUint32 aLen
size_type aLength
PRUint32 aOffset = 0) const
PRUint32 aRadix = 10) const
PRInt32 aRadix = 10)
PRBool PRBool aTrailing = PR_TRUE)
static const char_type * b
PRInt32 ComparatorFunc c = DefaultComparator) const
PRUint32 ComparatorFunc c = DefaultComparator) const
ComparatorFunc c = DefaultComparator ) const
char_type ** end = nsnull
const char_type ** end = nsnull) const
static const char_type PRUint32 length
char_type PRUint32 newSize = PR_UINT32_MAX)

Private Member Functions

 NS_LossyConvertUTF16toASCII (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