diff options
author | Michael Vogt <mvo@ubuntu.com> | 2013-10-01 12:03:37 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2013-10-01 12:03:37 +0200 |
commit | 41053d721ce7f81652d7e873067376b94f9a060d (patch) | |
tree | 2f75dbcd4cd94b57bbe54af070ba65ccb53d10f0 /apt-pkg/contrib/strutl.cc | |
parent | 9572a54bbc96eb653b3e13260abb183ba7a316f3 (diff) |
improve documentation for StringSplit()
Diffstat (limited to 'apt-pkg/contrib/strutl.cc')
-rw-r--r-- | apt-pkg/contrib/strutl.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index fd768f183..96c6d2f35 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -1120,11 +1120,9 @@ vector<string> VectorizeString(string const &haystack, char const &split) /*}}}*/ // StringSplit - split a string into a string vector by token /*{{{*/ // --------------------------------------------------------------------- -/* This can be used to split a given string up from a given string token - * into a vector of strings. A optional "maxsplit" argument can be used - * to limit the splitting, in this case the +/* See header for details. */ -vector<string> StringSplit(string const &s, std::string const &sep, +vector<string> StringSplit(std::string const &s, std::string const &sep, unsigned int maxsplit) { vector<string> split; |