| 58 | } |
| 59 | |
| 60 | std::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 | |
| 74 | String encodeFatLabels(const std::vector<String> &labels) { |
| 75 | String out; |
no outgoing calls
no test coverage detected