MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / int2unicode

Function int2unicode

src/licensedcode/dmp.py:102–106  ·  view source on GitHub ↗

Convert an array of positive integers to a unicode string.

(nums)

Source from the content-addressed store, hash-verified

100
101
102def int2unicode(nums):
103 """
104 Convert an array of positive integers to a unicode string.
105 """
106 return u''.join(chr(i + 1) for i in nums)
107
108
109def trim(diffs):

Callers 1

match_blocksFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected