Public Member Functions | List of all members
BStringList Class Reference

Undocumented class. More...

Inherits BFlattenable.

Public Member Functions

 BStringList (int32 count=20)
 Undocumented public method. More...
 
 BStringList (const BStringList &other)
 Undocumented public method. More...
 
virtual ~BStringList ()
 Undocumented public method. More...
 
bool Add (const BString &string, int32 index)
 Undocumented public method. More...
 
bool Add (const BString &string)
 Undocumented public method. More...
 
bool Add (const BStringList &list, int32 index)
 Undocumented public method. More...
 
bool Add (const BStringList &list)
 Undocumented public method. More...
 
virtual bool AllowsTypeCode (type_code code) const
 Undocumented public method. More...
 
int32 CountStrings () const
 Undocumented public method. More...
 
void DoForEach (bool(*func)(const BString &string))
 Undocumented public method. More...
 
void DoForEach (bool(*func)(const BString &string, void *arg2), void *arg2)
 Undocumented public method. More...
 
BString First () const
 Undocumented public method. More...
 
virtual status_t Flatten (void *buffer, ssize_t size) const
 Undocumented public method. More...
 
virtual ssize_t FlattenedSize () const
 Undocumented public method. More...
 
bool HasString (const BString &string, bool ignoreCase=false) const
 Undocumented public method. More...
 
int32 IndexOf (const BString &string, bool ignoreCase=false) const
 Undocumented public method. More...
 
bool IsEmpty () const
 Undocumented public method. More...
 
virtual bool IsFixedSize () const
 Undocumented public method. More...
 
BString Join (const char *separator, int32 length=-1) const
 Undocumented public method. More...
 
BString Last () const
 Undocumented public method. More...
 
void MakeEmpty ()
 Undocumented public method. More...
 
bool Move (int32 fromIndex, int32 toIndex)
 Undocumented public method. More...
 
bool operator!= (const BStringList &other) const
 Undocumented public method. More...
 
BStringListoperator= (const BStringList &other)
 Undocumented public method. More...
 
bool operator== (const BStringList &other) const
 Undocumented public method. More...
 
bool Remove (const BString &string, bool ignoreCase=false)
 Undocumented public method. More...
 
bool Remove (const BStringList &list, bool ignoreCase=false)
 Undocumented public method. More...
 
BString Remove (int32 index)
 Undocumented public method. More...
 
bool Remove (int32 index, int32 count)
 Undocumented public method. More...
 
bool Replace (int32 index, const BString &string)
 Undocumented public method. More...
 
void Sort (bool ignoreCase=false)
 Undocumented public method. More...
 
BString StringAt (int32 index) const
 Undocumented public method. More...
 
bool Swap (int32 indexA, int32 indexB)
 Undocumented public method. More...
 
virtual type_code TypeCode () const
 Undocumented public method. More...
 
virtual status_t Unflatten (type_code code, const void *buffer, ssize_t size)
 Undocumented public method. More...
 
- Public Member Functions inherited from BFlattenable
virtual ~BFlattenable ()
 Destructor. Does nothing. More...
 

Detailed Description

Undocumented class.

Since
Haiku R1

Constructor & Destructor Documentation

◆ BStringList() [1/2]

BStringList::BStringList ( int32  count = 20)

Undocumented public method.

Parameters
countUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ BStringList() [2/2]

BStringList::BStringList ( const BStringList other)

Undocumented public method.

Parameters
otherUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ ~BStringList()

BStringList::~BStringList ( )
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Member Function Documentation

◆ Add() [1/4]

bool BStringList::Add ( const BString string,
int32  index 
)

Undocumented public method.

Parameters
stringUndocumented
indexUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Add() [2/4]

bool BStringList::Add ( const BString string)

Undocumented public method.

Parameters
stringUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Add() [3/4]

bool BStringList::Add ( const BStringList list,
int32  index 
)

Undocumented public method.

Parameters
listUndocumented
indexUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Add() [4/4]

bool BStringList::Add ( const BStringList list)

Undocumented public method.

Parameters
listUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ AllowsTypeCode()

bool BStringList::AllowsTypeCode ( type_code  code) const
virtual

