2 * psychlops_code_snippets.cpp
\r
3 * Psychlops Standard Library (Universal)
\r
5 * Last Modified 208/09/22 by Kenchi HOSOKAWA
\r
6 * (C) 2008 Kenchi HOSOKAWA, Kazushi MARUYA, Takao SATO
\r
10 #include "psychlops_code_snippets.h"
\r
14 #include <algorithm>
\r
17 namespace Psychlops {
\r
20 std::wstring StringToWString(const std::string& s)
\r
22 std::wstring temp(s.length(),L' ');
\r
23 std::copy(s.begin(), s.end(), temp.begin());
\r
28 std::string WStringToString(const std::wstring& s)
\r
30 std::string temp(s.length(), ' ');
\r
31 std::copy(s.begin(), s.end(), temp.begin());
\r
36 } /* <- namespace Psychlops */
\r