re2_c.cxx
/* Return 0 if the pattern matches the given text, 1 otherwise. */
Return 0 if the pattern matches the given text, 1 otherwise.
Return 0 if the pattern matches the given text 1 otherwise .
int
re2c_find(const char* text, int text_len, struct re2_pattern_t* pattern) {
    RE2* re2 = (RE2*)(void*)pattern;
    if (unlikely(!re2))
        return 1;
    bool match = re2->Match(re2::StringPiece(text, text_len),
                            0 , text_len ,
                            re2::RE2::UNANCHORED, 0, 0);
    return match ? 0 : 1;
}
int re2c_find ( const char * text , int text_len , struct re2_pattern_t * pattern ) { RE2 * re2 = ( RE2 * ) ( void * ) pattern ; if ( unlikely ( ! re2 ) ) return 1 ; bool match = re2 -> Match ( re2 :: StringPiece ( text , text_len ) , 0 , text_len , re2 :: RE2 :: UNANCHORED , 0 , 0 ) ; return match ? 0 : 1 ; }
Return 0 if the pattern matches the given text, 1 otherwise.
Return 0 if the pattern matches the given text 1 otherwise .
/* startpos */ /* endpos*/