1 /* see copyright notice in squirrel.h */
\r
2 #ifndef _SQSTD_STRING_H_
\r
3 #define _SQSTD_STRING_H_
\r
9 //#define SQRex_True 1
\r
10 //#define SQRex_False 0
\r
12 typedef unsigned int SQRexBool;
\r
13 typedef struct SQRex SQRex;
\r
16 const SQChar *begin;
\r
20 SQUIRREL_API SQRex *sqstd_rex_compile(const SQChar *pattern,const SQChar **error);
\r
21 SQUIRREL_API void sqstd_rex_free(SQRex *exp);
\r
22 SQUIRREL_API SQBool sqstd_rex_match(SQRex* exp,const SQChar* text);
\r
23 SQUIRREL_API SQBool sqstd_rex_search(SQRex* exp,const SQChar* text, const SQChar** out_begin, const SQChar** out_end);
\r
24 SQUIRREL_API SQBool sqstd_rex_searchrange(SQRex* exp,const SQChar* text_begin,const SQChar* text_end,const SQChar** out_begin, const SQChar** out_end);
\r
25 SQUIRREL_API int sqstd_rex_getsubexpcount(SQRex* exp);
\r
26 SQUIRREL_API SQBool sqstd_rex_getsubexp(SQRex* exp, int n, SQRexMatch *subexp);
\r
28 SQUIRREL_API SQRESULT sqstd_register_stringlib(HSQUIRRELVM v);
\r
34 #endif /*_SQSTD_STRING_H_*/
\r