mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
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:
parent
65bf71cd61
commit
43a570f5b2
@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user