39 #ifndef picox_filesystem_xfpath_h_ 40 #define picox_filesystem_xfpath_h_ 82 char*
xfpath_join(
char* p1,
const char* p2,
size_t size);
168 char*
xfpath_top(
const char* path,
char** o_end);
214 char*
xfpath_tail(
const char* path,
const char* end,
char** o_end);
333 char*
xfpath_parent(
const char* path,
const char* end,
char** o_end);
char xfpath_drive(const char *path)
Definition: xfpath.c:299
XError
errnoの代替として使用する共通のエラーコードを表す列挙型です
Definition: xstddef.h:367
bool xfpath_is_root(const char *path)
Definition: xfpath.c:311
char * xfpath_parent(const char *path, const char *end, char **o_end)
パスの上位パスを返します
Definition: xfpath.c:271
XError xfpath_resolve(char *dst, const char *cwd, const char *path, size_t size)
パスを正規化します
Definition: xfpath.c:127
char * xfpath_top(const char *path, char **o_end)
パスの先頭要素を返します
Definition: xfpath.c:150
char * xfpath_stem(const char *path, char **o_end)
パスのファイル名から拡張子を除いた部分を返します
Definition: xfpath.c:244
char * xfpath_resolve_dot(char *path)
パス中に含まれる".."や"."を展開した結果を返します
Definition: xfpath.c:79
bool xfpath_is_absolute(const char *path)
Definition: xfpath.c:328
char * xfpath_tail(const char *path, const char *end, char **o_end)
パスの末尾要素を返します
Definition: xfpath.c:166
char * xfpath_name(const char *path, char **o_end)
パスのファイル名を返します
Definition: xfpath.c:208
char * xfpath_join(char *p1, const char *p2, size_t size)
sizeバイトの領域を持つパスp1とパスp2を連結して返します
Definition: xfpath.c:42
char * xfpath_suffix(const char *path, char **o_end)
パスのファイル名の拡張子を返します
Definition: xfpath.c:214
bool xfpath_is_relative(const char *path)
Definition: xfpath.c:341