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;
23 std::vector<std::string>
MergeStringArrays(std::vector<std::string> first, std::vector<std::string> second)
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);
71 std::string
ReplaceString(std::string subject,
const std::string& search,
const std::string& replace)
74 while ((pos = subject.find(search, pos)) != std::string::npos)
76 subject.replace(pos, search.length(), replace);
77 pos += replace.length();
a class to store JSON values
ValueType value(const typename object_t::key_type &key, const ValueType &default_value) const
access specified object element with default value
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)