![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org. More...
#include <iostream>
#include <locale>
#include <sstream>
#include <string>
#include <agrum/tools/core/cast_unicode_inl.h>
Go to the source code of this file.
Functions | |
std::wstring | widen (const std::string &str) |
Cast a std::string into a std::wstring. More... | |
std::string | narrow (const std::wstring &str) |
Cast a std::wstring into a std::string. More... | |
Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.
Unicode helper functions.
Definition in file cast_unicode.h.
std::string narrow | ( | const std::wstring & | str | ) |
Cast a std::wstring into a std::string.
str | The std::wstring to cast. |
Definition at line 50 of file cast_unicode_inl.h.
std::wstring widen | ( | const std::string & | str | ) |
Cast a std::string into a std::wstring.
str | The std::string to cast. |
Definition at line 39 of file cast_unicode_inl.h.