Returns the character at the current position, or at a given offset away from the current position. If the position is beyond the limits of the document size, then an empty string '' is returned.
(self, offset=0)
| 1778 | return helpers.char_is_json_eol(c) |
| 1779 | |
| 1780 | def peek(self, offset=0): |
| 1781 | """Returns the character at the current position, or at a |
| 1782 | given offset away from the current position. If the position |
| 1783 | is beyond the limits of the document size, then an empty |
| 1784 | string '' is returned. |
| 1785 | |
| 1786 | """ |
| 1787 | i = self.cpos + offset |
| 1788 | if i < 0 or i >= self.__cmax: |
| 1789 | return '' |
| 1790 | return self.__rawbuf[i] |
| 1791 | |
| 1792 | def peekstr(self, span=1, offset=0): |
| 1793 | """Returns one or more characters starting at the current |
no outgoing calls
no test coverage detected