Changeset 85382 in vbox for trunk/include
- Timestamp:
- Jul 18, 2020 11:33:58 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/path.h
r85313 r85382 521 521 522 522 /** 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 */ 531 RTDECL(size_t) RTPathFindCommon(size_t cPaths, const char * const *papszPaths); 532 533 /** 523 534 * Finds the common path in a given set of paths, extended version. 524 535 * 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. 526 537 * 527 538 * @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 */ 544 RTDECL(size_t) RTPathFindCommonEx(size_t cPaths, const char * const *papszPaths, uint32_t fFlags); 545 545 546 546 /**
Note:
See TracChangeset
for help on using the changeset viewer.