#include <algorithm>
#include <iterator>
#include <new>
-#include <sstream>
-#include <Commons/Exception.h>
#include "StringUtils.h"
namespace WrtDeviceApis {
}
std::string merge(const std::vector<std::string>& strs,
- std::string::value_type delim)
+ std::string::value_type delim)
{
typedef std::vector<std::string> Strings;
return result;
}
-int toInt(const std::string &text)
+int toInt(const std::string& str)
{
- int result;
- std::stringstream ss(text);
- if (!(ss >> result)) {
- Throw(ConversionException);
- }
- return result;
+ return convertTo<int>(str);
}
}
}
-} // WrtDeviceApisCommon
+}