File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
22* Processed pull requests #444-683 from nov14 to sep16:
3- #693: Reactivated ctest in simplified form
4- #444 rejected (won't compile)
5- #446 rejected (won't compile)
6- #493 rejected (not clear this is the right way to deal with illegal Unicode)
7-
3+ #693 reactivate ctest in simplified form
4+ #555 fix windows path issue
5+ * Rejected the following old pull requests:
6+ #444 won't compile
7+ #446 won't compile
8+ #493 not clear this is the right way to deal with illegal Unicode
89
910v0.14.6
10112015.07.22
Original file line number Diff line number Diff line change 99#include < sys/stat.h>
1010#include < sys/types.h>
1111#include < cstring>
12-
12+ # include < libgen.h >
1313#include " path.h"
1414
1515#ifdef __MINGW32__
@@ -114,12 +114,18 @@ bool is_truetype_suffix(const string & suffix)
114114
115115string get_filename (const string & path)
116116{
117+ char * s= basename (strdup (path.c_str ()));
118+ std::string str (s);
119+ return str;
120+
121+ /*
117122 size_t idx = path.rfind('/');
118123 if(idx == string::npos)
119124 return path;
120125 else if (idx == path.size() - 1)
121126 return "";
122127 return path.substr(idx + 1);
128+ */
123129}
124130
125131string get_suffix (const string & path)
You can’t perform that action at this time.
0 commit comments