mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Unify ByteVectorList::split methods
This commit is contained in:
parent
aa801e58ec
commit
c3f9c63542
@ -36,12 +36,6 @@ class ByteVectorListPrivate
|
||||
// static members
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ByteVectorList ByteVectorList::split(const ByteVector &v, const ByteVector &pattern,
|
||||
int byteAlign)
|
||||
{
|
||||
return split(v, pattern, byteAlign, 0);
|
||||
}
|
||||
|
||||
ByteVectorList ByteVectorList::split(const ByteVector &v, const ByteVector &pattern,
|
||||
int byteAlign, int max)
|
||||
{
|
||||
|
@ -65,12 +65,6 @@ namespace TagLib {
|
||||
*/
|
||||
ByteVector toByteVector(const ByteVector &separator = " ") const;
|
||||
|
||||
/*!
|
||||
* Splits the ByteVector \a v into several strings at \a pattern. This will
|
||||
* not include the pattern in the returned ByteVectors.
|
||||
*/
|
||||
static ByteVectorList split(const ByteVector &v, const ByteVector &pattern,
|
||||
int byteAlign = 1);
|
||||
/*!
|
||||
* Splits the ByteVector \a v into several strings at \a pattern. This will
|
||||
* not include the pattern in the returned ByteVectors. \a max is the
|
||||
@ -78,9 +72,8 @@ namespace TagLib {
|
||||
* is 2 then a maximum of 1 match will be found and the vector will be split
|
||||
* on that match.
|
||||
*/
|
||||
// BIC: merge with the function above
|
||||
static ByteVectorList split(const ByteVector &v, const ByteVector &pattern,
|
||||
int byteAlign, int max);
|
||||
int byteAlign = 1, int max = 0);
|
||||
private:
|
||||
class ByteVectorListPrivate;
|
||||
ByteVectorListPrivate *d;
|
||||
|
@ -458,11 +458,6 @@ ByteVector String::data(Type t) const
|
||||
return v;
|
||||
}
|
||||
|
||||
int String::toInt() const
|
||||
{
|
||||
return toInt(0);
|
||||
}
|
||||
|
||||
int String::toInt(bool *ok) const
|
||||
{
|
||||
int value = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user