Ignore:
Timestamp:
Dec 9, 2017, 5:14:40 PM (19 months ago)
Author:
cameron
Message:

resolveGraphemeMode

File:
1 edited

Legend:

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

    r5748 r5772  
    66#include <re/re_seq.h>
    77#include <re/re_rep.h>
     8#include <re/re_range.h>
    89#include <re/re_diff.h>
    910#include <re/re_intersect.h>
     
    2930            UnicodeSets.push_back(cc);
    3031        } else if (isa<Name>(re)) {
    31             collect(cast<Name>(re)->getDefinition());
     32            auto def = cast<Name>(re)->getDefinition();
     33            if (def != nullptr)
     34                collect(def);
    3235        } else if (isa<Seq>(re)) {
    3336            for (auto item : *cast<Seq>(re)) {
     
    4851            collect(cast<Intersect>(re)->getLH());
    4952            collect(cast<Intersect>(re)->getRH());
    50         } else if (isa<Any>(re)) {
    51             UnicodeSets.push_back(makeCC(0x00, 0x10FFFF));
    5253        }
    5354    }
Note: See TracChangeset for help on using the changeset viewer.