nsScannerSubstring Class Reference

#include <nsScannerString.h>

Inheritance diagram for nsScannerSubstring:

Inheritance graph
[legend]
Collaboration diagram for nsScannerSubstring:

Collaboration graph
[legend]

List of all members.


Detailed Description

It provides access to iterators and methods to bind the substring to another substring or nsAString instance.

This class owns the buffer list.

Public Types

typedef nsScannerBufferList::Buffer Buffer
typedef
nsScannerBufferList::Position 
Position
typedef PRUint32 size_type

Public Member Functions

 nsScannerSubstring ()
 nsScannerSubstring
 nsScannerSubstring (const nsAString &s)
 ~nsScannerSubstring ()
nsScannerIteratorBeginReading (nsScannerIterator &iter) const
nsScannerIteratorEndReading (nsScannerIterator &iter) const
size_type Length () const
PRInt32 CountChar (PRUnichar) const
void Rebind (const nsScannerSubstring &, const nsScannerIterator &, const nsScannerIterator &)
void Rebind (const nsAString &)
const nsSubstringAsString () const
PRBool GetNextFragment (nsScannerFragment &) const
PRBool GetPrevFragment (nsScannerFragment &) const

Static Public Member Functions

static BufferAllocBufferFromString (const nsAString &aStr)
static BufferAllocBuffer (size_type aCapacity)

Protected Member Functions

void acquire_ownership_of_buffer_list () const
void release_ownership_of_buffer_list ()
void init_range_from_buffer_list ()

Protected Attributes

Position mStart
Position mEnd
nsScannerBufferListmBufferList
size_type mLength
nsDependentSubstring mFlattenedRep
PRBool mIsDirty

Friends

class nsScannerSharedSubstring


Member Typedef Documentation


Constructor & Destructor Documentation

nsScannerSubstring::nsScannerSubstring (  ) 

nsScannerSubstring::nsScannerSubstring ( const nsAString s  ) 

nsScannerSubstring::~nsScannerSubstring (  ) 


Member Function Documentation

nsScannerIterator & nsScannerSubstring::BeginReading ( nsScannerIterator iter  )  const

nsScannerIterator & nsScannerSubstring::EndReading ( nsScannerIterator iter  )  const

size_type nsScannerSubstring::Length (  )  const [inline]

PRInt32 nsScannerSubstring::CountChar ( PRUnichar  c  )  const

void nsScannerSubstring::Rebind ( const nsScannerSubstring aString,
const nsScannerIterator aStart,
const nsScannerIterator aEnd 
)

void nsScannerSubstring::Rebind ( const nsAString aString  ) 

const nsSubstring & nsScannerSubstring::AsString (  )  const

PRBool nsScannerSubstring::GetNextFragment ( nsScannerFragment frag  )  const

PRBool nsScannerSubstring::GetPrevFragment ( nsScannerFragment frag  )  const

static Buffer* nsScannerSubstring::AllocBufferFromString ( const nsAString aStr  )  [inline, static]

static Buffer* nsScannerSubstring::AllocBuffer ( size_type  aCapacity  )  [inline, static]

void nsScannerSubstring::acquire_ownership_of_buffer_list (  )  const [inline, protected]

void nsScannerSubstring::release_ownership_of_buffer_list (  )  [inline, protected]

void nsScannerSubstring::init_range_from_buffer_list (  )  [inline, protected]


Friends And Related Function Documentation

friend class nsScannerSharedSubstring [friend]


Member Data Documentation


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

Generated Mozilla by doxygen 1.5.6