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 » Is there a token function?
Re: Is there a token function? [message #2744 is a reply to message #2737] Mon, 24 April 2006 01:01 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Sun, 23 April 2006 14:44

fudadmin wrote on Sun, 23 April 2006 09:33

Yes, I'had seen that in streams. I just wanted to know why GetLine is absent in String?


What should it do? I can't imagine anything reasonable...

Mirek


In fact, I want something like in FOX:
 /// Return num partition(s) beginning at start from a string separated by delimiters delim.
  FXString section(FXchar delim,FXint start,FXint num=1) const;

  /// Return num partition(s) beginning at start from a string separated by set of delimiters from delim of size n
  FXString section(const FXchar* delim,FXint n,FXint start,FXint num) const;

 
  FXString section(const FXchar* delim,FXint start,FXint num=1) const;

 
  FXString section(const FXString& delim,FXint start,FXint num=1) const;


I think, it's much more convienient than to have separate Vector<String> and Split for each delimiter if you work with text manipulations...

And, as I understand you have coded something similar in Uvs2 (textdiff) but that's not in the library...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a function to remove leading white space?
Next Topic: TimeDate.cpp [BUG][FIXED]
Goto Forum:
  


Current Time: Tue Jul 08 21:46:43 CEST 2025

Total time taken to generate the page: 0.03581 seconds