source: filezilla/trunk/fuentes/src/include/fzstring.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 573 bytes
Line 
1#ifndef FILEZILLA_ENGINE_FZSTRING_HEADER
2#define FILEZILLA_ENGINE_FZSTRING_HEADER
3
4#include "libfilezilla.h"
5
6#include <string>
7
8typedef std::wstring fzstring;
9
10inline fzstring to_fzstring(wxString const& s) { return s.ToStdWstring(); }
11#ifdef __WXMSW__
12inline int collate_fzstring(fzstring const& a, fzstring const& b) { return _wcsicmp(a.c_str(), b.c_str()); } // note: does not handle embedded null
13#else
14inline int collate_fzstring(fzstring const& a, fzstring const& b) { return wcscasecmp(a.c_str(), b.c_str()); } // note: does not handle embedded null
15#endif
16
17#endif
Note: See TracBrowser for help on using the repository browser.