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

Method Call

runtime/sam/expr/function/string.go:95–105  ·  view source on GitHub ↗
(args []super.Value)

Source from the content-addressed store, hash-verified

93}
94
95func (t *ToUpper) Call(args []super.Value) super.Value {
96 val := args[0].Under()
97 if val.IsNull() {
98 return super.Null
99 }
100 if !val.IsString() {
101 return t.sctx.WrapError("upper: string arg required", val)
102 }
103 s := super.DecodeString(val.Bytes())
104 return super.NewString(strings.ToUpper(s))
105}
106
107type Trim struct {
108 sctx *super.Context

Callers

nothing calls this directly

Calls 7

DecodeStringFunction · 0.92
NewStringFunction · 0.92
UnderMethod · 0.80
IsNullMethod · 0.80
IsStringMethod · 0.80
WrapErrorMethod · 0.80
BytesMethod · 0.45

Tested by

no test coverage detected