MCPcopy Index your code
hub / github.com/davidaurelio/hashids-python / _split

Function _split

hashids.py:31–40  ·  view source on GitHub ↗

Splits a string into parts at multiple characters

(string, splitters)

Source from the content-addressed store, hash-verified

29
30
31def _split(string, splitters):
32 """Splits a string into parts at multiple characters"""
33 part = ''
34 for character in string:
35 if character in splitters:
36 yield part
37 part = ''
38 else:
39 part += character
40 yield part
41
42
43def _hash(number, alphabet):

Callers 1

_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected