Ignore:
Timestamp:
Nov 7, 2016, 3:54:09 PM (3 years ago)
Author:
xwa163
Message:
  1. Extend Regex Syntax, include: (a) RL2.6 of UTS#18, support regex in property value. e.g. \p{script=/.*hir.*/} (b) Support syntax of property expression when parsing boundary. e.g. \b{greek} (c) Extend property expression in non capture group. e.g. (?\p{upper}:\p{greek}\p{script=hira})
  2. Add related test cases
File:
1 edited

Legend:

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

    r5159 r5206  
    4141    PropertyObject(property_t p, ClassTypeId k) : the_property(p), the_kind(k) {}
    4242    virtual int GetPropertyValueEnumCode(const std::string & value_spec);
     43    virtual const std::string& GetPropertyValueGrepString();
    4344    property_t the_property;
    4445    ClassTypeId the_kind;
     
    8889
    8990    virtual int GetPropertyValueEnumCode(const std::string & value_spec);
     91    virtual const std::string& GetPropertyValueGrepString();
    9092    const UnicodeSet & GetCodepointSet(const std::string & value_spec);
    9193    const UnicodeSet & GetCodepointSet(const int property_enum_val) const;
     
    107109    const std::vector<std::string> & property_value_full_names;  // never changes
    108110    std::unordered_map<std::string, int> & property_value_aliases;
     111    std::string property_value_grep_string;
    109112    bool uninitialized; // full names must be added dynamically.
    110113    const std::vector<const UnicodeSet *> property_value_sets;
     
    136139
    137140    virtual int GetPropertyValueEnumCode(const std::string & value_spec);
     141    virtual const std::string& GetPropertyValueGrepString();
    138142    const UnicodeSet & GetCodepointSet(const std::string & value_spec);
    139143    const UnicodeSet & GetCodepointSet(const int property_enum_val) const;
     
    161165    const UnicodeSet & GetCodepointSet(const std::string & value_spec);
    162166    const UnicodeSet & GetCodepointSet(const int property_enum_val);
     167    virtual const std::string& GetPropertyValueGrepString();
    163168private:
    164169    bool mNoUninitialized;
    165170    UnicodeSet mY;
    166171    UnicodeSet mN;
     172    std::string property_value_grep_string;
    167173};
    168174
Note: See TracChangeset for help on using the changeset viewer.