Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Public Attributes | Private Attributes
nsStringContainer Class Reference

Below we define nsStringContainer and nsCStringContainer. More...

#include <nsStringAPI.h>

Inheritance diagram for nsStringContainer:
Inheritance graph
[legend]
Collaboration diagram for nsStringContainer:
Collaboration graph
[legend]

List of all members.

Public Types

typedef PRUnichar char_type
typedef nsAString_external self_type
typedef PRUint32 size_type
typedef PRUint32 index_type

Public Member Functions

 nsStringContainer ()
 NS_HIDDEN_ (const char_type *) BeginReading() const
 NS_HIDDEN_ (const char_type *) EndReading() const
 NS_HIDDEN_ (char_type *) BeginWriting()
 NS_HIDDEN_ (PRBool) SetLength(PRUint32 aLen)
 NS_HIDDEN_ (size_type) Length() const
 NS_HIDDEN_ (PRBool) IsEmpty() const
 NS_HIDDEN_ (void) Assign(const self_type &aString)
 NS_HIDDEN_ (void) Assign(const char_type *aData

Public Attributes

size_type aLength

Private Attributes

voidd1
PRUint32 d2
voidd3

Detailed Description

Below we define nsStringContainer and nsCStringContainer.

These classes have unspecified structure. In most cases, your code should use nsEmbedString instead of these classes; however, if you prefer C-style programming, then look no further...

Definition at line 1074 of file nsStringAPI.h.


Member Typedef Documentation

Definition at line 836 of file nsStringAPI.h.

Definition at line 839 of file nsStringAPI.h.

Definition at line 838 of file nsStringAPI.h.


Constructor & Destructor Documentation

Definition at line 1082 of file nsStringAPI.h.

{} // MSVC6 needs this

Member Function Documentation

nsAString_external::NS_HIDDEN_ ( const char_type ) const [inline, inherited]

Definition at line 841 of file nsStringAPI.h.

  {
    const char_type *data;
    NS_StringGetData(*this, &data);
    return data;
  }

Here is the call graph for this function:

nsAString_external::NS_HIDDEN_ ( const char_type ) const [inline, inherited]

Definition at line 848 of file nsStringAPI.h.

  {
    const char_type *data;
    PRUint32 len = NS_StringGetData(*this, &data);
    return data + len;
  }

Here is the call graph for this function:

nsAString_external::NS_HIDDEN_ ( char_type ) [inline, inherited]

Definition at line 855 of file nsStringAPI.h.

  {
    char_type *data;
    NS_StringGetMutableData(*this, PR_UINT32_MAX, &data);
    return data;
  }

Here is the call graph for this function:

nsAString_external::NS_HIDDEN_ ( PRBool  ) [inline, inherited]

Definition at line 862 of file nsStringAPI.h.

  {
    char_type *data;
    NS_StringGetMutableData(*this, aLen, &data);
    return data != nsnull;
  }

Here is the call graph for this function:

nsAString_external::NS_HIDDEN_ ( size_type  ) const [inline, inherited]

Definition at line 869 of file nsStringAPI.h.

  {
    const char_type* data;
    return NS_StringGetData(*this, &data);
  }

Here is the call graph for this function:

nsAString_external::NS_HIDDEN_ ( PRBool  ) const [inline, inherited]

Definition at line 875 of file nsStringAPI.h.

  {
    return Length() == 0;
  }
nsAString_external::NS_HIDDEN_ ( void  ) const [inline, inherited]

Definition at line 880 of file nsStringAPI.h.

  {
    NS_StringCopy(*this, aString);
  }

Here is the call graph for this function:

nsAString_external::NS_HIDDEN_ ( void  ) const [inherited]

Member Data Documentation

Definition at line 884 of file nsStringAPI.h.

Definition at line 1077 of file nsStringAPI.h.

Definition at line 1078 of file nsStringAPI.h.

Definition at line 1079 of file nsStringAPI.h.


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