(ctx expr.EvalContext, args []value.Value)
| 81 | return upperCaseEval, nil |
| 82 | } |
| 83 | func upperCaseEval(ctx expr.EvalContext, args []value.Value) (value.Value, bool) { |
| 84 | val, ok := value.ValueToString(args[0]) |
| 85 | if !ok { |
| 86 | return value.EmptyStringValue, false |
| 87 | } |
| 88 | return value.NewStringValue(strings.ToUpper(val)), true |
| 89 | } |
| 90 | |
| 91 | // TitleCase take a string and uppercase it. must be able to convert to string. |
| 92 | // |
nothing calls this directly
no test coverage detected