Function in stdx_filesystem.h

x_fs_path_compare

Compare two paths, ignoring separator type.

X_FILESYSTEM_API size_t x_fs_path_compare(
 const XFSPath *a,
 const XFSPath *b
);

Parameters

const XFSPath *a
First path.
const XFSPath *b
Second path.

Returns

0 if equal, <0 if a < b, >0 if a > b.

Function in stdx_filesystem.h

x_fs_path_compare_cstr

Compare a path against a C string path, ignoring separator type.

X_FILESYSTEM_API int32_t x_fs_path_compare_cstr(
 const XFSPath *a,
 const char *cstr
);

Parameters

const XFSPath *a
Path.
const char *cstr
C string path.

Returns

0 if equal, <0 if a < cstr, >0 if a > cstr.

Function in stdx_filesystem.h

x_fs_path_eq

Check whether a path equals a small string.

X_FILESYSTEM_API bool x_fs_path_eq(
 const XFSPath *a,
 const XSmallstr *b
);

Parameters

const XFSPath *a
Path.
const XSmallstr *b
Small string to compare against.

Returns

True if equal, false otherwise.

Function in stdx_filesystem.h

x_fs_path_eq_cstr

Check whether a path equals a C string path.

X_FILESYSTEM_API bool x_fs_path_eq_cstr(
 const XFSPath *a,
 const char *b
);

Parameters

const XFSPath *a
Path.
const char *b
C string path.

Returns

True if equal, false otherwise.