1 /* see copyright notice in squirrel.h */
2 #ifndef _SQSTD_STRING_H_
3 #define _SQSTD_STRING_H_
5 typedef unsigned int SQRexBool
;
6 typedef struct SQRex SQRex
;
13 SQRex
*sqstd_rex_compile(const SQChar
*pattern
,const SQChar
**error
);
14 void sqstd_rex_free(SQRex
*exp
);
15 SQBool
sqstd_rex_match(SQRex
* exp
,const SQChar
* text
);
16 SQBool
sqstd_rex_search(SQRex
* exp
,const SQChar
* text
, const SQChar
** out_begin
, const SQChar
** out_end
);
17 SQBool
sqstd_rex_searchrange(SQRex
* exp
,const SQChar
* text_begin
,const SQChar
* text_end
,const SQChar
** out_begin
, const SQChar
** out_end
);
18 SQInteger
sqstd_rex_getsubexpcount(SQRex
* exp
);
19 SQBool
sqstd_rex_getsubexp(SQRex
* exp
, SQInteger n
, SQRexMatch
*subexp
);
21 SQRESULT
sqstd_format(HSQUIRRELVM v
,SQInteger nformatstringidx
,SQInteger
*outlen
,SQChar
**output
);
23 SQRESULT
sqstd_register_stringlib(HSQUIRRELVM v
);
25 #endif /*_SQSTD_STRING_H_*/