# sqstdstring.h

    00001 /*  see copyright notice in squirrel.h */
    00002 #ifndef _SQSTD_STRING_H_
    00003 #define _SQSTD_STRING_H_
    00004
    00005 #ifdef __cplusplus
    00006 extern "C" {
    00007 #endif
    00008
    00009 typedef unsigned int SQRexBool;
    00010 typedef struct SQRex SQRex;
    00011
    00012 typedef struct {
    00013   const SQChar *begin;
    00014   SQInteger len;
    00015 } SQRexMatch;
    00016
    00017 SQUIRREL_API SQRex *sqstd_rex_compile(const SQChar *pattern,const SQChar **error);
    00018 SQUIRREL_API void sqstd_rex_free(SQRex *exp);
    00019 SQUIRREL_API SQBool sqstd_rex_match(SQRex* exp,const SQChar* text);
    00020 SQUIRREL_API SQBool sqstd_rex_search(SQRex* exp,const SQChar* text, const SQChar** out_begin, const SQChar** out_end);
    00021 SQUIRREL_API SQBool sqstd_rex_searchrange(SQRex* exp,const SQChar* text_begin,const SQChar* text_end,const SQChar** out_begin, const SQChar** out_end);
    00022 SQUIRREL_API SQInteger sqstd_rex_getsubexpcount(SQRex* exp);
    00023 SQUIRREL_API SQBool sqstd_rex_getsubexp(SQRex* exp, SQInteger n, SQRexMatch *subexp);
    00024
    00025 SQUIRREL_API SQRESULT sqstd_register_stringlib(HSQUIRRELVM v);
    00026
    00027 #ifdef __cplusplus
    00028 } /*extern "C"*/
    00029 #endif
    00030
    00031 #endif /*_SQSTD_STRING_H_*/