MCPcopy
hub / github.com/waditu/tushare / at_eol

Method at_eol

tushare/util/demjson.py:1643–1654  ·  view source on GitHub ↗

Returns True if the current position contains an end-of-line control character.

(self, allow_unicode_eol=True)

Source from the content-addressed store, hash-verified

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

Callers 1

skip_commentMethod · 0.80

Calls 3

peekMethod · 0.95
char_is_unicode_eolMethod · 0.80
char_is_json_eolMethod · 0.80

Tested by

no test coverage detected