/**
* Get the status code from the given data.
- * @param data The data containing the status code at front, limited by " ".
- * @return The parsed status code.
- */
-std::string parse_status_code(std::string data)
-{
- std::list<std::string> tokens;
- boost::algorithm::split(tokens,data,boost::is_any_of(" "));
- if ( tokens.empty() )
- return "";
- return tokens.front();
-}
-
-
-/**
- * Get the status code from the given data.
- * @param data The data containing the status code at front, limited by " ".
+ * @param data The data containing the status code at front, limited by delimiter.
* @param delimiter The delimiter to use.
- * @return The parsed status code.
+ * @return The parsed status code
*/
std::string parse_status_code(std::string data, std::string delimiter)
{