MCPcopy Create free account
hub / github.com/cogentcore/core / listifyString

Function listifyString

texteditor/difflib/bytes/bytes.go:36–42  ·  view source on GitHub ↗
(str []byte)

Source from the content-addressed store, hash-verified

34}
35
36func listifyString(str []byte) (lst [][]byte) {
37 lst = make([][]byte, len(str))
38 for i := range str {
39 lst[i] = str[i : i+1]
40 }
41 return lst
42}
43
44type Match struct {
45 A int

Callers 2

TestListifyStringFunction · 0.70
FancyReplaceMethod · 0.70

Calls

no outgoing calls

Tested by 1

TestListifyStringFunction · 0.56