MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / ArgsToUtf8

Function ArgsToUtf8

src/tools/CommandLine.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27std::vector<std::string> ArgsToUtf8(int argc, char* argv[]) {
28 std::vector<std::string> args;
29 args.reserve(static_cast<size_t>(argc));
30 for (int i = 0; i < argc; i++) {
31 args.push_back(argv[i]);
32 }
33 return args;
34}
35
36} // namespace
37

Callers 1

mainFunction · 0.85

Calls 2

reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected