summaryrefslogtreecommitdiff
path: root/fluid/fluid_filename.h
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-03-07 00:48:18 +0100
committerMatthias Melcher <github@matthiasm.com>2025-03-07 00:48:18 +0100
commit9cfd932d3a0d8d8fba61e0ffb91614b8fdcbafea (patch)
tree3581cf1c2cba5ada829a9ebdaf58c80302281c7a /fluid/fluid_filename.h
parent3068c7a0af0afbad572f88e074235853fd8be34c (diff)
Replce Fl_String in Fluid with std::string.
Also fix for Linux.
Diffstat (limited to 'fluid/fluid_filename.h')
-rw-r--r--fluid/fluid_filename.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/fluid/fluid_filename.h b/fluid/fluid_filename.h
index 2ac489ee6..7bcea51fb 100644
--- a/fluid/fluid_filename.h
+++ b/fluid/fluid_filename.h
@@ -18,10 +18,10 @@
\brief File names and URI utility functions for FLUID only.
- This file declares all fl_filename* functions using Fl_String and also
+ This file declares all fl_filename* functions using std::string and also
includes the main header file <FL/filename.H>.
- \note This file contains some filename functions using Fl_String which
+ \note This file contains some filename functions using std::string which
which are used in FLTK 1.4.x but will be removed in the next minor
or major release after 1.4.x (i.e. 1.5 or maybe 4.0).
@@ -41,17 +41,17 @@
#include "../src/Fl_String.H"
-Fl_String fl_filename_shortened(const Fl_String &filename, int maxchars);
-Fl_String fl_filename_name(const Fl_String &filename);
-Fl_String fl_filename_path(const Fl_String &filename);
-Fl_String fl_filename_ext(const Fl_String &filename);
-Fl_String fl_filename_setext(const Fl_String &filename, const Fl_String &new_extension);
-Fl_String fl_filename_expand(const Fl_String &from);
-Fl_String fl_filename_absolute(const Fl_String &from);
-Fl_String fl_filename_absolute(const Fl_String &from, const Fl_String &base);
-Fl_String fl_filename_relative(const Fl_String &from);
-Fl_String fl_filename_relative(const Fl_String &from, const Fl_String &base);
-Fl_String fl_getcwd();
+std::string fl_filename_shortened(const std::string &filename, int maxchars);
+std::string fl_filename_name(const std::string &filename);
+std::string fl_filename_path(const std::string &filename);
+std::string fl_filename_ext(const std::string &filename);
+std::string fl_filename_setext(const std::string &filename, const std::string &new_extension);
+std::string fl_filename_expand(const std::string &from);
+std::string fl_filename_absolute(const std::string &from);
+std::string fl_filename_absolute(const std::string &from, const std::string &base);
+std::string fl_filename_relative(const std::string &from);
+std::string fl_filename_relative(const std::string &from, const std::string &base);
+std::string fl_getcwd();
# endif