Lines Matching defs:index
520 bool Value::Replace(int index, bool value)
522 if (index < 0 || index >= GetArraySize()) {
529 if (!cJSON_ReplaceItemInArray(jsonPtr, index, child)) {
536 bool Value::Replace(int index, int32_t value)
538 return Replace(index, static_cast<double>(value));
541 bool Value::Replace(int index, uint32_t value)
543 return Replace(index, static_cast<double>(value));
546 bool Value::Replace(int index, int64_t value)
548 return Replace(index, static_cast<double>(value));
551 bool Value::Replace(int index, double value)
553 if (index < 0 || index >= GetArraySize()) {
560 if (!cJSON_ReplaceItemInArray(jsonPtr, index, child)) {
567 bool Value::Replace(int index, const char* value)
569 if (index < 0 || index >= GetArraySize()) {
576 if (!cJSON_ReplaceItemInArray(jsonPtr, index, child)) {
583 bool Value::Replace(int index, const Value& value)
585 if (index < 0 || index >= GetArraySize()) {
593 if (!cJSON_ReplaceItemInArray(jsonPtr, index, jsonObject)) {
605 Value Value::GetArrayItem(int32_t index) const
607 return Value(cJSON_GetArrayItem(jsonPtr, index), false);