History

TimeSeriesPlatformLibrary: Improved handling of SignalIndexCache instance within DataPublisher

J. Ritchie Carroll committed 7 years ago

Commit a5cbc2b1 parent ad6759018 files · +199 −114Browse files

Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Common/Convert.cpp (1 of 18 files). Show all

Unified · Split

Source/Libraries/TimeSeriesPlatformLibrary/Common/Convert.cpp+4−5
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include <iomanip>
2626 #include <sstream>
2727 #include <locale>
28−#include <codecvt>
28+#include <boost/locale.hpp>
2929 #include <boost/uuid/uuid_io.hpp>
3030 #include <boost/uuid/string_generator.hpp>
3131 #include <boost/date_time/posix_time/posix_time.hpp>
@@ -36,6 +36,7 @@ · 4 unmodified lines
3636 using namespace std;
3737 using namespace std::chrono;
3838 using namespace boost::uuids;
39+using namespace boost::locale::conv;
3940 using namespace boost::posix_time;
4041 using namespace boost::gregorian;
4142 using namespace GSF;
@@ -270,14 +271,12 @@ std::string GSF::ToString(const TimeSpan& value) · 228 unmodified lines
270271
271272 wstring GSF::ToUTF16(const string& value)
272273 {
273− wstring_convert<codecvt_utf8<wchar_t>, wchar_t> converter;
274− return converter.from_bytes(value);
274+ return utf_to_utf<wchar_t>(value);
275275 }
276276
277277 string GSF::ToUTF8(const wstring& value)
278278 {
279− wstring_convert<codecvt_utf8<wchar_t>, wchar_t> converter;
280− return converter.to_bytes(value);
279+ return utf_to_utf<char>(value);
281280 }
282281
283282 bool GSF::ParseBoolean(const string& value)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t