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 message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
cbpporter
Messages: 1406 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: Sun Sep 01 07:24:31 CEST 2024
Total time taken to generate the page: 0.00633 seconds
|