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
25#include <iomanip>25#include <iomanip>
26#include <sstream>26#include <sstream>
27#include <locale>27#include <locale>
28#include <codecvt>28#include <boost/locale.hpp>
29#include <boost/uuid/uuid_io.hpp>29#include <boost/uuid/uuid_io.hpp>
30#include <boost/uuid/string_generator.hpp>30#include <boost/uuid/string_generator.hpp>
31#include <boost/date_time/posix_time/posix_time.hpp>31#include <boost/date_time/posix_time/posix_time.hpp>
@@ -36,6 +36,7 @@ · 4 unmodified lines
36using namespace std;36using namespace std;
37using namespace std::chrono;37using namespace std::chrono;
38using namespace boost::uuids;38using namespace boost::uuids;
39using namespace boost::locale::conv;
39using namespace boost::posix_time;40using namespace boost::posix_time;
40using namespace boost::gregorian;41using namespace boost::gregorian;
41using namespace GSF;42using namespace GSF;
@@ -270,14 +271,12 @@ std::string GSF::ToString(const TimeSpan& value) · 228 unmodified lines
270 271
271wstring GSF::ToUTF16(const string& value)272wstring GSF::ToUTF16(const string& value)
272{273{
273 wstring_convert<codecvt_utf8<wchar_t>, wchar_t> converter;274 return utf_to_utf<wchar_t>(value);
274 return converter.from_bytes(value);
275}275}
276 276
277string GSF::ToUTF8(const wstring& value)277string GSF::ToUTF8(const wstring& value)
278{278{
279 wstring_convert<codecvt_utf8<wchar_t>, wchar_t> converter;279 return utf_to_utf<char>(value);
280 return converter.to_bytes(value);
281}280}
282 281
283bool GSF::ParseBoolean(const string& value)282bool 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