Closed wxtrac closed 2 years ago
Issue migrated from trac ticket # 5642
priority: normal
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
join.patch
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.
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