MCPcopy Create free account
hub / github.com/SFML/SFML / ListingResponse

Method ListingResponse

src/SFML/Network/Ftp.cpp:138–150  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

136
137////////////////////////////////////////////////////////////
138Ftp::ListingResponse::ListingResponse(const Ftp::Response& response, const std::string& data) : Ftp::Response(response)
139{
140 if (isOk())
141 {
142 // Fill the array of strings
143 std::string::size_type lastPos = 0;
144 for (std::string::size_type pos = data.find("\r\n"); pos != std::string::npos; pos = data.find("\r\n", lastPos))
145 {
146 m_listing.push_back(data.substr(lastPos, pos - lastPos));
147 lastPos = pos + 2;
148 }
149 }
150}
151
152
153////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected