| Returns a portion of the specified version in an integer,
or 0 if no such portion exists.
For example, getSubversion(0) returns the so-called major version
(2 in "2.4.0"), and getSubversion(1) returns the so-called
minor version (4 in "2.4.0").
Note: alpha is consider as -500, beta -300, and rc -100.
Moreover, beta3 is -497 (= -500 + 3) and rc5 -95 (-100 + 5)
Parameters: version - the version. The version is assumed toa series of integer separated by a non-alphanemric separator. Parameters: portion - which portion of the version; starting from 0.If you want to retrieve the major verion, specify 0. since: 3.0.0 |