Determines if the text at the current position starts with the given string. See also method: pop_if_startswith()
( self, s )
| 1695 | return s |
| 1696 | |
| 1697 | def startswith( self, s ): |
| 1698 | """Determines if the text at the current position starts with |
| 1699 | the given string. |
| 1700 | |
| 1701 | See also method: pop_if_startswith() |
| 1702 | |
| 1703 | """ |
| 1704 | s2 = self.peekstr( len(s) ) |
| 1705 | return s == s2 |
| 1706 | |
| 1707 | def skip( self, span=1 ): |
| 1708 | """Advances the current position by one (or the given number) |
no test coverage detected