BStringList: add Sort() with custom functions
fix #9268 and a TODO Change-Id: I3148b32221f34f5fb270d8892a6fc80f69ba2e29 Reviewed-on: https://review.haiku-os.org/c/haiku/+/11104 Reviewed-by: waddlesplash <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
@@ -36,7 +36,10 @@ public:
|
||||
|
||||
// Reorder items
|
||||
void Sort(bool ignoreCase = false);
|
||||
// TODO: Sort() with custom sort function.
|
||||
void Sort(int (*compareFunc)(const char*,
|
||||
const char*, void* context), void* context);
|
||||
void Sort(int (*compareFunc)(const BString&,
|
||||
const BString&, void* context), void* context);
|
||||
bool Swap(int32 indexA, int32 indexB);
|
||||
bool Move(int32 fromIndex, int32 toIndex);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user