Move functions to qsvgutils


Some functions that are used as helpers to parse an svg path will
be used by the CSS Handler to parse the path defined for animations.
Those functions are moved to the QSvgUtils namespace so it can be
reused. Moreover, parsePathDataFast function now returns an
std::optional instead of relying on the ok bool.

Change-Id: Ib5da7675e8539958c602fb3c2188677e26801f65
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commitb1245894f7ce6348b93870815a199b17f252caf3
parentc35eeb99cd99f7e8fab2056b6a2881f0152a9d50
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeMon, 20 Oct 2025 14:16:16 +0300