(args ...vector.Any)
| 215 | } |
| 216 | |
| 217 | func (t *ToUpper) Call(args ...vector.Any) vector.Any { |
| 218 | if vec, ok := expr.CheckForNullThenError(args); ok { |
| 219 | return vec |
| 220 | } |
| 221 | v := vector.Under(args[0]) |
| 222 | if v.Type() != super.TypeString { |
| 223 | return vector.NewWrappedError(t.sctx, "upper: string arg required", v) |
| 224 | } |
| 225 | out := vector.NewStringEmpty(v.Len()) |
| 226 | for i := uint32(0); i < v.Len(); i++ { |
| 227 | s := vector.StringValue(v, i) |
| 228 | out.Append(strings.ToUpper(s)) |
| 229 | } |
| 230 | return out |
| 231 | } |
| 232 | |
| 233 | type Trim struct { |
| 234 | sctx *super.Context |
nothing calls this directly
no test coverage detected