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

Method startswith

tushare/util/demjson.py:1697–1705  ·  view source on GitHub ↗

Determines if the text at the current position starts with the given string. See also method: pop_if_startswith()

( self, s )

Source from the content-addressed store, hash-verified

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)

Callers 8

decodeMethod · 0.80
is_negzeroMethod · 0.80
__init__Method · 0.80
make_intMethod · 0.80
make_decimalMethod · 0.80
make_floatMethod · 0.80
call_hookMethod · 0.80
encodeMethod · 0.80

Calls 1

peekstrMethod · 0.95

Tested by

no test coverage detected