Ignore:
Timestamp:
Jul 16, 2016, 12:42:28 PM (3 years ago)
Author:
xuedongx
Message:

delete GCB as a separate type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_simplifier.cpp

    r4846 r5091  
    1111#include <re/re_intersect.h>
    1212#include <re/re_assertion.h>
    13 #include <re/re_grapheme_boundary.hpp>
    1413#include <re/re_analysis.h>
    1514#include <algorithm>
     
    3837    } else if (Rep * rep = dyn_cast<Rep>(re)) {
    3938        RE * expr = simplify(rep->getRE());
    40         if (GraphemeBoundary * gp = dyn_cast<GraphemeBoundary>(expr)) {
    41             if (gp->getExpression() && isUnicodeUnitLength(gp->getExpression())) {
    42                 rep->setRE(gp->getExpression());
    43                 gp->setExpression(rep);
    44                 return gp;
    45             }
    46         }
    4739        re = makeRep(expr, rep->getLB(), rep->getUB());
    4840    } else if (Diff * diff = dyn_cast<Diff>(re)) {
     
    5042    } else if (Intersect * e = dyn_cast<Intersect>(re)) {
    5143        re = makeIntersect(simplify(e->getLH()), e->getRH());
    52     } else if (GraphemeBoundary * gp = dyn_cast<GraphemeBoundary>(re)) {
    53         if (gp->getExpression() && isa<GraphemeBoundary>(gp->getExpression())) {
    54             re = gp->getExpression();
    55         }
    56     }
     44    }
    5745    return re;
    5846}
Note: See TracChangeset for help on using the changeset viewer.