Ignore:
Timestamp:
Jun 30, 2015, 3:12:47 PM (4 years ago)
Author:
nmedfort
Message:

Temporary check-in for dynamic unicode class compilation.

File:
1 edited

Legend:

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

    r4618 r4626  
    1717namespace UCD {
    1818
    19     std::string canonicalize_value_name(const std::string prop_or_val);
     19    std::string canonicalize_value_name(const std::string & prop_or_val);
    2020
    2121        class PropertyObject {
     
    3131                property_t the_property;
    3232                ClassTypeId the_kind;
    33                
    34         virtual UnicodeSet GetCodepointSet(const std::string value_spec) = 0;
    3533        };
    3634       
     
    4543       
    4644                UnsupportedPropertyObject(property_t p, ClassTypeId k) : PropertyObject(p, k) {}
    47         UnicodeSet GetCodepointSet(const std::string value_spec);
     45        UnicodeSet GetCodepointSet(const std::string &);
     46        UnicodeSet GetCodepointSet(const int);
    4847        };
    4948       
     
    6362                                         const std::vector<UnicodeSet> sets) :
    6463                PropertyObject(p, ClassTypeId::EnumeratedProperty), property_value_enum_names(enum_names), property_value_full_names(names), property_value_aliases(aliases), aliases_initialized(false), property_value_sets(sets) {}
    65         int GetPropertyValueEnumCode(const std::string s);
    66         UnicodeSet GetCodepointSet(const std::string value_spec);
     64        int GetPropertyValueEnumCode(const std::string & value_spec);
     65        UnicodeSet GetCodepointSet(const std::string & value_spec);
     66        UnicodeSet GetCodepointSet(const int property_enum_val) const;
    6767               
    6868        private:
     
    8484               
    8585                BinaryPropertyObject(UCD::property_t p, UnicodeSet s) : PropertyObject(p, ClassTypeId::BinaryProperty), the_codepoint_set(s) {}
    86         UnicodeSet GetCodepointSet(const std::string value_spec);
     86        UnicodeSet GetCodepointSet(const std::string & value_spec) const;
     87        UnicodeSet GetCodepointSet(const int property_enum_val) const;
    8788    private:
    8889                UnicodeSet the_codepoint_set;       
Note: See TracChangeset for help on using the changeset viewer.