Changeset 5182


Ignore:
Timestamp:
Oct 5, 2016, 6:46:34 AM (3 years ago)
Author:
cameron
Message:

Remove inline declarations for subclassing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_parser.cpp

    r5181 r5182  
    6161}
    6262
    63 inline RE_Parser::RE_Parser(const std::string & regular_expression)
     63RE_Parser::RE_Parser(const std::string & regular_expression)
    6464    : fModeFlagSet(0)
    6565    , fNested(false)
     
    101101}
    102102
    103 inline RE * RE_Parser::parse_seq() {
     103RE * RE_Parser::parse_seq() {
    104104    std::vector<RE *> seq;
    105105    for (;;) {
     
    269269}
    270270
    271 inline RE * RE_Parser::extend_item(RE * re) {
     271RE * RE_Parser::extend_item(RE * re) {
    272272    if (LLVM_LIKELY(mCursor.more())) {
    273273        int lb = 0, ub = 0;
     
    313313}
    314314
    315 inline std::pair<int, int> RE_Parser::parse_range_bound() {
     315std::pair<int, int> RE_Parser::parse_range_bound() {
    316316    int lower_bound = 0, upper_bound = 0;
    317317    if (*++mCursor != ',') {
     
    346346                                     bit3C('B') | bit3C('P') | bit3C('Q') | bit3C('D') | bit3C('W') | bit3C('S') | bit3C('N') | bit3C('X');
    347347
    348 inline bool RE_Parser::isSetEscapeChar(char c) {
     348bool RE_Parser::isSetEscapeChar(char c) {
    349349    return c >= 0x3C && c <= 0x7B && ((setEscapeCharacters >> (c - 0x3C)) & 1) == 1;
    350350}
    351351                                 
    352352
    353 inline RE * RE_Parser::parse_escaped() {
     353RE * RE_Parser::parse_escaped() {
    354354   
    355355    if (isSetEscapeChar(*mCursor)) {
     
    592592}
    593593
    594 inline bool RE_Parser::isUnsupportChartsetOperator(char c) {
     594bool RE_Parser::isUnsupportChartsetOperator(char c) {
    595595    return false;
    596596}
     
    951951}
    952952
    953 inline void RE_Parser::insert(CC * cc, const codepoint_t cp) {
     953void RE_Parser::insert(CC * cc, const codepoint_t cp) {
    954954    if (fModeFlagSet & CASE_INSENSITIVE_MODE_FLAG) {
    955955        caseInsensitiveInsert(cc, cp);
     
    959959}
    960960
    961 inline void RE_Parser::insert_range(CC * cc, const codepoint_t lo, const codepoint_t hi) {
     961void RE_Parser::insert_range(CC * cc, const codepoint_t lo, const codepoint_t hi) {
    962962    if (fModeFlagSet & CASE_INSENSITIVE_MODE_FLAG) {
    963963        caseInsensitiveInsertRange(cc, lo, hi);
     
    996996}
    997997
    998 inline Name * RE_Parser::makeDigitSet() {
     998Name * RE_Parser::makeDigitSet() {
    999999    return mMemoizer.memoize(createName("nd"));
    10001000}
    10011001
    1002 inline Name * RE_Parser::makeAlphaNumeric() {
     1002Name * RE_Parser::makeAlphaNumeric() {
    10031003    return mMemoizer.memoize(createName("alnum"));
    10041004}
    10051005
    1006 inline Name * RE_Parser::makeWhitespaceSet() {
     1006Name * RE_Parser::makeWhitespaceSet() {
    10071007    return mMemoizer.memoize(createName("whitespace"));
    10081008}
    10091009
    1010 inline Name * RE_Parser::makeWordSet() {
     1010Name * RE_Parser::makeWordSet() {
    10111011    return mMemoizer.memoize(createName("word"));
    10121012}
Note: See TracChangeset for help on using the changeset viewer.