MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Strings

Function Strings

ext/strings.go:316–324  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

314//
315// <string>.format(<list>) -> <string>
316func Strings(options ...StringsOption) cel.EnvOption {
317 s := &stringLib{
318 version: math.MaxUint32,
319 }
320 for _, o := range options {
321 s = o(s)
322 }
323 return cel.Lib(s)
324}
325
326type stringLib struct {
327 locale string

Calls 1

LibFunction · 0.92