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 » U++ Library support » U++ Core » Looking for examples to split string into container
Re: Looking for examples to split string into container [message #55310 is a reply to message #55309] Wed, 28 October 2020 18:41 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1106
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello David,

Use global Split function. For more info check following example and read this documentation site.

I think this should be straight forward:
auto numbers = Split("one,two,,three", ','); // <- Type is Vector<String>, Upp::Split if not in namespace
for (const auto& number : numbers) {
   // number is string...
}


Klugier


U++ - one framework to rule them all.

[Updated on: Wed, 28 October 2020 18:45]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vector a user defined struct for XML persistency
Next Topic: Convert struct to string and reconstruct a struct from string
Goto Forum:
  


Current Time: Tue Aug 26 00:33:31 CEST 2025

Total time taken to generate the page: 0.07019 seconds