Port functions parsing numbers to QStringView
Unlike the pointers which were used before, a QStringView has a defined
end. This keeps us from reading out of bounds and also allows proceeding
to an input's end when an error occurs.
In addition, QStringView offers some higher level functions for
comparing parts of strings. Nevertheless, these shall not be taken into
use here yet, but in separate patches.
Pick-to: 6.11
Change-Id: I139d6c8cc46edcb976eb78ad00d8866875cebaa8
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>