Back to index

moin  1.9.0~rc2
Public Member Functions | Private Attributes
MoinMoin.support.pygments.lexer._PseudoMatch Class Reference

List of all members.

Public Member Functions

def __init__
def start
def end
def group
def groups
def groupdict

Private Attributes

 _text
 _start

Detailed Description

A pseudo match object constructed from a string.

Definition at line 237 of file lexer.py.


Constructor & Destructor Documentation

def MoinMoin.support.pygments.lexer._PseudoMatch.__init__ (   self,
  start,
  text 
)

Definition at line 242 of file lexer.py.

00242 
00243     def __init__(self, start, text):
00244         self._text = text
00245         self._start = start


Member Function Documentation

def MoinMoin.support.pygments.lexer._PseudoMatch.end (   self,
  arg = None 
)

Definition at line 249 of file lexer.py.

00249 
00250     def end(self, arg=None):
00251         return self._start + len(self._text)

def MoinMoin.support.pygments.lexer._PseudoMatch.group (   self,
  arg = None 
)

Definition at line 252 of file lexer.py.

00252 
00253     def group(self, arg=None):
00254         if arg:
00255             raise IndexError('No such group')
00256         return self._text

Definition at line 260 of file lexer.py.

00260 
00261     def groupdict(self):
00262         return {}
00263 

Definition at line 257 of file lexer.py.

00257 
00258     def groups(self):
00259         return (self._text,)

def MoinMoin.support.pygments.lexer._PseudoMatch.start (   self,
  arg = None 
)

Definition at line 246 of file lexer.py.

00246 
00247     def start(self, arg=None):
00248         return self._start


Member Data Documentation

Definition at line 244 of file lexer.py.

Definition at line 243 of file lexer.py.


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