MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / tweakDateFromSummary

Function tweakDateFromSummary

unittest/unittest.cpp:261–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261static String * tweakDateFromSummary(String * summary) {
262 Array * components = summary->componentsSeparatedByString(MCSTR("\n"));
263 mc_foreacharray(String, line, components) {
264 if (line->hasPrefix(MCSTR("Date:"))) {
265 line->replaceOccurrencesOfString(MCSTR(" at "), MCSTR(" "));
266 }
267 }
268 return components->componentsJoinedByString(MCSTR("\n"));
269}
270
271static void testSummary(String * path)
272{

Callers 1

mc_foreacharrayFunction · 0.85

Calls 2

Tested by

no test coverage detected