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

Method Call

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

Source from the content-addressed store, hash-verified

77}
78
79func (t *ToLower) Call(args []super.Value) super.Value {
80 val := args[0].Under()
81 if val.IsNull() {
82 return super.Null
83 }
84 if !val.IsString() {
85 return t.sctx.WrapError("lower: string arg required", val)
86 }
87 s := super.DecodeString(val.Bytes())
88 return super.NewString(strings.ToLower(s))
89}
90
91type ToUpper struct {
92 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