Back to index

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

#include <txXSLTPatterns.h>

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

List of all members.

Public Member Functions

 txIdPattern (const nsAString &aString)
 ~txIdPattern ()
virtual MBool matches (const txXPathNode &aNode, txIMatchContext *aContext)=0
virtual double getDefaultPriority ()=0
virtual nsresult getSimplePatterns (txList &aList)

Public Attributes

 TX_DECL_PATTERN

Private Attributes

nsStringArray mIds

Detailed Description

Definition at line 184 of file txXSLTPatterns.h.


Constructor & Destructor Documentation

txIdPattern::txIdPattern ( const nsAString &  aString)

Definition at line 326 of file txXSLTPatterns.cpp.

{
    nsAString::const_iterator pos, begin, end;
    aString.BeginReading(begin);
    aString.EndReading(end);
    pos = begin;
    while (pos != end) {
        while (pos != end && XMLUtils::isWhitespace(*pos))
            ++pos;
        begin = pos;
        while (pos != end && !XMLUtils::isWhitespace(*pos))
            ++pos;
        // this can fail, XXX move to a Init(aString) method
        mIds.AppendString(Substring(begin, pos));
    }
}

Here is the call graph for this function:

Definition at line 343 of file txXSLTPatterns.cpp.

{
}

Member Function Documentation

virtual double txPattern::getDefaultPriority ( ) [pure virtual, inherited]

Here is the caller graph for this function:

nsresult txPattern::getSimplePatterns ( txList aList) [virtual, inherited]

Definition at line 56 of file txXSLTPatterns.cpp.

{
    aList.add(this);
    return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual MBool txPattern::matches ( const txXPathNode aNode,
txIMatchContext aContext 
) [pure virtual, inherited]

Here is the caller graph for this function:


Member Data Documentation

nsStringArray txIdPattern::mIds [private]

Definition at line 194 of file txXSLTPatterns.h.

Definition at line 191 of file txXSLTPatterns.h.


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