Orbits
1
|
Public Member Functions | |
def | __new__ |
def | __init__ |
def | __iter__ |
def | __next__ |
def | next |
def | previous |
def | setPosition |
def | getPosition |
def | getCurrentByte |
def | skip |
def | skipUntil |
def | matchBytes |
def | jumpTo |
Properties | |
position = property(getPosition, setPosition) | |
currentByte = property(getCurrentByte) | |
Private Attributes | |
_position | |
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 pip._vendor.html5lib.inputstream.EncodingBytes.__init__ | ( | self, | |
value | |||
) |
def pip._vendor.html5lib.inputstream.EncodingBytes.__iter__ | ( | self | ) |
def pip._vendor.html5lib.inputstream.EncodingBytes.__new__ | ( | self, | |
value | |||
) |
def pip._vendor.html5lib.inputstream.EncodingBytes.__next__ | ( | self | ) |
def pip._vendor.html5lib.inputstream.EncodingBytes.getCurrentByte | ( | self | ) |
def pip._vendor.html5lib.inputstream.EncodingBytes.getPosition | ( | self | ) |
def pip._vendor.html5lib.inputstream.EncodingBytes.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 pip._vendor.html5lib.inputstream.EncodingBytes.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 pip._vendor.html5lib.inputstream.EncodingBytes.next | ( | self | ) |
def pip._vendor.html5lib.inputstream.EncodingBytes.previous | ( | self | ) |
def pip._vendor.html5lib.inputstream.EncodingBytes.setPosition | ( | self, | |
position | |||
) |
def pip._vendor.html5lib.inputstream.EncodingBytes.skip | ( | self, | |
chars = spaceCharactersBytes |
|||
) |
Skip past a list of characters
def pip._vendor.html5lib.inputstream.EncodingBytes.skipUntil | ( | self, | |
chars | |||
) |
|
private |
|
static |
|
static |
Copyright 2014 Google Inc. All rights reserved.