static SQInteger _regexp_match( HSQUIRRELVM v ) { SETUP_REX( v ); const SQChar *str; sq_getstring( v, 2, &str ); if ( sqstd_rex_match( self, str ) == SQTrue ) { sq_pushinteger( v, 1 ); return 1; } return 0; }
bool RegExp::match(const char* str, uint start) { if (_peer == NULL) return false; return sqstd_rex_match((SQRex*)_peer, str+start); }