VirtualBox

Changeset 26520 in vbox


Ignore:
Timestamp:
Feb 15, 2010 1:47:34 AM (15 years ago)
Author:
vboxsync
Message:

iprt: Added RTPathChangeToUnixSlashes and RTPathChangeToDosSlashes.

Location:
trunk
Files:
2 added
2 edited

Legend:

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

    r26476 r26520  
    262262 */
    263263RTDECL(size_t) RTPathStripTrailingSlash(char *pszPath);
     264
     265/**
     266 * Changes all the slahes in the specified path to DOS style.
     267 *
     268 * Unless @a fForce is set, nothing will be done when on a UNIX flavored system
     269 * since paths wont work with DOS style slashes there.
     270 *
     271 * @returns @a pszPath.
     272 * @param   pszPath             The path to modify.
     273 * @param   fForce              Whether to force the conversion on non-DOS OSes.
     274 */
     275RTDECL(char *) RTPathChangeToDosSlashes(char *pszPath, bool fForce);
     276
     277/**
     278 * Changes all the slahes in the specified path to unix style.
     279 *
     280 * Unless @a fForce is set, nothing will be done when on a UNIX flavored system
     281 * since paths wont work with DOS style slashes there.
     282 *
     283 * @returns @a pszPath.
     284 * @param   pszPath             The path to modify.
     285 * @param   fForce              Whether to force the conversion on non-DOS OSes.
     286 */
     287RTDECL(char *) RTPathChangeToUnixSlashes(char *pszPath, bool fForce);
    264288
    265289/**
  • trunk/src/VBox/Runtime/Makefile.kmk

    r26519 r26520  
    273273        common/path/RTPathAbsExDup.cpp \
    274274        common/path/RTPathAppend.cpp \
     275        common/path/RTPathChangeToDosSlashes.cpp \
     276        common/path/RTPathChangeToUnixSlashes.cpp \
    275277        common/path/RTPathCopyComponents.cpp \
    276278        common/path/RTPathCountComponents.cpp \
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