Ignore:
Timestamp:
Oct 17, 2015, 4:25:05 PM (4 years ago)
Author:
nmedfort
Message:

Update for grapheme cluster mode and boundaries.

File:
1 edited

Legend:

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

    r4829 r4841  
    8686        retVal += ") ";
    8787    }
    88     else if (const GraphemeBoundary * g = dyn_cast<GraphemeBoundary>(re))
    89     {
     88    else if (const GraphemeBoundary * g = dyn_cast<GraphemeBoundary>(re)) {
    9089        retVal = "Grapheme";
    9190        switch (g->getType()) {
     
    10099        }
    101100        retVal += "Boundary(";
    102         retVal += PrintRE(g->getExpression());
    103         retVal += ") ";
     101        if (g->getExpression()) {
     102            retVal += PrintRE(g->getExpression());
     103        }
     104        retVal += ")";
    104105    }
    105106    else if (isa<const End>(re))
Note: See TracChangeset for help on using the changeset viewer.