Gaudi Framework, version v23r8

Home   Generated: Fri May 31 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
pyparsing.CaselessLiteral Class Reference
Inheritance diagram for pyparsing.CaselessLiteral:
Inheritance graph
[legend]
Collaboration diagram for pyparsing.CaselessLiteral:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def parseImpl
 
- Public Member Functions inherited from pyparsing.Literal
def __init__
 
def parseImpl
 
- Public Member Functions inherited from pyparsing.Token
def __init__
 
def setName
 
- Public Member Functions inherited from pyparsing.ParserElement
def setDefaultWhitespaceChars
 
def __init__
 
def copy
 
def setName
 
def setResultsName
 
def setBreak
 
def setParseAction
 
def addParseAction
 
def setFailAction
 
def preParse
 
def parseImpl
 
def postParse
 
def tryParse
 
def resetCache
 
def enablePackrat
 
def parseString
 
def scanString
 
def transformString
 
def searchString
 
def __add__
 
def __radd__
 
def __sub__
 
def __rsub__
 
def __mul__
 
def __rmul__
 
def __or__
 
def __ror__
 
def __xor__
 
def __rxor__
 
def __and__
 
def __rand__
 
def __invert__
 
def __call__
 
def suppress
 
def leaveWhitespace
 
def setWhitespaceChars
 
def parseWithTabs
 
def ignore
 
def setDebugActions
 
def setDebug
 
def __str__
 
def __repr__
 
def streamline
 
def checkRecursion
 
def validate
 
def parseFile
 
def getException
 
def __getattr__
 
def __eq__
 
def __ne__
 
def __hash__
 
def __req__
 
def __rne__
 

Public Attributes

 returnString
 
 name
 
 errmsg
 
- Public Attributes inherited from pyparsing.Literal
 match
 
 matchLen
 
 firstMatchChar
 
 name
 
 errmsg
 
 mayReturnEmpty
 
 mayIndexError
 
- Public Attributes inherited from pyparsing.Token
 errmsg
 
- Public Attributes inherited from pyparsing.ParserElement
 parseAction
 
 failAction
 
 strRepr
 
 resultsName
 
 saveAsList
 
 skipWhitespace
 
 whiteChars
 
 copyDefaultWhiteChars
 
 mayReturnEmpty
 
 keepTabs
 
 ignoreExprs
 
 debug
 
 streamlined
 
 mayIndexError
 
 errmsg
 
 modalResults
 
 debugActions
 
 re
 
 callPreparse
 
 callDuringTry
 
 name
 
 myException
 

Additional Inherited Members

- Static Public Attributes inherited from pyparsing.ParserElement
string DEFAULT_WHITE_CHARS " \n\t\r"
 
tuple setDefaultWhitespaceChars staticmethod(setDefaultWhitespaceChars)
 
tuple resetCache staticmethod(resetCache)
 
tuple enablePackrat staticmethod(enablePackrat)
 

Detailed Description

Token to match a specified string, ignoring case of letters.
   Note: the matched results will always be in the case of the given
   match string, NOT the case of the input text.

Definition at line 1578 of file pyparsing.py.

Constructor & Destructor Documentation

def pyparsing.CaselessLiteral.__init__ (   self,
  matchString 
)

Definition at line 1583 of file pyparsing.py.

1584  def __init__( self, matchString ):
1585  super(CaselessLiteral,self).__init__( matchString.upper() )
1586  # Preserve the defining literal.
1587  self.returnString = matchString
1588  self.name = "'%s'" % self.returnString
1589  self.errmsg = "Expected " + self.name
1590  #self.myException.msg = self.errmsg

Member Function Documentation

def pyparsing.CaselessLiteral.parseImpl (   self,
  instring,
  loc,
  doActions = True 
)

Definition at line 1591 of file pyparsing.py.

1592  def parseImpl( self, instring, loc, doActions=True ):
1593  if instring[ loc:loc+self.matchLen ].upper() == self.match:
1594  return loc+self.matchLen, self.returnString
1595  #~ raise ParseException( instring, loc, self.errmsg )
1596  exc = self.myException
1597  exc.loc = loc
1598  exc.pstr = instring
1599  raise exc

Member Data Documentation

pyparsing.CaselessLiteral.errmsg

Definition at line 1588 of file pyparsing.py.

pyparsing.CaselessLiteral.name

Definition at line 1587 of file pyparsing.py.

pyparsing.CaselessLiteral.returnString

Definition at line 1586 of file pyparsing.py.


The documentation for this class was generated from the following file:
Generated at Fri May 31 2013 15:09:29 for Gaudi Framework, version v23r8 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004