summaryrefslogtreecommitdiff
path: root/fluid/tools/filename.h
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/tools/filename.h')
-rw-r--r--fluid/tools/filename.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/fluid/tools/filename.h b/fluid/tools/filename.h
index 3a4359633..85e4a2844 100644
--- a/fluid/tools/filename.h
+++ b/fluid/tools/filename.h
@@ -21,10 +21,32 @@
#ifndef FLUID_TOOLS_FILENAME_H
#define FLUID_TOOLS_FILENAME_H
+#include <FL/filename.H>
+#include <FL/fl_utf8.h>
#include <string>
std::string fl_filename_shortened(const std::string &filename, int maxchars);
+// Wrapper functions for filename operations returning std::string
+// These are FLUID-local implementations of functions that were removed from core FLTK
+
+std::string fl_getcwd_str();
+std::string fl_filename_path_str(const char *filename);
+std::string fl_filename_path_str(const std::string &filename);
+std::string fl_filename_absolute_str(const char *from);
+std::string fl_filename_absolute_str(const std::string &from);
+std::string fl_filename_absolute_str(const char *from, const char *cwd);
+std::string fl_filename_absolute_str(const std::string &from, const std::string &cwd);
+std::string fl_filename_relative_str(const char *from);
+std::string fl_filename_relative_str(const std::string &from);
+std::string fl_filename_name_str(const char *filename);
+std::string fl_filename_name_str(const std::string &filename);
+std::string fl_filename_setext_str(const char *filename, const char *ext);
+std::string fl_filename_setext_str(const std::string &filename, const std::string &ext);
+std::string fl_filename_expand_str(const std::string &from);
+std::string fl_filename_ext_str(const char *filename);
+std::string fl_filename_ext_str(const std::string &filename);
+
namespace fld {
extern std::string end_with_slash(const std::string &fn);