MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / utf8string

Method utf8string

src/util/fs.h:75–79  ·  view source on GitHub ↗

* Return a UTF-8 representation of the path as a std::string, for * compatibility with code using std::string. For code using the newer * std::u8string type, it is more efficient to call the inherited * std::filesystem::path::u8string method instead. */

Source from the content-addressed store, hash-verified

73 * std::filesystem::path::u8string method instead.
74 */
75 std::string utf8string() const
76 {
77 const std::u8string& utf8_str{std::filesystem::path::u8string()};
78 return std::string{utf8_str.begin(), utf8_str.end()};
79 }
80};
81
82static inline path u8path(std::string_view utf8_str)

Callers 12

listwalletdirFunction · 0.80
migratewalletFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
PathToQStringFunction · 0.80
savemempoolFunction · 0.80
getrpcinfoFunction · 0.80
dumptxoutsetFunction · 0.80
WriteUTXOSnapshotFunction · 0.80
loadtxoutsetFunction · 0.80
exportasmapFunction · 0.80
fopenFunction · 0.80
PathToStringFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64