Ignore:
Timestamp:
Sep 24, 2017, 3:08:06 PM (21 months ago)
Author:
cameron
Message:

Regular expressions for property values: allow aliases, do not canonicalize (Unicode TR 18 - RL2.6)

File:
1 edited

Legend:

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

    r5236 r5648  
    8383        std::stringstream buffer;
    8484        for (unsigned i = 0; i != property_value_full_names.size(); i++) {
    85             buffer << canonicalize_value_name(property_value_full_names[i]) + "\n";
     85            buffer << property_value_full_names[i] + "\n";
    8686        }
    8787        for (unsigned i = 0; i != property_value_enum_names.size(); i++) {
    88             buffer << canonicalize_value_name(property_value_enum_names[i]) + "\n";
     88            if (property_value_enum_names[i] == property_value_full_names[i]) continue;
     89            buffer << property_value_enum_names[i] + "\n";
     90        }
     91        for (auto & a : property_value_aliases) {
     92            buffer << a.first + "\n";
    8993        }
    9094        mPropertyValueGrepString = buffer.str();
Note: See TracChangeset for help on using the changeset viewer.