Strings returns a cel.EnvOption to configure extended functions for string manipulation. As a general note, all indices are zero-based. # CharAt Introduced at version: 0 (cost support in version 5) Returns the character at the given position. If the position is negative, or greater than the lengt
(options ...StringsOption)
| 316 | // |
| 317 | // <string>.format(<list>) -> <string> |
| 318 | func Strings(options ...StringsOption) cel.EnvOption { |
| 319 | s := &stringLib{ |
| 320 | version: math.MaxUint32, |
| 321 | } |
| 322 | for _, o := range options { |
| 323 | s = o(s) |
| 324 | } |
| 325 | return cel.Lib(s) |
| 326 | } |
| 327 | |
| 328 | type stringLib struct { |
| 329 | locale string |