| 297 | } |
| 298 | |
| 299 | rdcstr GetFirstMatchingLine(const rdcstr &haystack, const rdcstr &needle) |
| 300 | { |
| 301 | int needleOffset = haystack.find(needle); |
| 302 | |
| 303 | if(needleOffset == -1) |
| 304 | return rdcstr(); |
| 305 | |
| 306 | int nextLine = haystack.find('\n', needleOffset + 1); |
| 307 | |
| 308 | return haystack.substr(needleOffset, nextLine == -1 ? ~0U : size_t(nextLine - needleOffset)); |
| 309 | } |
| 310 | |
| 311 | bool IsDebuggable(const rdcstr &deviceID, const rdcstr &packageName) |
| 312 | { |
no test coverage detected