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

Function StringsVersion

ext/strings.go:363–368  ·  view source on GitHub ↗

StringsVersion configures the version of the string library. The version limits which functions are available. Only functions introduced below or equal to the given version included in the library. If this option is not set, all functions are available. See the library documentation to determine w

(version uint32)

Source from the content-addressed store, hash-verified

361// If the documentation does not state which version a function was introduced, it can
362// be assumed to be introduced at version 0, when the library was first created.
363func StringsVersion(version uint32) StringsOption {
364 return func(lib *stringLib) *stringLib {
365 lib.version = version
366 return lib
367 }
368}
369
370// StringsValidateFormatCalls validates type-checked ASTs to ensure that string.format() calls have
371// valid formatting clauses and valid argument types for each clause.

Callers 8

TestStringFormatFunction · 0.85
TestBadLocaleFunction · 0.85
TestLiteralOutputFunction · 0.85
TestStringsVersionsFunction · 0.85
TestFunctionsForVersionsFunction · 0.85
TestStringCostTrackingFunction · 0.85

Calls

no outgoing calls

Tested by 7

TestStringFormatFunction · 0.68
TestBadLocaleFunction · 0.68
TestLiteralOutputFunction · 0.68
TestStringsVersionsFunction · 0.68
TestFunctionsForVersionsFunction · 0.68
TestStringCostTrackingFunction · 0.68