]> granicus.if.org Git - re2c/commitdiff
- Fix translation issue
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 30 Oct 2005 17:04:56 +0000 (17:04 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 30 Oct 2005 17:04:56 +0000 (17:04 +0000)
actions.cc

index afc394b1c8179062513fc7c6a1cf2d444d88d9da..28939f18b61827bcde276dc9d30b6bfe4552ced3 100644 (file)
@@ -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;