Ignore:
Timestamp:
Dec 21, 2017, 9:01:44 PM (16 months ago)
Author:
cameron
Message:

makeByte uses the Byte alphabet

File:
1 edited

Legend:

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

    r5781 r5797  
    4646    friend Name * makeZeroWidth(const std::string & name, RE * zerowidth);
    4747    friend Name * makeName(CC * const cc);
    48     friend Name * makeByte(CC * const cc);
    4948    friend Name * makeName(const std::string &, Type);
    5049    friend Name * makeName(const std::string &, const std::string &, Type);
     
    163162}
    164163
    165 inline Name * makeByte(CC * const cc) {
    166     assert(cc->max_codepoint() <= 0xFF);
    167     const std::string name = cc->canonicalName(CC_type::ByteClass);
    168     return new Name(nullptr, 0, name.c_str(), name.length(), Name::Type::Byte, cc);
    169 }
    170    
    171     inline Name * makeCapture(const std::string & name, RE * captured) {
     164inline Name * makeCapture(const std::string & name, RE * captured) {
    172165    return new Name(nullptr, 0, name.c_str(), name.length(), Name::Type::Capture, captured);
    173166}
Note: See TracChangeset for help on using the changeset viewer.