| 45 | } |
| 46 | |
| 47 | string ExtractLastPrompt(const stringstream& o) |
| 48 | { |
| 49 | auto content = o.str(); |
| 50 | std::size_t pos = content.find_last_of('\n'); |
| 51 | content = content.substr(pos+1); |
| 52 | pos = content.find_last_of('>'); |
| 53 | return content.substr(0, pos); |
| 54 | } |
| 55 | |
| 56 | /* takes |
| 57 |
no outgoing calls
no test coverage detected