getprefixesfromnameΒΆ

The table|nil getprefixesfromname ( string name )

Return all the prefixes present in a name or nil

For the name "ref:ref2:node", it returns ["", "ref:", "ref:ref2:"].

Arguments:

  • name A name "ref:ref2:node".

Return:

  • table|nil prefixes. nil if the last node is not in the reference.