MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / formatCSV

Function formatCSV

samples/exifdata.cpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47std::string formatCSV(Exiv2::ExifData& exifData) {
48 size_t count = 0;
49 size_t length = formatInit(exifData);
50 std::ostringstream result;
51
52 for (auto i = exifData.begin(); count++ < length; ++i) {
53 result << escapeCSV(i, false) << (count != length ? ", " : "");
54 }
55 result << std::endl;
56
57 count = 0;
58 for (auto i = exifData.begin(); count++ < length; ++i) {
59 result << escapeCSV(i, true) << (count != length ? ", " : "");
60 }
61 return result.str();
62}
63
64///////////////////////////////////////////////////////////////////////
65std::string formatWolf(Exiv2::ExifData& exifData) {

Callers 1

mainFunction · 0.85

Calls 3

formatInitFunction · 0.85
escapeCSVFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected