VirtualBox

Changeset 85382 in vbox for trunk/include


Ignore:
Timestamp:
Jul 18, 2020 11:33:58 AM (5 years ago)
Author:
vboxsync
Message:

iprt/path.h: Adjustments and a bunch of todos for RTPathFindCommon[Ex].

File:
1 edited

Legend:

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

    r85313 r85382  
    521521
    522522/**
     523 * Finds the common path in a given set of paths.
     524 *
     525 * The paths are not made absolute or real, they are taken as given.
     526 *
     527 * @returns Length (in characters) of the common path, 0 if not found.
     528 * @param   cPaths      Number of paths in \a papszPaths.
     529 * @param   papszPaths  Array of paths to find common path for.
     530 */
     531RTDECL(size_t) RTPathFindCommon(size_t cPaths, const char * const *papszPaths);
     532
     533/**
    523534 * Finds the common path in a given set of paths, extended version.
    524535 *
    525  * Note: This does not check paths for existience or other things (e.g. symlinks).
     536 * The paths are not made absolute or real, they are taken as given.
    526537 *
    527538 * @returns Length (in characters) of the common path, 0 if not found.
    528  * @param   papcszPaths         Array of paths to find common path for.
    529  * @param   cPaths              Number of paths in \a papcszPaths.
    530  * @param   szSeparator         Path separator to use for comparision.
    531  */
    532 RTDECL(size_t) RTPathFindCommonEx(const char * const *papcszPaths, size_t cPaths, char szSeparator);
    533 
    534 /**
    535  * Finds the common path in a given set of paths.
    536  *
    537  * Uses the system's native slash as separator.
    538  * Note: This does not check paths for existience or other things (e.g. symlinks).
    539  *
    540  * @returns Length (in characters) of the common path, 0 if not found.
    541  * @param   papcszPaths         Array of paths to find common path for.
    542  * @param   cPaths              Number of paths in \a papcszPaths.
    543  */
    544 RTDECL(size_t) RTPathFindCommon(const char * const *papcszPaths, size_t cPaths);
     539 * @param   cPaths      Number of paths in \a papszPaths.
     540 * @param   papszPaths  Array of paths to find common path for.
     541 * @param   fFlags      RTPATH_STR_F_STYLE_XXX. Other RTPATH_STR_F_XXX flags
     542 *                      will be ignored.
     543 */
     544RTDECL(size_t) RTPathFindCommonEx(size_t cPaths, const char * const *papszPaths, uint32_t fFlags);
    545545
    546546/**
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