From: helly Date: Sun, 30 Oct 2005 17:04:56 +0000 (+0000) Subject: - Fix translation issue X-Git-Tag: 0.13.6~599 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e54e6df38f9d2c252d564a77dff30d6d4156eaff;p=re2c - Fix translation issue --- diff --git a/actions.cc b/actions.cc index afc394b1..28939f18 100644 --- a/actions.cc +++ b/actions.cc @@ -660,8 +660,8 @@ RegExp * Scanner::strToCaseInsensitiveRE(SubStr s) const 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 @@ -675,8 +675,8 @@ RegExp * Scanner::strToCaseInsensitiveRE(SubStr s) const 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 @@ -728,7 +728,7 @@ RegExp * Scanner::invToRE(SubStr s) const 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;