Function

AppStream-1.0AppStreamvercmp_simple

  • Compare alpha and numeric segments of two software versions.

    Parameters

    • a: string

      First version number

    • b: string

      Second version number

    Returns number

    an integer > 0 if a is newer than b; 0 if a and b are the same version; < 0 if b is newer than a