Module liba.version

algorithm library version

Functions

new ([major[, minor[, third[, extra]]]]) constructor for algorithm library version
init (ctx[, major[, minor[, third[, extra]]]]) initialize for algorithm library version
parse (ctx, version) parse version string to version
check (major, minor, patch) algorithm library version check
cmp (lhs, rhs) compare the version lhs with the version rhs
lt (lhs, rhs) version lhs is less than version rhs
gt (lhs, rhs) version lhs is greater than version rhs
le (lhs, rhs) version lhs is less than or equal to version rhs
ge (lhs, rhs) version lhs is greater than or equal to version rhs
eq (lhs, rhs) version lhs is equal to version rhs
ne (lhs, rhs) version lhs is not equal to version rhs

Tables

liba.version algorithm library version number


Functions

new ([major[, minor[, third[, extra]]]])
constructor for algorithm library version

Parameters:

  • major integer version major number (optional)
  • minor integer version minor number (optional)
  • third integer version third number (optional)
  • extra integer version extra number (optional)

Returns:

    a.version algorithm library version userdata
init (ctx[, major[, minor[, third[, extra]]]])
initialize for algorithm library version

Parameters:

  • ctx a.version algorithm library version userdata
  • major integer version major number (optional)
  • minor integer version minor number (optional)
  • third integer version third number (optional)
  • extra integer version extra number (optional)

Returns:

    a.version algorithm library version userdata
parse (ctx, version)
parse version string to version

Parameters:

  • ctx a.version algorithm library version userdata
  • version string string to be parsed

Returns:

    a.version algorithm library version userdata
check (major, minor, patch)
algorithm library version check

Parameters:

  • major integer required major number
  • minor integer required minor number
  • patch integer required patch number

Returns:

  1. integer <0 library version is higher than required version
  2. integer >0 library version is lower than required version
  3. integer 0 library version is equal to required version
cmp (lhs, rhs)
compare the version lhs with the version rhs

Parameters:

Returns:

  1. integer <0 version lhs < version rhs
  2. integer >0 version lhs > version rhs
  3. integer 0 version lhs == version rhs
lt (lhs, rhs)
version lhs is less than version rhs

Parameters:

Returns:

    bool result of comparison
gt (lhs, rhs)
version lhs is greater than version rhs

Parameters:

Returns:

    bool result of comparison
le (lhs, rhs)
version lhs is less than or equal to version rhs

Parameters:

Returns:

    bool result of comparison
ge (lhs, rhs)
version lhs is greater than or equal to version rhs

Parameters:

Returns:

    bool result of comparison
eq (lhs, rhs)
version lhs is equal to version rhs

Parameters:

Returns:

    bool result of comparison
ne (lhs, rhs)
version lhs is not equal to version rhs

Parameters:

Returns:

    bool result of comparison

Tables

liba.version
algorithm library version number

Fields:

  • MAJOR algorithm library version major
  • MINOR algorithm library version minor
  • PATCH algorithm library version patch
  • TWEAK algorithm library version tweak
generated by LDoc 1.5.0 Last updated 2024-09-30 14:51:04