Returns a pointer to the next character after the parsed version string, as well as upgrading the passed in SV to an RV.
Function must be called with an already existing SV like
sv = newSV(0);
s = scan_version(s,SV *sv, bool qv);
Performs some preprocessing to the string to ensure that it has the correct characteristics of a version. Flags the object if it contains an underscore (which denotes this is a alpha version). The boolean qv denotes that the version should be interpreted as if it had multiple decimals, even if it doesn't.
Returns a new version object based on the passed in SV:
SV *sv = new_version(SV *ver);
Does not alter the passed in ver SV. See "upg_version" if you want to upgrade the SV.
In-place upgrade of the supplied SV to a version object.
SV *sv = upg_version(SV *sv);
Returns a pointer to the upgraded SV.
Accepts a version object and returns the normalized floating point representation. Call like:
sv = vnumify(rv);
NOTE: you can pass either the object directly or the SV contained within the RV.
Accepts a version object and returns the normalized string representation. Call like:
sv = vnormal(rv);
NOTE: you can pass either the object directly or the SV contained within the RV.
In order to maintain maximum compatibility with earlier versions of Perl, this function will return either the floating point notation or the multiple dotted notation, depending on whether the original version contained 1 or more dots, respectively
Version object aware cmp. Both operands must already have been converted into version objects.