/usr/include/libfilezilla/glue/wx.hpp is in libfilezilla-dev 0.4.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #ifndef LIBFILEZILLA_GLUE_WX_HEADER
#define LIBFILEZILLA_GLUE_WX_HEADER
#include <wx/string.h>
#include "../string.hpp"
inline std::wstring to_wstring(wxString const& s) { return s.ToStdWstring(); }
namespace fz {
template<>
inline wxString str_tolower_ascii(wxString const& s)
{
wxString ret = s;
// wxString is just broken, can't even use range-based for loops with it.
for (auto it = ret.begin(); it != ret.end(); ++it) {
*it = tolower_ascii(static_cast<wxChar>(*it));
}
return ret;
}
inline native_string to_native(wxString const& in)
{
return to_native(in.ToStdWstring());
}
}
#endif
|