Logo Search packages:      
Sourcecode: calibre version File versions

def calibre::utils::pyparsing::ParserElement::setResultsName (   self,
  name,
  listAllMatches = False 
) [inherited]

Define name for referencing matching tokens as a nested attribute
   of the returned parse results.
   NOTE: this returns a *copy* of the original ParserElement object;
   this is so that the client can define a basic element, such as an
   integer, and reference it in multiple places with different names.

Reimplemented in calibre::utils::pyparsing::ParseExpression, calibre::utils::pyparsing::ZeroOrMore, and calibre::utils::pyparsing::OneOrMore.

Definition at line 713 of file pyparsing.py.

00713                                                           :
        """Define name for referencing matching tokens as a nested attribute
           of the returned parse results.
           NOTE: this returns a *copy* of the original ParserElement object;
           this is so that the client can define a basic element, such as an
           integer, and reference it in multiple places with different names.
        """
        newself = self.copy()
        newself.resultsName = name
        newself.modalResults = not listAllMatches
        return newself


Generated by  Doxygen 1.6.0   Back to index