Rework the trip history window layout.
[openttd-joker.git] / src / 3rdparty / squirrel / include / sqstdstring.h
blob856c33f79185f1c86caf1d6b5f62dddfd23f4a18
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;
8 typedef struct {
9 const SQChar *begin;
10 SQInteger len;
11 } SQRexMatch;
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_*/