def p_startswith(self, st, ignorecase=False):
length = len(st)<EOL>matcher = result = self.input[self.pos:self.pos + length]<EOL>if ignorecase:<EOL><INDENT>matcher = result.lower()<EOL>st = st.lower()<EOL><DEDENT>if matcher == st:<EOL><INDENT>self.pos += length<EOL>return result<EOL><DEDENT>return False<EOL>
Return True if the input starts with `st` at current position