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/printer_re.cpp

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