MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / CharAt

Function CharAt

extensions/strings.cc:110–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110Value CharAt(const StringValue& string, int64_t pos) {
111 return string.CharAt(pos);
112}
113
114int64_t IndexOf2(const StringValue& haystack, const StringValue& needle) {
115 return haystack.IndexOf(needle).value_or(-1);

Callers

nothing calls this directly

Calls 1

CharAtMethod · 0.80

Tested by

no test coverage detected