#include <rlinterpreter.h>
A class for interpreting text.
Definition at line 24 of file rlinterpreter.h.
rlInterpreter::~rlInterpreter |
( |
| ) |
|
|
virtual |
void rlInterpreter::copyStringParam |
( |
char * |
destination, |
|
|
int |
index |
|
) |
| |
Definition at line 43 of file rlinterpreter.cpp.
{
int iparen = 0;
int i = 0;
int ndest;
*destination = '\0';
{
if(
line[i] ==
'\"' && (i > 0 ||
line[i-1] !=
'\\')) iparen++;
if(iparen == (2*index + 1))
{
ndest = 0;
i++;
while(
line[i] !=
'\0' && (
line[i] !=
'\"' &&
line[i-1] !=
'\\'))
{
{
*destination = '\0';
return;
}
*destination++ =
line[i++];
ndest++;
}
*destination = '\0';
return;
}
i++;
}
}
int rlInterpreter::isCommand |
( |
const char * |
command | ) |
|
Definition at line 32 of file rlinterpreter.cpp.
{
int i = 0;
while(command[i] != '\0')
{
if(command[i] !=
line[i])
return 0;
i++;
}
return 1;
}
int rlInterpreter::maxchar |
( |
| ) |
|
char* rlInterpreter::line |
int rlInterpreter::maxline |
|
private |
The documentation for this class was generated from the following files: