getprefixesfromname

guerilla.getprefixesfromname(name)

Return all the prefixes present in a name or nil

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

Parameters:name (str) – A name “ref:ref2:node”.
Returns:prefixes. None if the last node is not in the reference.
Return type:The