aGrUM  0.17.2
a C++ library for (probabilistic) graphical models
cast_unicode.h
Go to the documentation of this file.
1 
30 #ifndef CAST_UNICODE_H
31 #define CAST_UNICODE_H
32 
33 #include <iostream>
34 #include <locale>
35 #include <sstream>
36 #include <string>
37 
43 std::wstring widen(const std::string& str);
44 
50 std::string narrow(const std::wstring& str);
51 
52 #ifndef GUM_NO_INLINE
54 #endif
55 
56 #endif // CAST_UNICODE_H
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
std::wstring widen(const std::string &str)
Cast a std::string into a std::wstring.
std::string narrow(const std::wstring &str)
Cast a std::wstring into a std::string.