Lines Matching defs:key
194 EXPECT_EQ(objVal.GetDouble("height1", 0.0), 0.0); // key not exist retrun default value
202 const char* key = "name";
203 Json2::Value name = objVal[key];
206 // key not exist
216 const char* key = "name";
217 const Json2::Value name = objVal[key];
220 // key not exist
230 std::string key = "name";
231 Json2::Value name = objVal[key];
234 // key not exist
244 std::string key = "name";
245 const Json2::Value name = objVal[key];
248 // key not exist
351 std::string key = "school";
352 Json2::Value school = objVal[key];
436 // key is nullptr
437 const char* key = nullptr;
438 bool ret = jsonData.Add(key, "aaa");
440 ret = jsonData.Add(key, false);
443 ret = jsonData.Add(key, d);
447 ret = jsonData.Add(key, val);
469 // key is nullptr
470 const char* key = nullptr;
471 bool ret = jsonData.Replace(key, "aaa");
473 ret = jsonData.Replace(key, false);
476 ret = jsonData.Replace(key, d);
480 ret = jsonData.Replace(key, val);
487 // key is nullptr
488 const char* key = nullptr;