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

Function StringVectorToCStringVector

client/client_argv_handling.cc:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void StringVectorToCStringVector(const std::vector<std::string>& strings,
71 std::vector<const char*>* c_strings) {
72 c_strings->clear();
73 c_strings->reserve(strings.size() + 1);
74 for (const auto& str : strings) {
75 c_strings->push_back(str.c_str());
76 }
77 c_strings->push_back(nullptr);
78}
79
80} // namespace crashpad

Callers 2

StartHandlerMethod · 0.85
InitializeMethod · 0.85

Calls 3

clearMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected