|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __new__ (self, value) |
| def | __init__ (self, value) |
| def | __iter__ (self) |
| def | __next__ (self) |
| def | next (self) |
| def | previous (self) |
| def | setPosition (self, position) |
| def | getPosition (self) |
| def | getCurrentByte (self) |
| def | skip (self, chars=spaceCharactersBytes) |
| def | skipUntil (self, chars) |
| def | matchBytes (self, bytes) |
| def | jumpTo (self, bytes) |
Properties | |
| position = property(getPosition, setPosition) | |
| currentByte = property(getCurrentByte) | |
String-like object with an associated position and various extra methods If the position is ever greater than the string length then an exception is raised
| def __init__ | ( | self, | |
| value | |||
| ) |
| def __iter__ | ( | self | ) |
| def __new__ | ( | self, | |
| value | |||
| ) |
| def __next__ | ( | self | ) |
| def getCurrentByte | ( | self | ) |
| def getPosition | ( | self | ) |
| def jumpTo | ( | self, | |
| bytes | |||
| ) |
Look for the next sequence of bytes matching a given sequence. If a match is found advance the position to the last byte of the match
| def matchBytes | ( | self, | |
| bytes | |||
| ) |
Look for a sequence of bytes at the start of a string. If the bytes are found return True and advance the position to the byte after the match. Otherwise return False and leave the position alone
| def next | ( | self | ) |
| def previous | ( | self | ) |
| def setPosition | ( | self, | |
| position | |||
| ) |
| def skip | ( | self, | |
chars = spaceCharactersBytes |
|||
| ) |
Skip past a list of characters
| def skipUntil | ( | self, | |
| chars | |||
| ) |
|
static |
|
static |