Ignore:
Timestamp:
Oct 21, 2014, 1:03:34 PM (5 years ago)
Author:
cameron
Message:

Remove the negated attribute for unicode categories; use Diff(any, cat)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_name.h

    r4249 r4256  
    3030    };
    3131    const std::string & getName() const;
    32     bool isNegated() const;
    3332    Type getType() const;
    3433    RE *getCC() const;
     
    4342protected:
    4443    friend Name * makeName(const std::string, RE *);
    45     friend Name * makeName(const std::string, const bool, const Type);
     44    friend Name * makeName(const std::string, const Type);
    4645
    47     Name(const std::string && name, const bool negated, const Type type, RE * cc)
     46    Name(const std::string && name, const Type type, RE * cc)
    4847    : RE(ClassTypeId::Name)
    4948    , mName(std::move(name))
    50     , mNegated(negated)
    5149    , mType(type)
    5250    , mCC(cc)
     
    5856private:
    5957    const std::string   mName;
    60     const bool          mNegated;
    6158    const Type          mType;
    6259    RE *                mCC;
     
    6663inline const std::string & Name::getName() const {
    6764    return mName;
    68 }
    69 
    70 inline bool Name::isNegated() const {
    71     return mNegated;
    7265}
    7366
     
    8477}
    8578
    86 inline Name * makeName(const std::string name, const bool negated = false, const Name::Type type = Name::Type::FixedLength) {
    87     return new Name(std::move(name), negated, type, nullptr);
     79inline Name * makeName(const std::string name, const Name::Type type = Name::Type::FixedLength) {
     80    return new Name(std::move(name), type, nullptr);
    8881}
    8982
     
    9285        return cast<Name>(cc);
    9386    }
    94     return new Name(std::move(name), false, Name::Type::FixedLength, cc);
     87    return new Name(std::move(name), Name::Type::FixedLength, cc);
    9588}
    9689
Note: See TracChangeset for help on using the changeset viewer.