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

makeByte uses the Byte alphabet

File:
1 edited

Legend:

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

    r5795 r5797  
    5353    friend CC * subtractCC(const CC * a, const CC * b);
    5454    friend CC * intersectCC(const CC * a, const CC * b);
     55    friend CC * makeByte(const codepoint_t codepoint);
     56    friend CC * makeByte(const codepoint_t lo, const codepoint_t hi);
    5557
    5658    CC(const cc::Alphabet * alphabet);
     
    109111}
    110112
    111     inline CC * makeCC(const codepoint_t codepoint, const cc::Alphabet * alphabet = &cc::Unicode) {
     113inline CC * makeCC(const codepoint_t codepoint, const cc::Alphabet * alphabet = &cc::Unicode) {
    112114    return new CC(codepoint, alphabet);
    113115}
     
    143145}
    144146
     147inline CC * makeByte(const codepoint_t codepoint) {
     148    return new CC(codepoint, &cc::Byte);
     149}
     150
     151inline CC * makeByte(const codepoint_t lo, const codepoint_t hi) {
     152    return new CC(lo, hi, &cc::Byte);
     153}
     154   
    145155}
    146156
Note: See TracChangeset for help on using the changeset viewer.