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++ Library : Other (not classified elsewhere) » cutting the string
cutting the string [message #3902] Fri, 07 July 2006 17:33 Go to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
hi, is there any sexy way to separate string by a chosen delimiter(s) in upp? eg pass string vector, delimiter, string and it fills the vector with chnks of string separated by delimiter? or good old strtok... ?
Re: cutting the string [message #3903 is a reply to message #3902] Fri, 07 July 2006 18:24 Go to previous messageGo to next message
victorb is currently offline  victorb
Messages: 78
Registered: December 2005
Location: Nice, France
Member
Of course there is such a function Smile

Split() defined in Util.h
Re: cutting the string [message #3922 is a reply to message #3903] Sun, 09 July 2006 17:05 Go to previous messageGo to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
huh, very thank you!
Re: cutting the string [message #3923 is a reply to message #3922] Sun, 09 July 2006 17:24 Go to previous message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
I suggest parametrize Split(and similar) function(s) - T specifying returned Vector<T>; // Split<int>(...
or
is there 'something' to convert the whole Vector?

[Updated on: Sun, 09 July 2006 17:42]

Report message to a moderator

Previous Topic: access to raw command line parameters
Next Topic: equality test of doubles
Goto Forum:
  


Current Time: Thu Apr 25 22:17:29 CEST 2024

Total time taken to generate the page: 0.06029 seconds