lib.get_whole_ver
Definition:
- lib.get_whole_ver (string version) :: table version_data, table metadata
Description:
- Break down a semantic version string or similar and return as itemized tables
Arguments:
- string version: String to be broken apart
Returns:
- table version_data: main version data, each individual number seperated into individual keys
- table metadata: extra suffix attached to some version strings
Other notes:
- Added in LME 3.4.x
- While this function was designed with Semantic versioning in mind, it will support in theory any version string where numbers are seperated by non numbers. The only restricted character is the hyphen (-), which denotes the beginning of metadata.
- Currently, all metadata is stored in the first key of the metadata table. While it might seem more intuitive to just return a string comprising of the metadata, in the future this function may be able to break metadata into individual components if neccesary, so for long-term compatibility it will return a table.
Examples of what to expect using this function:
- Pure semantic style: "1.4.4 -beta"
- VO Update versioning: "1.8.640.1"
- Incremental Version Numbering: "4"
- Release/date/build number: "r16y23m3 -b104"
As you can see, it should allow Neoloader to be versatile in handling a wide range of modder preferences, as long as their own individual styles remain consistant.