2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Replaced Util::slice() with split()
	* src/AbstractCommand.cc
	* src/CookieParser.cc
	* src/File.cc
	* src/HttpHeaderProcessor.cc
	* src/HttpRequest.cc
	* src/Metalink2RequestGroup.cc
	* src/MetalinkParserController.cc
	* src/Netrc.cc
	* src/NsCookieParser.cc
	* src/ParameterizedStringParser.cc
	* src/ServerStatMan.cc
	* src/UriListParser.cc
	* src/Util.cc
	* src/Util.h
	* src/bittorrent_helper.cc
	* test/UtilTest.cc
This commit is contained in:
Tatsuhiro Tsujikawa
2009-10-18 12:31:07 +00:00
parent 1a7064f6f6
commit c8d34a46be
17 changed files with 100 additions and 100 deletions

View File

@@ -91,7 +91,8 @@ PStringDatumHandle ParameterizedStringParser::createSelect(const std::string& sr
throw DL_ABORT_EX("Missing '}' in the parameterized string.");
}
std::deque<std::string> values;
Util::slice(values, src.substr(offset, rightParenIndex-offset), ',', true);
split(src.substr(offset, rightParenIndex-offset), std::back_inserter(values),
",", true);
if(values.empty()) {
throw DL_ABORT_EX("Empty {} is not allowed.");
}