blob: 7bcea51fb1fc01d4e945d943568f1da2309ef1e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*
* Filename header file for the Fast Light Tool Kit (FLTK).
*
* Copyright 1998-2023 by Bill Spitzak and others.
*
* This library is free software. Distribution and use rights are outlined in
* the file "COPYING" which should have been included with this file. If this
* file is missing or damaged, see the license at:
*
* https://www.fltk.org/COPYING.php
*
* Please see the following page on how to report bugs and issues:
*
* https://www.fltk.org/bugs.php
*/
/** \file fluid/fluid_filename.h
\brief File names and URI utility functions for FLUID only.
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 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).
\note This entire file should become obsolete in 1.5 or higher, whatever
the next release after 1.4.x will be. We'll use std::string instead!
*/
#ifndef FLUID_FILENAME_H
# define FLUID_FILENAME_H
#include <FL/Fl_Export.H>
#include <FL/platform_types.h>
#include <FL/filename.H>
# if defined(__cplusplus)
#include "../src/Fl_String.H"
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
/** @} */
#endif /* FLUID_FILENAME_H */
|