MCPcopy Create free account
hub / github.com/ceph/ceph / get_array_elements

Method get_array_elements

src/common/ceph_json.cc:199–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199vector<string> JSONObj::get_array_elements()
200{
201 vector<string> elements;
202 Array temp_array;
203
204 if (data.type() == array_type)
205 temp_array = data.get_array();
206
207 int array_size = temp_array.size();
208 if (array_size > 0)
209 for (int i = 0; i < array_size; i++) {
210 Value temp_value = temp_array[i];
211 string temp_string;
212 temp_string = write(temp_value, raw_utf8);
213 elements.push_back(temp_string);
214 }
215
216 return elements;
217}
218
219JSONParser::JSONParser() : buf_len(0), success(true)
220{

Callers 9

validate_signatureMethod · 0.80
TESTFunction · 0.80
get_log_listFunction · 0.80
get_bilog_listFunction · 0.80
get_datalog_listFunction · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
get_pool_idMethod · 0.80
get_inconsistent_pgsMethod · 0.80

Calls 4

writeFunction · 0.70
typeMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by 7

TESTFunction · 0.64
get_log_listFunction · 0.64
get_bilog_listFunction · 0.64
get_datalog_listFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
get_pool_idMethod · 0.64