Unify the way resource identifiers are parsed
SVG allows resource access through certain properties. These resources
are located by using IRIs. Some properties accept a string, or a
resource identifier, or both and to get rid of this ambiguity, resources
are accessed using url(IRI) in this case.
There is no unified way to parse resource identifiers in the module.
Some part of the code removed '#' from the IRI and is duplicated
throughout the code, and for other parts, the '#' is not removed from
the parsed IRI, and it is handled at a later stage. This change unifies
the parsing of resource identifiers via two functions and they are used
throughout the code, with the result being the identifier name without
any delimiters.
It should be noted that the standard allows more complex cases of
resource access, such as local vs non-local or resource access through
the network. These cases were not handled before, and they are not
handled in this change either. If needed, this can be done in the
future by modifying those two functions.
Task-number: QTBUG-141742
Change-Id: If7dd0b8b8a327a7cd381b9eba870a033694a17d5
Reviewed-by: Robert Löhning <robert.loehning@qt.io>