MCPcopy Create free account
hub / github.com/daniele77/cli / ExtractLastPrompt

Function ExtractLastPrompt

test/test_cli.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47string 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

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected