| 134 | */ |
| 135 | |
| 136 | static std::string getNameChunk(const virtual_identity *id, int start, int end) |
| 137 | { |
| 138 | if (!id) |
| 139 | return "UNKNOWN"; |
| 140 | const char *name = id->getName(); |
| 141 | int len = strlen(name); |
| 142 | if (len > start + end) |
| 143 | return std::string(name+start, len-start-end); |
| 144 | else |
| 145 | return name; |
| 146 | } |
| 147 | |
| 148 | /* |
| 149 | * Classifying focus context by means of a string path. |
no test coverage detected