Dunno
This commit is contained in:
@@ -42,14 +42,13 @@ public:
|
||||
typedef std::shared_ptr<CSiaOutput> CSiaOutputPtr;
|
||||
|
||||
public:
|
||||
CSiaTransaction(const json& _json);
|
||||
CSiaTransaction(const json& json);
|
||||
|
||||
private:
|
||||
json _json;
|
||||
|
||||
JProperty2(std::uint64_t, ConfirmationTimeStamp, confirmationtimestamp, public, private, _json)
|
||||
JProperty2(std::uint64_t, ConfirmationHeight, confirmationheight, public, private, _json)
|
||||
JProperty2(std::string, Transaction, transaction, public, private, _json)
|
||||
JProperty2(std::string, TransactionId, transactionid, public, private, _json)
|
||||
Property(std::vector<CSiaInputPtr>, Inputs, public, private)
|
||||
Property(std::vector<CSiaOutputPtr>, Outputs, public, private)
|
||||
|
@@ -84,14 +84,22 @@ public:
|
||||
|
||||
static inline std::string ToUtf8(const std::wstring &str)
|
||||
{
|
||||
std::wstring_convert<deletable_facet<std::codecvt<wchar_t, char, std::mbstate_t>>, wchar_t> conv;
|
||||
return conv.to_bytes(str);
|
||||
if (str.length())
|
||||
{
|
||||
std::wstring_convert<deletable_facet<std::codecvt<wchar_t, char, std::mbstate_t>>, wchar_t> conv;
|
||||
return conv.to_bytes(str);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static inline std::wstring FromUtf8(const std::string &str)
|
||||
{
|
||||
std::wstring_convert<deletable_facet<std::codecvt<wchar_t, char, std::mbstate_t>>, wchar_t> conv;
|
||||
return conv.from_bytes(str);
|
||||
if (str.length())
|
||||
{
|
||||
std::wstring_convert<deletable_facet<std::codecvt<wchar_t, char, std::mbstate_t>>, wchar_t> conv;
|
||||
return conv.from_bytes(str);
|
||||
}
|
||||
return L"";
|
||||
}
|
||||
|
||||
static inline String &LeftTrim(String &s)
|
||||
|
Reference in New Issue
Block a user