Loading...
Searching...
No Matches
Public Member Functions | List of all members
BStringList Class Reference

Undocumented class. More...

Inherits BFlattenable.

Public Member Functions

 BStringList (const BStringList &other)
 Undocumented public method.
 
 BStringList (int32 count=20)
 Undocumented public method.
 
virtual ~BStringList ()
 Undocumented public method.
 
bool Add (const BString &string)
 Undocumented public method.
 
bool Add (const BString &string, int32 index)
 Undocumented public method.
 
bool Add (const BStringList &list)
 Undocumented public method.
 
bool Add (const BStringList &list, int32 index)
 Undocumented public method.
 
virtual bool AllowsTypeCode (type_code code) const
 Undocumented public method.
 
int32 CountStrings () const
 Undocumented public method.
 
void DoForEach (bool(*func)(const BString &string))
 Undocumented public method.
 
void DoForEach (bool(*func)(const BString &string, void *arg2), void *arg2)
 Undocumented public method.
 
BString First () const
 Undocumented public method.
 
virtual status_t Flatten (void *buffer, ssize_t size) const
 Undocumented public method.
 
virtual ssize_t FlattenedSize () const
 Undocumented public method.
 
bool HasString (const BString &string, bool ignoreCase=false) const
 Undocumented public method.
 
int32 IndexOf (const BString &string, bool ignoreCase=false) const
 Undocumented public method.
 
bool IsEmpty () const
 Undocumented public method.
 
virtual bool IsFixedSize () const
 Undocumented public method.
 
BString Join (const char *separator, int32 length=-1) const
 Undocumented public method.
 
BString Last () const
 Undocumented public method.
 
void MakeEmpty ()
 Undocumented public method.
 
bool Move (int32 fromIndex, int32 toIndex)
 Undocumented public method.
 
bool operator!= (const BStringList &other) const
 Undocumented public method.
 
BStringListoperator= (const BStringList &other)
 Undocumented public method.
 
bool operator== (const BStringList &other) const
 Undocumented public method.
 
bool Remove (const BString &string, bool ignoreCase=false)
 Undocumented public method.
 
bool Remove (const BStringList &list, bool ignoreCase=false)
 Undocumented public method.
 
BString Remove (int32 index)
 Undocumented public method.
 
bool Remove (int32 index, int32 count)
 Undocumented public method.
 
bool Replace (int32 index, const BString &string)
 Undocumented public method.
 
void Sort (bool ignoreCase=false)
 Undocumented public method.
 
BString StringAt (int32 index) const
 Undocumented public method.
 
bool Swap (int32 indexA, int32 indexB)
 Undocumented public method.
 
virtual type_code TypeCode () const
 Undocumented public method.
 
virtual status_t Unflatten (type_code code, const void *buffer, ssize_t size)
 Undocumented public method.
 
- Public Member Functions inherited from BFlattenable
virtual ~BFlattenable ()
 Destructor. Does nothing.
 
virtual bool AllowsTypeCode (type_code code) const
 Get whether or not the supplied type_code is supported.
 
virtual status_t Flatten (void *buffer, ssize_t size) const =0
 Pure virtual that should flatten the object into the supplied buffer.
 
virtual ssize_t FlattenedSize () const =0
 Pure virtual that should return the size of the flattened object in bytes.
 
virtual bool IsFixedSize () const =0
 Pure virtual that should return whether or not flattened objects of this type always have a fixed size.
 
virtual type_code TypeCode () const =0
 Pure virtual that returns the type_code this class flattens to.
 
virtual status_t Unflatten (type_code code, const void *buffer, ssize_t size)=0
 Pure virtual that should unflatten the buffer and put the contents into the current object.
 

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)

Undocumented public method.

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

◆ Add() [2/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() [3/4]

bool BStringList::Add ( const BStringList list)

Undocumented public method.

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

◆ Add() [4/4]

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

Undocumented public method.

Parameters
listUndocumented
indexUndocumented
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.