Add overloads here so that the return type is in fact StringList.

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@336601 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler 2004-08-06 21:51:32 +00:00
parent 65bf71cd61
commit 43a570f5b2
2 changed files with 24 additions and 0 deletions

View File

@ -87,6 +87,18 @@ String StringList::toString(const String &separator) const
return s;
}
StringList &StringList::append(const String &s)
{
List<String>::append(s);
return *this;
}
StringList &StringList::append(const StringList &l)
{
List<String>::append(l);
return *this;
}
////////////////////////////////////////////////////////////////////////////////
// related functions
////////////////////////////////////////////////////////////////////////////////

View File

@ -67,6 +67,18 @@ namespace TagLib {
*/
String toString(const String &separator = " ") const;
/*!
* Appends \a s to the end of the list and returns a reference to the
* list.
*/
StringList &append(const String &s);
/*!
* Appends all of the values in \a l to the end of the list and returns a
* reference to the list.
*/
StringList &append(const StringList &l);
/*!
* Splits the String \a s into several strings at \a pattern. This will not include
* the pattern in the returned strings.