MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / ParseDataFormat

Function ParseDataFormat

src/rest.cpp:73–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static enum RetFormat ParseDataFormat(vector<string>& params, const string& strReq)
74{
75 boost::split(params, strReq, boost::is_any_of("."));
76 if (params.size() > 1) {
77 for (unsigned int i = 0; i < ARRAYLEN(rf_names); i++)
78 if (params[1] == rf_names[i].name)
79 return rf_names[i].rf;
80 }
81
82 return rf_names[0].rf;
83}
84
85static string AvailableDataFormatsString()
86{

Callers 7

rest_headersFunction · 0.85
rest_blockFunction · 0.85
rest_chaininfoFunction · 0.85
rest_mempool_infoFunction · 0.85
rest_mempool_contentsFunction · 0.85
rest_txFunction · 0.85
rest_getutxosFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected