VirtualBox

Changeset 25011 in vbox for trunk/include/iprt


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

RTStrVersionCompare docs

File:
1 edited

Legend:

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

    r25005 r25011  
    10521052                                          size_t *poffPattern);
    10531053
    1054 
    1055 /** @defgroup rt_str_conv   String To/From Number Conversions
    1056  * @ingroup grp_rt_str
    1057  * @{ */
    1058 
    1059 /**
    1060  * Compares two version strings and returns the result. The version string has
    1061  * to be made of at least one number section, each section delimited by a ".",
    1062  * e.g. "123.45.67". Trailing zeros at the beginning and non-digits in a section
    1063  * will be skipped, so "12.foo006" becomes "12.6".
     1054/**
     1055 * Compares two version strings stricmp fashion.
     1056 *
     1057 * The version string is split up into sections at punctuation, spaces,
     1058 * underscores, dashes and pluss signs.  The sections are then split up into
     1059 * numeric and string sub-sections.  Finally, the sub-sections are compared
     1060 * in a numeric or case insesntivie fashion depending on what they are.
     1061 *
     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"
    10641064 *
    10651065 * @returns integer value indicating the relationship between the versions:
     
    10721072 */
    10731073RTDECL(int) RTStrVersionCompare(const char *pszVer1, const char *pszVer2);
     1074
     1075
     1076/** @defgroup rt_str_conv   String To/From Number Conversions
     1077 * @ingroup grp_rt_str
     1078 * @{ */
    10741079
    10751080/**
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