Ignore:
Timestamp:
Aug 29, 2016, 3:37:03 PM (3 years ago)
Author:
cameron
Message:

Some clean ups of encoding info for ccc restructuring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.h

    r5046 r5137  
    1010#include <re/re_cc.h>
    1111#include <pablo/builder.hpp>
    12 #include "utf_encoding.h"
    1312#include <string>
    1413
     
    2726    using Vars = std::vector<pablo::Var *>;
    2827
    29     CC_Compiler(pablo::PabloFunction & function, const Encoding & encoding, const std::string prefix = "basis");
     28    CC_Compiler(pablo::PabloFunction & function, const unsigned encodingBits = 8, const std::string prefix = "basis");
    3029
    3130    pablo::Assign * compileCC(const re::CC *cc);
     
    4645
    4746    bool isUTF_16() {
    48         return mEncoding.getBits() == 16;
     47        return mEncodingBits == 16;
    4948    }
    5049
     
    6867    pablo::PabloBuilder         mBuilder;
    6968    std::vector<pablo::Var *>   mBasisBit;
    70     const Encoding &            mEncoding;
     69    const unsigned              mEncodingBits;
     70    unsigned                    mEncodingMask;
    7171};
    7272
Note: See TracChangeset for help on using the changeset viewer.