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

nsString Class Reference

#include <nsStringAPI.h>

Inheritance diagram for nsString:

nsStringContainer NS_ConvertASCIItoUTF16 NS_ConvertASCIItoUTF16 nsCheapString nsDependentString

List of all members.


Detailed Description

basic strings

Definition at line 1126 of file nsStringAPI.h.


Public Types

typedef nsAString abstract_string_type
typedef PRUnichar char_type
typedef PRUint32 index_type
typedef nsString 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_ (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
 nsString (const char_type *aData, size_type aLength=PR_UINT32_MAX)
 nsString (const abstract_string_type &aReadable)
 nsString (const self_type &aString)
self_type & operator= (char_type aChar)
self_type & operator= (const char_type *aPtr)
self_type & operator= (const abstract_string_type &aReadable)
self_type & operator= (const self_type &aString)

Public Attributes

size_type aLength

Protected Member Functions

 nsString (const char_type *aData, size_type aLength, PRUint32 aFlags)

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

Generated by  Doxygen 1.6.0   Back to index