neoWidgets
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Static Public Member Functions | List of all members
neo::Path Class Reference

Manipulation of Windows-style path strings. More...

#include <util.h>

Static Public Member Functions

static tstring ChangeExt (const tstring &path, const tstring &ext)
 Utility to change the extension while leaving the rest intact.
 
static tstring ChangeFilename (const tstring &path, const tstring &name)
 Utility to change the filename while leaving extension and parent intact.
 
static bool Exists (const tstring &path)
 Check if the path points to an existing item.
 
static tstring GetCurrentDir ()
 Current working directory for this app.
 
static tstring GetDrive (const tstring &path)
 Root of the path, either a drive letter (C:) or network root (\server)
 
static tstring GetExt (const tstring &path)
 Filename extension.
 
static tstring GetFilename (const tstring &path)
 Filename with extension.
 
static tstring GetFilenameWithoutExt (const tstring &path)
 Filename without extension.
 
static tstring GetParent (const tstring &path)
 Removes trailing file or directory from the path.
 
static bool HasExt (const tstring &path)
 Check for filename extension.
 
static bool IsAbsolute (const tstring &path)
 Check if the path has a root.
 
static bool IsDirectory (const tstring &path)
 Check if the item is a directory.
 
static bool IsFile (const tstring &path)
 Check if the item is a file.
 
static tstring Join (const tstring &p1, const tstring &p2)
 Semi-intelligently combines parts into a correct path.
 
static tstring Join (const tstring &p1, const tstring &p2, const tstring &p3)
 Semi-intelligently combines parts into a correct path.
 
static tstring Join (const tstring &p1, const tstring &p2, const tstring &p3, const tstring &p4)
 Semi-intelligently combines parts into a correct path.
 
static std::pair< tstring,
tstring > 
SplitDrive (const tstring &path)
 split path in two at the root
 
static std::pair< tstring,
tstring > 
SplitExt (const tstring &path)
 split path in two at the extension dot
 
static std::pair< tstring,
tstring > 
SplitParent (const tstring &path)
 split path into parent directory and filename
 

Detailed Description

Manipulation of Windows-style path strings.


The documentation for this class was generated from the following files: