Ignore:
Timestamp:
Dec 9, 2017, 1:37:17 AM (23 months ago)
Author:
cameron
Message:

Regular expression system restructuring progress

File:
1 edited

Legend:

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

    r5766 r5768  
    2525        else return re;
    2626    }
    27     else if (isa<Name>(re)) {
    28         return re;
     27    else if (Name * name = dyn_cast<Name>(re)) {
     28        if (!inCaseInsensitiveMode || (name->getDefinition() == nullptr)) return re;
     29        RE * r = resolveCaseInsensitiveMode(name->getDefinition(), true);
     30        Name * n = makeName(name->getNamespace(), name->getName() + "/i", name->getType());
     31        n->setDefinition(r);
     32        return n;
    2933    }
    3034    else if (Seq * seq = dyn_cast<Seq>(re)) {
Note: See TracChangeset for help on using the changeset viewer.