MCPcopy Create free account
hub / github.com/sergi/go-diff / intArrayToString

Function intArrayToString

diffmatchpatch/stringutil.go:96–106  ·  view source on GitHub ↗
(ns []index)

Source from the content-addressed store, hash-verified

94}
95
96func intArrayToString(ns []index) string {
97 if len(ns) == 0 {
98 return ""
99 }
100
101 b := make([]rune, len(ns))
102 for i, n := range ns {
103 b[i] = intToRune(uint32(n))
104 }
105 return string(b)
106}
107
108// These constants define the number of bits representable
109// in 1,2,3,4 byte utf8 sequences, respectively.

Callers 1

diffLinesToStringsMethod · 0.85

Calls 1

intToRuneFunction · 0.85

Tested by

no test coverage detected