Ignore:
Timestamp:
Oct 11, 2015, 1:45:52 PM (4 years ago)
Author:
nmedfort
Message:

Back-up check in

File:
1 edited

Legend:

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

    r4614 r4829  
    2020#include <re/re_intersect.h>
    2121#include <re/re_assertion.h>
     22#include <re/re_grapheme_boundary.hpp>
    2223
    2324using namespace re;
     
    8586        retVal += ") ";
    8687    }
     88    else if (const GraphemeBoundary * g = dyn_cast<GraphemeBoundary>(re))
     89    {
     90        retVal = "Grapheme";
     91        switch (g->getType()) {
     92            case GraphemeBoundary::Type::ClusterBoundary:
     93                retVal += "Cluster"; break;
     94            case GraphemeBoundary::Type::LineBreakBoundary:
     95                retVal += "LineBreak"; break;
     96            case GraphemeBoundary::Type::SentenceBoundary:
     97                retVal += "Sentence"; break;
     98            case GraphemeBoundary::Type::WordBoundary:
     99                retVal += "Word"; break;
     100        }
     101        retVal += "Boundary(";
     102        retVal += PrintRE(g->getExpression());
     103        retVal += ") ";
     104    }
    87105    else if (isa<const End>(re))
    88106    {
Note: See TracChangeset for help on using the changeset viewer.