Back to index

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

#include <nsStringAPI.h>

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

List of all members.

Public Types

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

Public Member Functions

 ~nsDependentCSubstring ()
 nsDependentCSubstring ()
 nsDependentCSubstring (const char_type *aStart, PRUint32 aLength)
 nsDependentCSubstring (const abstract_string_type &aStr, PRUint32 aStartPos)
 nsDependentCSubstring (const abstract_string_type &aStr, PRUint32 aStartPos, PRUint32 aLength)
void Rebind (const char_type *aStart, PRUint32 aLength)
 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 Member Functions

self_typeoperator= (const self_type &aString)

Detailed Description

Definition at line 1577 of file nsStringAPI.h.


Member Typedef Documentation

Definition at line 1581 of file nsStringAPI.h.

typedef char nsACString_external::char_type [inherited]

Reimplemented in NS_COM, NS_COM, and NS_COM.

Definition at line 953 of file nsStringAPI.h.

Definition at line 956 of file nsStringAPI.h.

Reimplemented from nsACString_external.

Definition at line 1580 of file nsStringAPI.h.

Definition at line 955 of file nsStringAPI.h.


Constructor & Destructor Documentation

Definition at line 1583 of file nsStringAPI.h.

Here is the call graph for this function:

Definition at line 1588 of file nsStringAPI.h.

Here is the call graph for this function:

Definition at line 1593 of file nsStringAPI.h.

Here is the call graph for this function:

Definition at line 1600 of file nsStringAPI.h.

  {
    const char* data;
    PRUint32 len = NS_CStringGetData(aStr, &data);
    NS_CStringContainerInit2(*this, data + aStartPos, len - aStartPos,
                             NS_CSTRING_CONTAINER_INIT_DEPEND |
                             NS_CSTRING_CONTAINER_INIT_SUBSTRING);
  }

Here is the call graph for this function:

Definition at line 1610 of file nsStringAPI.h.

  {
    const char* data;
#ifdef DEBUG
    PRUint32 len =
#endif
    NS_CStringGetData(aStr, &data);
    NS_ASSERTION(aStartPos + aLength <= len, "bad length");
    NS_CStringContainerInit2(*this, data + aStartPos, aLength,
                             NS_CSTRING_CONTAINER_INIT_DEPEND |
                             NS_CSTRING_CONTAINER_INIT_SUBSTRING);
  }

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 958 of file nsStringAPI.h.

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

Here is the call graph for this function:

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

Definition at line 965 of file nsStringAPI.h.

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

Here is the call graph for this function:

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

Definition at line 972 of file nsStringAPI.h.

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

Here is the call graph for this function:

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

Definition at line 979 of file nsStringAPI.h.

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

Here is the call graph for this function:

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

Definition at line 986 of file nsStringAPI.h.

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

Here is the call graph for this function:

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

Definition at line 992 of file nsStringAPI.h.

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

Definition at line 997 of file nsStringAPI.h.

  {
    NS_CStringCopy(*this, aString);
  }

Here is the call graph for this function:

nsACString_external::NS_HIDDEN_ ( void  ) const [inherited]
self_type& nsDependentCSubstring::operator= ( const self_type aString) [private]
void nsDependentCSubstring::Rebind ( const char_type aStart,
PRUint32  aLength 
) [inline]

Definition at line 1624 of file nsStringAPI.h.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 1001 of file nsStringAPI.h.


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