MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / parseFatLabels

Function parseFatLabels

src/app_registry.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60std::vector<String> parseFatLabels(const String &stored) {
61 std::vector<String> labels;
62 int start = 0;
63 while (start < static_cast<int>(stored.length())) {
64 int comma = stored.indexOf(',', start);
65 String label = comma >= 0 ? stored.substring(start, comma) : stored.substring(start);
66 label.trim();
67 if (!label.isEmpty()) labels.push_back(label);
68 if (comma < 0) break;
69 start = comma + 1;
70 }
71 return labels;
72}
73
74String encodeFatLabels(const std::vector<String> &labels) {
75 String out;

Callers 1

loadFatLabelsForLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected