MCPcopy Create free account
hub / github.com/Clarionos/clarion / from_variant

Function from_variant

libraries/fc/src/filesystem.cpp:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 void from_variant( const fc::variant& variant_to_convert, fc::path& path_output )
42 {
43 std::wstring wide_string;
44 fc::decodeUtf8(variant_to_convert.as_string(), &wide_string);
45 path_output = path(wide_string);
46 }
47
48 // Note: we can do this cast because the separator should be an ASCII character
49 char path::separator_char = static_cast<char>(boost::filesystem::path("/").make_preferred().native()[0]);

Callers

nothing calls this directly

Calls 3

decodeUtf8Function · 0.85
as_stringMethod · 0.80
pathClass · 0.50

Tested by

no test coverage detected