diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-08-26 16:48:28 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-08-26 16:48:28 +0200 |
| commit | 92ac709b7e87a82b3eb19f9ea34a0a48abe26d75 (patch) | |
| tree | 47e1e819c0776bde03ccdfedc589a5618a6b193b /FL/filename.H | |
| parent | 3ed43363cd77542c2fbc41aed173d6dd3296a4a2 (diff) | |
Adds safe versions of fl_filename_*, returning Fl_String
Diffstat (limited to 'FL/filename.H')
| -rw-r--r-- | FL/filename.H | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/FL/filename.H b/FL/filename.H index d9caa70bb..fb2272b43 100644 --- a/FL/filename.H +++ b/FL/filename.H @@ -53,6 +53,20 @@ FL_EXPORT int fl_filename_relative(char *to, int tolen, const char *from); FL_EXPORT int fl_filename_match(const char *name, const char *pattern); FL_EXPORT int fl_filename_isdir(const char *name); +# if defined(__cplusplus) + +class Fl_String; + +FL_EXPORT Fl_String fl_filename_name(const Fl_String &filename); +FL_EXPORT Fl_String fl_filename_path(const Fl_String &filename); +FL_EXPORT Fl_String fl_filename_ext(const Fl_String &filename); +FL_EXPORT Fl_String fl_filename_setext(const Fl_String &filename, const Fl_String &new_extension); +FL_EXPORT Fl_String fl_filename_expand(const Fl_String &from); +FL_EXPORT Fl_String fl_filename_absolute(const Fl_String &from); +FL_EXPORT Fl_String fl_filename_relative(const Fl_String &from); + +# endif + # if defined(__cplusplus) && !defined(FL_DOXYGEN) /* * Under Windows, we include filename.H from numericsort.c; this should probably change... |
