Class HTML5::EncodingBytes
In: lib/html5/inputstream.rb
Parent: String

String-like object with an assosiated position and various extra methods If the position is ever greater than the string length then an exception is raised

Methods

current_byte   each   find_next   jump_to   match_bytes   new   skip  

Attributes

position  [RW] 

Public Class methods

Public Instance methods

Move the pointer so it points to the next byte in a set of possible 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

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

Skip past a list of characters

[Validate]