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

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: Tue Apr 28 23:01:22 GMT+2 2026

Total time taken to generate the page: 0.03343 seconds