VirtualBox

Changeset 25014 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Nov 26, 2009 3:26:36 PM (15 years ago)
Author:
vboxsync
Message:

RTStrVersionCompare: made it return the same as RTStrICmp (-1,0,1).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/string.h

    r25011 r25014  
    10531053
    10541054/**
    1055  * Compares two version strings stricmp fashion.
     1055 * Compares two version strings RTStrICmp fashion.
    10561056 *
    10571057 * The version string is split up into sections at punctuation, spaces,
     
    10601060 * in a numeric or case insesntivie fashion depending on what they are.
    10611061 *
    1062  * The following strings are considered to be equal: "1.0.0", "1.0", "1".
    1063  * There aren't: "1.0.0r993", "1.0", "1.0r993", "1.0_Beta3"
    1064  *
    1065  * @returns integer value indicating the relationship between the versions:
    1066  * @retval  0, if both versions are equal.
    1067  * @retval  1, if pszVer1 is greater.
    1068  * @retval  2, if pszVer2 is greater.
     1062 * The following strings are considered to be equal: "1.0.0", "1.00.0", "1.0",
     1063 * "1".  These aren't: "1.0.0r993", "1.0", "1.0r993", "1.0_Beta3", "1.1"
     1064 *
     1065 * @returns < 0 if the first string less than the second string.
     1066 * @returns 0 if the first string identical to the second string.
     1067 * @returns > 0 if the first string greater than the second string.
    10691068 *
    10701069 * @param   pszVer1     First version string to compare.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette