MCPcopy Create free account
hub / github.com/fmtlib/fmt / as_string

Function as_string

test/module-test.cc:151–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151std::string as_string(std::wstring_view text) {
152 return {reinterpret_cast<const char*>(text.data()),
153 text.size() * sizeof(text[0])};
154}
155
156TEST(module_test, print) {
157 EXPECT_WRITE(stdout, fmt::print("{}µ", 42), "42µ");

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected