Changeset 49039 in vbox for trunk/include/iprt
- Timestamp:
- Oct 10, 2013 6:27:32 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 89816
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mangling.h
r48850 r49039 653 653 # define RTLdrRelocate RT_MANGLER(RTLdrRelocate) 654 654 # define RTLdrRvaToSegOffset RT_MANGLER(RTLdrRvaToSegOffset) 655 # define RTLdrQueryProp RT_MANGLER(RTLdrQueryProp) 655 656 # define RTLdrSegOffsetToRva RT_MANGLER(RTLdrSegOffsetToRva) 656 657 # define RTLdrSize RT_MANGLER(RTLdrSize) … … 976 977 # define RTPathExists RT_MANGLER(RTPathExists) 977 978 # define RTPathExistsEx RT_MANGLER(RTPathExistsEx) 978 # define RTPath Ext RT_MANGLER(RTPathExt)979 # define RTPathSuffix RT_MANGLER(RTPathSuffix) 979 980 # define RTPathFilename RT_MANGLER(RTPathFilename) 980 981 # define RTPathFilenameEx RT_MANGLER(RTPathFilenameEx) 981 982 # define RTPathGetCurrent RT_MANGLER(RTPathGetCurrent) 982 983 # define RTPathGetMode RT_MANGLER(RTPathGetMode) 983 # define RTPathHas Ext RT_MANGLER(RTPathHasExt)984 # define RTPathHasSuffix RT_MANGLER(RTPathHasSuffix) 984 985 # define RTPathHasPath RT_MANGLER(RTPathHasPath) 985 986 # define RTPathIsSame RT_MANGLER(RTPathIsSame) … … 1009 1010 # define RTPathStartsWith RT_MANGLER(RTPathStartsWith) 1010 1011 # define RTPathStartsWithRoot RT_MANGLER(RTPathStartsWithRoot) 1011 # define RTPathStrip Ext RT_MANGLER(RTPathStripExt)1012 # define RTPathStripSuffix RT_MANGLER(RTPathStripSuffix) 1012 1013 # define RTPathStripFilename RT_MANGLER(RTPathStripFilename) 1013 1014 # define RTPathStripTrailingSlash RT_MANGLER(RTPathStripTrailingSlash) -
trunk/include/iprt/path.h
r46162 r49039 316 316 317 317 /** 318 * Strips the extensionfrom a path.319 * 320 * @param pszPath Path which extensionshould be stripped.321 */ 322 RTDECL(void) RTPathStrip Ext(char *pszPath);318 * Strips the last suffix from a path. 319 * 320 * @param pszPath Path which suffix should be stripped. 321 */ 322 RTDECL(void) RTPathStripSuffix(char *pszPath); 323 323 324 324 /** … … 397 397 398 398 /** 399 * Finds the extension part of in a path. 400 * 401 * @returns Pointer to extension within pszPath. 402 * @returns NULL if no extension. 403 * @param pszPath Path to find extension in. 404 */ 405 RTDECL(char *) RTPathExt(const char *pszPath); 406 407 /** 408 * Checks if a path has an extension. 409 * 410 * @returns true if extension present. 411 * @returns false if no extension. 399 * Finds the suffix part of in a path (last dot and onwards). 400 * 401 * @returns Pointer to suffix within pszPath. 402 * @returns NULL if no suffix 403 * @param pszPath Path to find suffix in. 404 * 405 * @remarks IPRT terminology: A suffix includes the dot, the extension starts 406 * after the dot. For instance suffix '.txt' and extension 'txt'. 407 */ 408 RTDECL(char *) RTPathSuffix(const char *pszPath); 409 410 /** 411 * Checks if a path has an extension / suffix. 412 * 413 * @returns true if extension / suffix present. 414 * @returns false if no extension / suffix. 412 415 * @param pszPath Path to check. 413 416 */ 414 RTDECL(bool) RTPathHas Ext(const char *pszPath);415 /** Misspelled, don't use. */416 #define RTPathHa veExt RTPathHasExt417 RTDECL(bool) RTPathHasSuffix(const char *pszPath); 418 /** Same thing, different name. */ 419 #define RTPathHasExt RTPathHasSuffix 417 420 418 421 /**
Note:
See TracChangeset
for help on using the changeset viewer.