11 nlohmann::json pdb_config_result({});
14 right.value(
"structures",
std::vector<
std::string>{})
);
16 right.value(
"functions",
std::vector<
std::string>{})
);
18 right.value(
"globals",
std::vector<
std::string>{})
);
20 left = pdb_config_result;
25 std::vector<
std::string> merged, unique;
26 std::sort(first.begin(), first.end());
27 std::sort(second.begin(), second.end());
33 std::back_inserter(merged),
34 [](
std::string s1,
std::string s2)
36 return std::lexicographical_compare(
43 return std::tolower(c1) < std::tolower(c2);
52 std::back_inserter(unique),
53 [](
std::string s1,
std::string s2)
62 return std::tolower(c1) == std::tolower(c2);
74 while ((pos = subject.find(search, pos)) !=
std::string::npos)
76 subject.replace(pos, search.length(), replace);
77 pos += replace.length();
std::vector< std::string > MergeStringArrays(std::vector< std::string > first, std::vector< std::string > second)
std::string ReplaceString(std::string subject, const std::string &search, const std::string &replace)
void MergePdbConfig(nlohmann::json &left, const nlohmann::json &right)
namespace for Niels Lohmann