MCPcopy Create free account
hub / github.com/Bwar/CJsonObject / ReplaceAdd

Method ReplaceAdd

CJsonObject.cpp:1535–1542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1533
1534#if __cplusplus < 201101L
1535bool CJsonObject::ReplaceAdd(const std::string& strKey, const CJsonObject& oJsonObject)
1536{
1537 if (KeyExist(strKey))
1538 {
1539 return(Replace(strKey, oJsonObject));
1540 }
1541 return(Add(strKey, oJsonObject));
1542}
1543
1544bool CJsonObject::ReplaceAdd(const std::string& strKey, const std::string& strValue)
1545{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected