if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
{
- reL = matchChar(tolower(c));
- reU = matchChar(toupper(c));
+ reL = matchChar(xlat[tolower(c)]);
+ reU = matchChar(xlat[toupper(c)]);
re = mkAlt(reL, reU);
}
else
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
{
- reL = matchChar(tolower(c));
- reU = matchChar(toupper(c));
+ reL = matchChar(xlat[tolower(c)]);
+ reU = matchChar(xlat[toupper(c)]);
re = new CatOp(re, mkAlt(reL, reU));
}
else
RegExp * Scanner::mkDot() const
{
RegExp * any = ranToRE(SubStr("[\\000-\\377]"));
- RegExp * ran = matchChar('\n');
+ RegExp * ran = matchChar(xlat['\n']);
RegExp * inv = mkDiff(any, ran);
delete ran;