Changeset 5545 for icGREP/icgrep-devel


Ignore:
Timestamp:
Jul 4, 2017, 1:29:48 PM (2 years ago)
Author:
cameron
Message:

Fixing :graph:? :print:?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/UCD/resolve_properties.cpp

    r5428 r5545  
    110110            Name * unassigned = makeName("cn", Name::Type::UnicodeProperty);
    111111            property->setDefinition(makeDiff(makeAny(), unassigned));
    112             return true;
    113         }
    114         // Now compatibility properties of UTR #18 Annex C
    115         else if (value == "graph") {
    116             Name * space = makeName("space", Name::Type::UnicodeProperty);
    117             Name * ctrl = makeName("control", Name::Type::UnicodeProperty);
    118             Name * surr = makeName("surrogate", Name::Type::UnicodeProperty);
    119             Name * unassigned = makeName("cn", Name::Type::UnicodeProperty);
    120             property->setDefinition(makeDiff(makeAny(), makeAlt({space, ctrl, surr, unassigned})));
    121112            return true;
    122113        } else if (value == "GCB" || value == "NonGCB"){
     
    278269                Name * join = makeName("joincontrol", Name::Type::UnicodeProperty);
    279270                return resolveUnicodeSet(alnum) + resolveUnicodeSet(mark) + resolveUnicodeSet(conn) + resolveUnicodeSet(join);
    280             }
     271            } else if (value == "graph") {
     272                Name * space = makeName("space", Name::Type::UnicodeProperty);
     273                Name * ctrl = makeName("control", Name::Type::UnicodeProperty);
     274                Name * surr = makeName("surrogate", Name::Type::UnicodeProperty);
     275                Name * unassigned = makeName("cn", Name::Type::UnicodeProperty);
     276                return ~(resolveUnicodeSet(space) + resolveUnicodeSet(ctrl) + resolveUnicodeSet(surr) + resolveUnicodeSet(unassigned));
     277            }
     278
    281279
    282280        }
Note: See TracChangeset for help on using the changeset viewer.