wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
5.75k stars 1.69k forks source link

New method wxArrayString::Join #5642

Closed wxtrac closed 2 years ago

wxtrac commented 21 years ago

Issue migrated from trac ticket # 5642

priority: normal

2002-11-12 22:17:38: lunden created the issue


This patch adds the method Join to wxArrayString, which returns the elements in the array concatenated, possibly by a user-supplied string.

Suggested documentation something like this:


wxString wxArrayString::Join(const wxString& str = "")

Returns the concatenated elements of the array as a wxString, joined by an optional string. If no string is supplied, an empty string is used.

If the array is empty, returns wxEmptyString.


I'm sorry I didn't patch the docs also, but latex looked intimidating at the moment. :)

The reason for the method is well, I needed it, so others probably do, too. Plus it is a common method in languages and other frameworks.

-- Kristoffer

wxtrac commented 21 years ago

2002-11-12 22:17:38: lunden uploaded file join.patch (1.3 KiB)

wxtrac commented 21 years ago

2003-05-09 02:08:05: @vadz commented


After discussion on wx-dev there doesn't seem to be enough interest in having this in wxWindows so it was decided not to apply it. Sorry.