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

Function splitChars

texteditor/difflib/bytes/bytes_test.go:28–35  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

26}
27
28func splitChars(s string) [][]byte {
29 chars := make([][]byte, 0, len(s))
30 // Assume ASCII inputs
31 for i := 0; i != len(s); i++ {
32 chars = append(chars, []byte{s[i]})
33 }
34 return chars
35}
36
37func stringsToBytes(in ...string) (out [][]byte) {
38 out = make([][]byte, len(in))

Callers 8

TestListifyStringFunction · 0.70
TestSequenceMatcherRatioFunction · 0.70
TestGetOptCodesFunction · 0.70
TestWithAsciiOneInsertFunction · 0.70
TestWithAsciiOnDeleteFunction · 0.70
TestWithAsciiBJunkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected