Returns True if the current position contains an end-of-line control character.
(self, allow_unicode_eol=True)
| 1641 | return helpers.char_is_json_ws(c) |
| 1642 | |
| 1643 | def at_eol(self, allow_unicode_eol=True): |
| 1644 | """Returns True if the current position contains an |
| 1645 | end-of-line control character. |
| 1646 | |
| 1647 | """ |
| 1648 | c = self.peek() |
| 1649 | if not c: |
| 1650 | return True # End of file is treated as end of line |
| 1651 | elif allow_unicode_eol: |
| 1652 | return helpers.char_is_unicode_eol(c) |
| 1653 | else: |
| 1654 | return helpers.char_is_json_eol(c) |
| 1655 | |
| 1656 | def peek( self, offset=0 ): |
| 1657 | """Returns the character at the current position, or at a |
no test coverage detected