45# define FL_PATH_MAX 2048
70# if defined(__cplusplus)
80FL_EXPORT std::string
fl_filename_setext_str(
const std::string &filename,
const std::string &new_extension);
90# if defined(__cplusplus) && !defined(FL_DOXYGEN)
101# if defined (__cplusplus)
105# if !defined(FL_DOXYGEN)
106FL_EXPORT
int fl_alphasort(
struct dirent **,
struct dirent **);
107FL_EXPORT
int fl_casealphasort(
struct dirent **,
struct dirent **);
114# if defined(__cplusplus)
130FL_EXPORT
int fl_open_uri(
const char *uri,
char *msg = (
char *)0,
std::string fl_filename_setext_str(const std::string &filename, const std::string &new_extension)
Return a copy of the old filename with the new extension.
Definition filename_absolute.cxx:339
int fl_filename_expand(char *to, int tolen, const char *from)
Expands a filename containing shell variables and tilde (~).
Definition filename_expand.cxx:42
#define FL_PATH_MAX
all path buffers should use this length
Definition filename.H:45
std::string fl_filename_path_str(const std::string &filename)
Return a new string that contains the path part of the filename.
Definition filename_absolute.cxx:311
int fl_filename_isdir(const char *name)
Determines if a file exists and is a directory from its filename.
Definition filename_isdir.cxx:36
std::string fl_getcwd_str()
Cross-platform function to get the current working directory as a UTF-8 encoded value in an std::stri...
Definition filename_absolute.cxx:413
int Fl_File_Sort_F(struct dirent **, struct dirent **)
File sorting function.
Definition filename.H:112
const char * fl_filename_name(const char *filename)
Gets the file name from a path.
Definition Fl.cxx:2193
int fl_filename_list(const char *d, struct dirent ***l, Fl_File_Sort_F *s=fl_numericsort)
Portable and const-correct wrapper for the scandir() function.
Definition filename_list.cxx:68
void fl_decode_uri(char *uri)
Decodes a URL-encoded string.
Definition fl_open_uri.cxx:113
std::string fl_filename_name_str(const std::string &filename)
Return a new string that contains the name part of the filename.
Definition filename_absolute.cxx:301
std::string fl_filename_absolute_str(const std::string &from)
Makes a filename absolute from a filename relative to the current working directory.
Definition filename_absolute.cxx:364
std::string fl_filename_relative_str(const std::string &from)
Makes a filename relative to the current working directory.
Definition filename_absolute.cxx:390
int fl_filename_relative(char *to, int tolen, const char *from)
Makes a filename relative to the current working directory.
Definition filename_absolute.cxx:172
int fl_open_uri(const char *uri, char *msg=(char *) 0, int msglen=0)
Opens the specified Uniform Resource Identifier (URI).
Definition fl_open_uri.cxx:74
int fl_filename_match(const char *name, const char *pattern)
Checks if a string s matches a pattern p.
Definition filename_match.cxx:49
std::string fl_filename_expand_str(const std::string &from)
Expands a filename containing shell variables and tilde (~).
Definition filename_absolute.cxx:352
const char * fl_filename_ext(const char *buf)
Gets the extension of a filename.
Definition filename_ext.cxx:31
std::string fl_filename_ext_str(const std::string &filename)
Return a new string that contains the filename extension.
Definition filename_absolute.cxx:328
char * fl_filename_setext(char *to, int tolen, const char *ext)
Replaces the extension in buf of max.
Definition filename_setext.cxx:38
int fl_filename_absolute(char *to, int tolen, const char *from)
Makes a filename absolute from a relative filename to the current working directory.
Definition filename_absolute.cxx:46
void fl_filename_free_list(struct dirent ***l, int n)
Free the list of filenames that is generated by fl_filename_list().
Definition filename_list.cxx:81
int fl_casenumericsort(struct dirent **A, struct dirent **B)
Compares directory entries alphanumerically (case-insensitive).
Definition numericsort.c:90
int fl_numericsort(struct dirent **A, struct dirent **B)
Compares directory entries alphanumerically (case-sensitive).
Definition numericsort.c:127