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 » [solved] Bug in CParser
Re: Bug in CParser [message #43599 is a reply to message #43598] Thu, 11 September 2014 15:15 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Plus, there is no way to call Set after NoSkipSpaces because it will override the skip. I propose these changes:

.hpp
void   Set(const char *ptr, const char *fn, int line = 1, bool skip = true);
	void   Set(const char *ptr, bool skip = true);


.cpp
void CParser::Set(const char *_ptr, const char *_fn, int _line, bool skip)
{
	term = lineptr = wspc = _ptr;
	fn = _fn;
	line = _line;
	skipspaces = skip;
	Spaces();
	LLOG("Set " << fn << ":" << line);
}

void CParser::Set(const char *_ptr, bool skip)
{
	Set(_ptr, "", 1, skip);
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HttpClient -> ssl
Next Topic: Some fixes in InVector.hpp and Vcont.cpp
Goto Forum:
  


Current Time: Fri May 17 11:15:02 CEST 2024

Total time taken to generate the page: 0.02965 seconds