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 » Splitting a string by a string?
Splitting a string by a string? [message #23445] Tue, 20 October 2009 15:32 Go to next message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Is there a function that I am missing that will split a string by a string? i.e.:

Vector<String> abc = Split("John Doe Had A Dog", "Had"); 
// [John Doe, A Dog]


Jeremy
Re: Splitting a string by a string? [message #23463 is a reply to message #23445] Wed, 21 October 2009 09:17 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
No. But see TextTest and normal character Split TextTest derived class...

Mirek
Re: Splitting a string by a string? [message #23464 is a reply to message #23463] Wed, 21 October 2009 09:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
luzr wrote on Wed, 21 October 2009 03:17

No. But see TextTest and normal character Split TextTest derived class...

Mirek


Update: Yes, I have added the variant... Smile

Mirek
Re: Splitting a string by a string? [message #23470 is a reply to message #23464] Wed, 21 October 2009 17:07 Go to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Thanks! Works great!

Jeremy
Previous Topic: Problem with UPP_HEAP and multithread
Next Topic: executing commands and viewing it's result
Goto Forum:
  


Current Time: Sat Apr 20 05:32:03 CEST 2024

Total time taken to generate the page: 0.04201 seconds