U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » Split/Join/Merge
Split/Join/Merge [message #42983] Mon, 21 April 2014 17:42 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
I have refactored utility functions for splitting and merging strings. New Split is 2 times faster in typical usage and comes in String/WString variants. Separator can be specified as char, string, character filter or text filter (returns position after text if accepted or NULL). It is now also possible to specify the maximum of substrings returned.

SplitTo is variant that splits into String references (does not return Vector<String>).

Join joins Vector<String> with defined separator text.

Merge joins individual strings with defined separator text, ignores empty ones.

MergeWith is similiar, but merges with target string (provided as first parameter).

Documentation, reference example (and autotest) are provided.
 
Read Message
Read Message
Read Message
Previous Topic: plugin/ppm
Next Topic: ValueArray, ValueMap now have Pick
Goto Forum:
  


Current Time: Wed Oct 07 13:33:58 GMT+2 2026

Total time taken to generate the page: 0.26294 seconds