Undocumented public method.

Parameters
codeUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Reimplemented from BFlattenable.

◆ CountStrings()

int32 BStringList::CountStrings ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ DoForEach() [1/2]

void BStringList::DoForEach ( bool(*)(const BString &string)  func)

Undocumented public method.

Parameters
funcUndocumented
Since
Haiku R1

◆ DoForEach() [2/2]

void BStringList::DoForEach ( bool(*)(const BString &string, void *arg2)  func,
void *  arg2 
)

Undocumented public method.

Parameters
funcUndocumented
arg2Undocumented
Since
Haiku R1

◆ First()

BString BStringList::First ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Flatten()

status_t BStringList::Flatten ( void *  buffer,
ssize_t  size 
) const
virtual

Undocumented public method.

Parameters
bufferUndocumented
sizeUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Implements BFlattenable.

◆ FlattenedSize()

ssize_t BStringList::FlattenedSize ( ) const
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Implements BFlattenable.

◆ HasString()

bool BStringList::HasString ( const BString string,
bool  ignoreCase = false 
) const
inline

Undocumented public method.

Parameters
stringUndocumented
ignoreCaseUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

References IndexOf().

◆ IndexOf()

int32 BStringList::IndexOf ( const BString string,
bool  ignoreCase = false 
) const

Undocumented public method.

Parameters
stringUndocumented
ignoreCaseUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Referenced by HasString().

◆ IsEmpty()

bool BStringList::IsEmpty ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ IsFixedSize()

bool BStringList::IsFixedSize ( ) const
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Implements BFlattenable.

◆ Join()

BString BStringList::Join ( const char *  separator,
int32  length = -1 
) const

Undocumented public method.

Parameters
separatorUndocumented
lengthUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Last()

BString BStringList::Last ( ) const

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ MakeEmpty()

void BStringList::MakeEmpty ( )

Undocumented public method.

Since
Haiku R1

◆ Move()

bool BStringList::Move ( int32  fromIndex,
int32  toIndex 
)

Undocumented public method.

Parameters
fromIndexUndocumented
toIndexUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ operator!=()

bool BStringList::operator!= ( const BStringList other) const
inline

Undocumented public method.

Parameters
otherUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ operator=()

BStringList & BStringList::operator= ( const BStringList other)

Undocumented public method.

Parameters
otherUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ operator==()

bool BStringList::operator== ( const BStringList other) const

Undocumented public method.

Parameters
otherUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Remove() [1/4]

bool BStringList::Remove ( const BString string,
bool  ignoreCase = false 
)

Undocumented public method.

Parameters
stringUndocumented
ignoreCaseUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Remove() [2/4]

bool BStringList::Remove ( const BStringList list,
bool  ignoreCase = false 
)

Undocumented public method.

Parameters
listUndocumented
ignoreCaseUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Remove() [3/4]

BString BStringList::Remove ( int32  index)

Undocumented public method.

Parameters
indexUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Remove() [4/4]

bool BStringList::Remove ( int32  index,
int32  count 
)

Undocumented public method.

Parameters
indexUndocumented
countUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Replace()

bool BStringList::Replace ( int32  index,
const BString string 
)

Undocumented public method.

Parameters
indexUndocumented
stringUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Sort()

void BStringList::Sort ( bool  ignoreCase = false)

Undocumented public method.

Parameters
ignoreCaseUndocumented
Since
Haiku R1

◆ StringAt()

BString BStringList::StringAt ( int32  index) const

Undocumented public method.

Parameters
indexUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ Swap()

bool BStringList::Swap ( int32  indexA,
int32  indexB 
)

Undocumented public method.

Parameters
indexAUndocumented
indexBUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

◆ TypeCode()

type_code BStringList::TypeCode ( ) const
virtual

Undocumented public method.

Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Implements BFlattenable.

◆ Unflatten()

status_t BStringList::Unflatten ( type_code  code,
const void *  buffer,
ssize_t  size 
)
virtual

Undocumented public method.

Parameters
codeUndocumented
bufferUndocumented
sizeUndocumented
Returns
Undocumented
Return values
<value>Undocumented
Since
Haiku R1

Implements BFlattenable.