MCPcopy Create free account
hub / github.com/brimdata/super / joinChars

Function joinChars

compiler/parser/support.go:77–88  ·  view source on GitHub ↗
(in any)

Source from the content-addressed store, hash-verified

75}
76
77func joinChars(in any) string {
78 str := bytes.Buffer{}
79 for _, i := range in.([]any) {
80 // handle joining bytes or strings
81 if s, ok := i.([]byte); ok {
82 str.Write(s)
83 } else {
84 str.WriteString(i.(string))
85 }
86 }
87 return str.String()
88}
89
90func parseInt(v any) any {
91 num := v.(string)

Callers 11

onIP6Variations2Method · 0.85
onIP6Variations9Method · 0.85
onIP6Variations22Method · 0.85
onIP6Variations30Method · 0.85
onSingleQuotedString1Method · 0.85
onDoubleQuotedString1Method · 0.85
onBacktickString1Method · 0.85
onKeyWord1Method · 0.85
onGlobPattern1Method · 0.85

Calls 2

WriteMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected