CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
path.h File Reference

Platform-independent path manipulation. More...

#include <cx/container/sarray.h>
#include <cx/cx.h>

Go to the source code of this file.

Macros

#define pathJoin(out, ...)   _pathJoin(out, count_macro_args(__VA_ARGS__), (strref[]) { __VA_ARGS__ })
 

Enumerations

enum  PathMatchFlags { PATH_LeadingDir = 1 , PATH_IgnorePath = 2 , PATH_Smart = 4 , PATH_CaseInsensitive = 8 }
 

Functions

void pathNormalize (string *path)
 
bool pathDecompose (string *ns, sa_string *components, strref path)
 
bool pathCompose (string *out, strref ns, sa_string components)
 
bool pathIsAbsolute (strref path)
 
bool pathParent (string *out, strref path)
 
bool pathFilename (string *out, strref path)
 
bool pathSplitNS (string *nspart, string *pathpart, strref path)
 
void pathAddExt (string *out, strref path, strref ext)
 
bool pathRemoveExt (string *out, strref path)
 
bool pathGetExt (string *out, strref path)
 
void pathSetExt (string *out, strref path, strref ext)
 
bool pathMatch (strref path, strref pattern, uint32 flags)
 

Detailed Description

Platform-independent path manipulation.

Definition in file path.h.