Ignore:
Timestamp:
Feb 25, 2018, 12:38:51 PM (14 months ago)
Author:
cameron
Message:

Grapheme Cluster Break kernel

File:
1 edited

Legend:

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

    r5819 r5881  
    2323    std::vector<const CC *> UnicodeSets;
    2424    boost::container::flat_set<const RE *>  Visited;
     25    std::set<Name *> ignoredExternals;
    2526};
    2627
     
    3435            }
    3536        } else if (isa<Name>(re)) {
     37            if (ignoredExternals.find(cast<Name>(re)) != ignoredExternals.end()) return;
    3638            auto def = cast<Name>(re)->getDefinition();
    3739            if (def != nullptr)
     
    5961}
    6062
    61 std::vector<const CC *> collectUnicodeSets(RE * const re) {
     63std::vector<const CC *> collectUnicodeSets(RE * const re, std::set<Name *> external) {
    6264    SetCollector collector;
     65    collector.ignoredExternals = external;
    6366    collector.collect(re);
    6467    return collector.UnicodeSets;
Note: See TracChangeset for help on using the changeset viewer.