Boost lib has a class to deal with file path: boost::filesystem::path
.
Also Boos has this class boost::filesystem::wpath
Each class has methods string()
, wstring()
, c_str()
, native()
I develop Windows app and I completely do not understand what should I use ))
What is the difference between these two classes from the practical point of view? What is the difference between these methods?
What class and what methods should I use for Windows app? ::wpath
and wstring()
everywhere?
Part of sources (several statically linked libs) will be compiled for Ubuntu. In this situation ::wpath
still good?
Also I use SQLite
and it needs path to the database file. sqlite3_open.
I should use sqlite3_open_v2
(UTF-8 encoding for the file path) or sqlite3_open16
(UTF-16 encoding for the file path) ?
P.S. After reading this article link seems that ::path
and ::wpath
have no difference at all. Is it right?
Method native()
seems preferable for the source code that compiled for different platforms.