91 const
char *__restrict dir,
100 size_t BLI_path_join(
char *__restrict dst,
size_t dst_len, const
char *path_first, ...)
120 int *__restrict r_offset,
150 bool BLI_path_program_extensions_add_win32(
char *name,
size_t maxlen);
212 unsigned short *r_digits_len);
218 char *
string, const
char *head, const
char *tail,
unsigned short numlen,
int pic);
363 void BLI_path_normalize_unc_16(
wchar_t *path_16);
364 void BLI_path_normalize_unc(
char *path_16,
int maxlen);
379 bool BLI_path_suffix(
char *
string,
size_t maxlen,
const char *suffix,
const char *sep)
384 # define BLI_path_cmp BLI_strcasecmp
385 # define BLI_path_ncmp BLI_strncasecmp
387 # define BLI_path_cmp strcmp
388 # define BLI_path_ncmp strncmp
408 # define FILE_MAXDIR 768
409 # define FILE_MAXFILE 256
410 # define FILE_MAX 1024
416 # define SEP_STR "\\"
417 # define ALTSEP_STR "/"
422 # define ALTSEP_STR "\\"
426 #define FILENAME_PARENT ".."
427 #define FILENAME_CURRENT "."
430 #define FILENAME_IS_PARENT(_n) (((_n)[0] == '.') && ((_n)[1] == '.') && ((_n)[2] == '\0'))
431 #define FILENAME_IS_CURRENT(_n) (((_n)[0] == '.') && ((_n)[1] == '\0'))
432 #define FILENAME_IS_CURRPAR(_n) \
433 (((_n)[0] == '.') && (((_n)[1] == '\0') || (((_n)[1] == '.') && ((_n)[2] == '\0'))))
#define ATTR_NONNULL(...)
const char * BLI_path_slash_find(const char *string) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
void BLI_path_to_display_name(char *display_name, int maxlen, const char *name) ATTR_NONNULL()
bool BLI_path_parent_dir_until_exists(char *path) ATTR_NONNULL()
bool BLI_path_extension_check_array(const char *str, const char **ext_array) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
void BLI_split_dir_part(const char *string, char *dir, size_t dirlen)
int BLI_path_sequence_decode(const char *string, char *head, char *tail, unsigned short *r_digits_len)
const char * BLI_path_basename(const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
bool BLI_path_make_safe(char *path) ATTR_NONNULL(1)
bool BLI_path_name_at_index(const char *__restrict path, int index, int *__restrict r_offset, int *__restrict r_len) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
bool BLI_filename_make_safe_ex(char *fname, bool allow_tokens) ATTR_NONNULL(1)
bool BLI_path_is_rel(const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
bool BLI_path_frame(char *path, int frame, int digits) ATTR_NONNULL()
void BLI_path_normalize_dir(const char *relabase, char *dir) ATTR_NONNULL(2)
const char * BLI_path_extension(const char *filepath) ATTR_NONNULL()
bool BLI_path_filename_ensure(char *filepath, size_t maxlen, const char *filename) ATTR_NONNULL()
bool BLI_make_existing_file(const char *name)
bool BLI_path_frame_check_chars(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
void BLI_split_dirfile(const char *string, char *dir, char *file, size_t dirlen, size_t filelen)
bool BLI_path_extension_glob_validate(char *ext_fnmatch) ATTR_NONNULL()
void BLI_path_normalize(const char *relabase, char *path) ATTR_NONNULL(2)
void BLI_setenv(const char *env, const char *val) ATTR_NONNULL(1)
bool BLI_path_extension_ensure(char *path, size_t maxlen, const char *ext) ATTR_NONNULL()
bool BLI_path_is_abs_from_cwd(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
bool BLI_path_program_search(char *fullname, size_t maxlen, const char *name)
void BLI_make_file_string(const char *relabase, char *string, const char *dir, const char *file)
void BLI_path_append(char *__restrict dst, size_t maxlen, const char *__restrict file) ATTR_NONNULL()
bool BLI_path_extension_check_glob(const char *str, const char *ext_fnmatch) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
bool BLI_path_extension_replace(char *path, size_t maxlen, const char *ext) ATTR_NONNULL()
void BLI_path_slash_rstrip(char *string) ATTR_NONNULL()
int ATTR_WARN_UNUSED_RESULT
bool BLI_path_frame_get(char *path, int *r_frame, int *r_digits_len) ATTR_NONNULL()
bool BLI_path_extension_check(const char *str, const char *ext) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
void BLI_path_sequence_encode(char *string, const char *head, const char *tail, unsigned short numlen, int pic)
bool BLI_path_contains(const char *container_path, const char *containee_path) ATTR_WARN_UNUSED_RESULT
const char * BLI_getenv(const char *env) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
size_t BLI_path_join(char *__restrict dst, size_t dst_len, const char *path_first,...) ATTR_NONNULL(1
bool BLI_path_abs_from_cwd(char *path, size_t maxlen) ATTR_NONNULL()
int BLI_path_slash_ensure(char *string) ATTR_NONNULL()
bool BLI_filename_make_safe(char *fname) ATTR_NONNULL(1)
void BLI_path_slash_native(char *path) ATTR_NONNULL()
int BLI_path_cmp_normalized(const char *p1, const char *p2) ATTR_NONNULL(1
void BLI_path_rel(char *file, const char *relfile) ATTR_NONNULL()
void BLI_setenv_if_new(const char *env, const char *val) ATTR_NONNULL(1)
bool BLI_path_frame_range(char *path, int sta, int end, int digits) ATTR_NONNULL()
const char * BLI_path_slash_rfind(const char *string) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
void BLI_path_frame_strip(char *path, char *r_ext, size_t ext_maxlen) ATTR_NONNULL()
bool BLI_path_parent_dir(char *path) ATTR_NONNULL()
void BLI_split_file_part(const char *string, char *file, size_t filelen)
bool BLI_path_extension_check_n(const char *str,...) ATTR_NONNULL(1) ATTR_SENTINEL(0)
bool BLI_path_is_unc(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
bool BLI_path_abs(char *path, const char *basepath) ATTR_NONNULL()
void BLI_join_dirfile(char *__restrict dst, size_t maxlen, const char *__restrict dir, const char *__restrict file) ATTR_NONNULL()
bool BLI_path_suffix(char *string, size_t maxlen, const char *suffix, const char *sep) ATTR_NONNULL()