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 » CParser: proposal of new functions
Re: CParser: proposal of new functions [message #36323 is a reply to message #36260] Sun, 20 May 2012 17:07 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
cbpporter wrote on Thu, 17 May 2012 04:04

I'm curious what on earth were you trying to achieve with this Smile :

bool CParser::Id2(const char *s1, const char *s2) 
{
	CParser p = *this;
	
	if (!p.Id(s1)) return false;
	if (!p.Id(s2)) return false;
	
	*this = p;
	
	return true;
}



Well, see the input file...

That said, I would rather use some other method, reading the input file line by line, separating anything before ':' to get id, and only use CParser on the rest of line.

I guess the line nature of file is something that is not quite compatible with CParser.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: File locking and Serialization
Next Topic: ...nize class
Goto Forum:
  


Current Time: Thu May 02 19:44:41 CEST 2024

Total time taken to generate the page: 0.03426 seconds