1 | //======================================================================== |
2 | // |
3 | // gbasename.h |
4 | // |
5 | // Wrapper for libgen's basename() call which returns a std::string. |
6 | // This is a convenience method working around questionable behavior |
7 | // in the copy of basename() provided by libgen.h. |
8 | // |
9 | // This file is licensed under the GPLv2 or later |
10 | // |
11 | // Copyright (C) 2018 Greg Knight <lyngvi@gmail.com> |
12 | // Copyright (C) 2019 Albert Astals Cid <aacid@kde.org> |
13 | // |
14 | //======================================================================== |
15 | |
16 | #ifndef GBASENAME_H |
17 | #define GBASENAME_H |
18 | |
19 | #include <string> |
20 | #include "poppler_private_export.h" |
21 | |
22 | std::string POPPLER_PRIVATE_EXPORT gbasename(const char *filename); |
23 | |
24 | #endif // ndef GBASENAME_H |
25 | |