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   |
cbpporter
Messages: 1427 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);
}
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 02:20:28 CEST 2025
Total time taken to generate the page: 0.00834 seconds
|