The Squirrel interpreter. See http://www.squirrel-lang.org/

Dependents:   Squirrel

Committer:
jhnwkmn
Date:
Tue Dec 16 10:20:34 2014 +0000
Revision:
0:97a4f8cc534c
Initial import of Squirrel.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jhnwkmn 0:97a4f8cc534c 1 /* see copyright notice in squirrel.h */
jhnwkmn 0:97a4f8cc534c 2 #ifndef _SQSTD_STRING_H_
jhnwkmn 0:97a4f8cc534c 3 #define _SQSTD_STRING_H_
jhnwkmn 0:97a4f8cc534c 4
jhnwkmn 0:97a4f8cc534c 5 #ifdef __cplusplus
jhnwkmn 0:97a4f8cc534c 6 extern "C" {
jhnwkmn 0:97a4f8cc534c 7 #endif
jhnwkmn 0:97a4f8cc534c 8
jhnwkmn 0:97a4f8cc534c 9 typedef unsigned int SQRexBool;
jhnwkmn 0:97a4f8cc534c 10 typedef struct SQRex SQRex;
jhnwkmn 0:97a4f8cc534c 11
jhnwkmn 0:97a4f8cc534c 12 typedef struct {
jhnwkmn 0:97a4f8cc534c 13 const SQChar *begin;
jhnwkmn 0:97a4f8cc534c 14 SQInteger len;
jhnwkmn 0:97a4f8cc534c 15 } SQRexMatch;
jhnwkmn 0:97a4f8cc534c 16
jhnwkmn 0:97a4f8cc534c 17 SQUIRREL_API SQRex *sqstd_rex_compile(const SQChar *pattern,const SQChar **error);
jhnwkmn 0:97a4f8cc534c 18 SQUIRREL_API void sqstd_rex_free(SQRex *exp);
jhnwkmn 0:97a4f8cc534c 19 SQUIRREL_API SQBool sqstd_rex_match(SQRex* exp,const SQChar* text);
jhnwkmn 0:97a4f8cc534c 20 SQUIRREL_API SQBool sqstd_rex_search(SQRex* exp,const SQChar* text, const SQChar** out_begin, const SQChar** out_end);
jhnwkmn 0:97a4f8cc534c 21 SQUIRREL_API SQBool sqstd_rex_searchrange(SQRex* exp,const SQChar* text_begin,const SQChar* text_end,const SQChar** out_begin, const SQChar** out_end);
jhnwkmn 0:97a4f8cc534c 22 SQUIRREL_API SQInteger sqstd_rex_getsubexpcount(SQRex* exp);
jhnwkmn 0:97a4f8cc534c 23 SQUIRREL_API SQBool sqstd_rex_getsubexp(SQRex* exp, SQInteger n, SQRexMatch *subexp);
jhnwkmn 0:97a4f8cc534c 24
jhnwkmn 0:97a4f8cc534c 25 SQUIRREL_API SQRESULT sqstd_format(HSQUIRRELVM v,SQInteger nformatstringidx,SQInteger *outlen,SQChar **output);
jhnwkmn 0:97a4f8cc534c 26
jhnwkmn 0:97a4f8cc534c 27 SQUIRREL_API SQRESULT sqstd_register_stringlib(HSQUIRRELVM v);
jhnwkmn 0:97a4f8cc534c 28
jhnwkmn 0:97a4f8cc534c 29 #ifdef __cplusplus
jhnwkmn 0:97a4f8cc534c 30 } /*extern "C"*/
jhnwkmn 0:97a4f8cc534c 31 #endif
jhnwkmn 0:97a4f8cc534c 32
jhnwkmn 0:97a4f8cc534c 33 #endif /*_SQSTD_STRING_H_*/