MCPcopy Create free account
hub / github.com/chromium/crashpad / CommandLineArgumentToFilePathStringType

Method CommandLineArgumentToFilePathStringType

tools/tool_support.cc:94–101  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

92
93// static
94base::FilePath::StringType ToolSupport::CommandLineArgumentToFilePathStringType(
95 std::string_view path) {
96#if BUILDFLAG(IS_POSIX)
97 return std::string(path.data(), path.size());
98#elif BUILDFLAG(IS_WIN)
99 return base::UTF8ToWide(path);
100#endif // BUILDFLAG(IS_POSIX)
101}
102
103// static
104std::string ToolSupport::FilePathToCommandLineArgument(

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected