Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 13975
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: Mon Apr 29 09:54:56 CEST 2024

Total time taken to generate the page: 0.02206 seconds