Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsXBLTextWithLineNumber Struct Reference

#include <nsXBLProtoImplMember.h>

List of all members.

Public Member Functions

 nsXBLTextWithLineNumber ()
 ~nsXBLTextWithLineNumber ()
void AppendText (const nsAString &aText)
PRUnicharGetText ()
void SetLineNumber (PRUint32 aLineNumber)
PRUint32 GetLineNumber ()

Public Attributes

PRUnicharmText
PRUint32 mLineNumber

Detailed Description

Definition at line 57 of file nsXBLProtoImplMember.h.


Constructor & Destructor Documentation

Definition at line 69 of file nsXBLProtoImplMember.h.

                             {
    MOZ_COUNT_DTOR(nsXBLTextWithLineNumber);
    if (mText) {
      nsMemory::Free(mText);
    }
  }

Member Function Documentation

void nsXBLTextWithLineNumber::AppendText ( const nsAString &  aText) [inline]

Definition at line 76 of file nsXBLProtoImplMember.h.

                                          {
    if (mText) {
      PRUnichar* temp = mText;
      mText = ToNewUnicode(nsDependentString(temp) + aText);
      nsMemory::Free(temp);
    } else {
      mText = ToNewUnicode(aText);
    }
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 94 of file nsXBLProtoImplMember.h.

                           {
    return mLineNumber;
  }

Definition at line 86 of file nsXBLProtoImplMember.h.

                       {
    return mText;
  }

Definition at line 90 of file nsXBLProtoImplMember.h.

                                           {
    mLineNumber = aLineNumber;
  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 60 of file nsXBLProtoImplMember.h.

Definition at line 59 of file nsXBLProtoImplMember.h.


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