Tree::...unction(3pm)

πŸ“¦
version 0.05 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Tree::XPathEngine::Function πŸ’–

okay bestie, so this little icon is a Perl module β€” part of the User Contributed Perl Documentation β€” and its whole gig is evaluating XPath functions. that's it, that's the vibe. she takes XPath functions and she evaluates them. periodt. ✨


🌸 METHODS 🌸

new 🌱

it makes a new one. constructor behaviour, standard issue, no notes. πŸ’…

evaluate 🧠

evaluate the function on a nodeset. yes queen, that's the entire job description. 🫢

_execute βš™οΈ

evaluate the function on a nodeset. (yes, same energy as evaluate β€” the underscore is lowkey giving "internal, don't touch" but that's just how it's listed, iykyk.) πŸ”₯

as_string πŸŽ€

dump the function call as a string. textual glow-up, slay. ✨

as_xml πŸ¦‹

dump the function call as xml. same but make it markup, iconic. 🌈

XPath methods πŸ‘‘

See the specs for details. (fr fr, the specs are the main character here β€” this page is just the guest list.)

here's the full roster of functions she handles, no skips, no cuts:

  • last
  • position
  • count
  • id
  • name
  • string
  • concat
  • starts_with
  • contains
  • substring
  • substring_after
  • substring_before
  • string_length
  • normalize_space
  • translate
  • boolean
  • not
  • true
  • false
  • lang
  • number
  • sum
  • floor
  • ceiling
  • round

like. the whole squad. πŸ’€πŸ‘‘


reminder bestie: this page doesn't spell out what each function does β€” it literally says See the specs for details β€” so don't come for me, go read the specs. πŸ’–

and that's a wrap on the Tree::XPathEngine::Function page, brought to you by perl v5.36.0, dated 2022-11-20, and lovingly shipped as part of the User Contributed Perl Documentation. go forth and evaluate, mwah πŸ«ΆπŸ’…πŸŒΈ

πŸ“¦ where this page comes from