Changeset View
Changeset View
Standalone View
Standalone View
src/rest.cpp
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | static enum RetFormat ParseDataFormat(std::string ¶m, | ||||
} | } | ||||
/* If no suffix is found, return original string. */ | /* If no suffix is found, return original string. */ | ||||
param = strReq; | param = strReq; | ||||
return rf_names[0].rf; | return rf_names[0].rf; | ||||
} | } | ||||
static std::string AvailableDataFormatsString() { | static std::string AvailableDataFormatsString() { | ||||
std::string formats = ""; | std::string formats; | ||||
for (size_t i = 0; i < ARRAYLEN(rf_names); i++) { | for (size_t i = 0; i < ARRAYLEN(rf_names); i++) { | ||||
if (strlen(rf_names[i].name) > 0) { | if (strlen(rf_names[i].name) > 0) { | ||||
formats.append("."); | formats.append("."); | ||||
formats.append(rf_names[i].name); | formats.append(rf_names[i].name); | ||||
formats.append(", "); | formats.append(", "); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 600 Lines • Show Last 20 Lines |