Unify ByteVectorList::split methods

This commit is contained in:
Lukáš Lalinský 2012-11-04 10:08:18 +01:00
parent aa801e58ec
commit c3f9c63542
3 changed files with 1 additions and 19 deletions

View File

@ -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)
{

View File

@ -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;

View File

@ -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;