libfswatch  1.9.3
win_strings.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Enrico M. Crisostomo
3  *
4  * This program is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU General Public License as published by the Free Software
6  * Foundation; either version 3, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU General Public License along with
14  * this program. If not, see <http://www.gnu.org/licenses/>.
15  */
26 #ifndef FSW_WIN_STRINGS_H
27 # define FSW_WIN_STRINGS_H
28 
29 # include <string>
30 # include <cwchar>
31 
32 namespace fsw
33 {
40  namespace win_strings
41  {
48  std::string wstring_to_string(wchar_t *s);
49 
56  std::string wstring_to_string(const std::wstring& s);
57  }
58 }
59 
60 #endif /* FSW_WIN_STRINGS_H */
Main namespace of libfswatch.
Definition: event.cpp:23
string wstring_to_string(wchar_t *s)
Converts a wide character string into a string.
Definition: win_strings.cpp:25