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_analysis.cpp

    r5080 r5091  
    1111#include <re/re_intersect.h>
    1212#include <re/re_assertion.h>
    13 #include <re/re_grapheme_boundary.hpp>
    1413#include <iostream>
    1514#include <re/printer_re.h>
     
    137136            case Name::Type::Reference:
    138137                return getUnicodeUnitLengthRange(n->getDefinition());
     138            case Name::Type::ZeroWidth:
     139                return std::make_pair(0, 0);
    139140            case Name::Type::Unknown:
    140141                return std::make_pair(0, std::numeric_limits<int>::max());
    141142        }
    142     } else if (const GraphemeBoundary * gp = dyn_cast<GraphemeBoundary>(re)) {
    143         if (gp->getExpression()) {
    144             return getUnicodeUnitLengthRange(gp->getExpression());
    145         }
    146         return std::make_pair(0, 0);
    147     }
     143    }
    148144    return std::make_pair(1, 1);
    149145}
Note: See TracChangeset for help on using the changeset viewer.