MCPcopy Index your code
hub / github.com/python/cpython / punycode_encode

Function punycode_encode

Lib/encodings/punycode.py:117–123  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

115 return result.take_bytes()
116
117def punycode_encode(text):
118 base, extended = segregate(text)
119 deltas = insertion_unsort(text, extended)
120 extended = generate_integers(len(base), deltas)
121 if base:
122 return base + b"-" + extended
123 return extended
124
125##################### Decoding #####################################
126

Callers 2

encodeMethod · 0.85
encodeMethod · 0.85

Calls 3

segregateFunction · 0.85
insertion_unsortFunction · 0.85
generate_integersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…