MCPcopy Create free account
hub / github.com/antchfx/xpath / stringFunc

Function stringFunc

func.go:289–297  ·  view source on GitHub ↗

stringFunc is a XPath functions string([node-set]).

(arg1 query)

Source from the content-addressed store, hash-verified

287
288// stringFunc is a XPath functions string([node-set]).
289func stringFunc(arg1 query) func(query, iterator) interface{} {
290 return func(q query, t iterator) interface{} {
291 if arg1 == nil {
292 return t.Current().Value()
293 }
294 v := functionArgs(arg1).Evaluate(t)
295 return asString(t, v)
296 }
297}
298
299// startwithFunc is a XPath functions starts-with(string, string).
300func startwithFunc(arg1, arg2 query) func(query, iterator) interface{} {

Callers 1

processFunctionMethod · 0.85

Calls 5

functionArgsFunction · 0.85
asStringFunction · 0.85
ValueMethod · 0.65
CurrentMethod · 0.65
EvaluateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…