Ignore:
Timestamp:
Jul 16, 2016, 12:42:28 PM (3 years ago)
Author:
xuedongx
Message:

delete GCB as a separate type.

File:
1 edited

Legend:

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

    r5080 r5091  
    2727        , Capture
    2828        , Reference
     29        , ZeroWidth
    2930        , Unknown
    3031    };
     
    4344    friend Name * makeCapture(const std::string & name, RE * captured);
    4445    friend Name * makeReference(const std::string & name, RE * captureName);
     46    friend Name * makeZeroWidth(const std::string & name, RE * zerowidth);
    4547    friend Name * makeName(CC * const cc);
    4648    friend Name * makeName(const std::string &, const Type);
     
    168170}
    169171
     172inline Name * makeZeroWidth(const std::string & name, RE * zerowidth = NULL) {
     173    return new Name(nullptr, 0, name.c_str(), name.length(), Name::Type::ZeroWidth, zerowidth);
     174}
    170175}
    171176
Note: See TracChangeset for help on using the changeset viewer.