C API

Squirrel Standard Library 3.0

C API

Initialization

sqstd_register_stringlib
parameters:
HSQUIRRELVM v
return:
remarks:

Formatting

sqstd_format
parameters:
HSQUIRRELVM v
SQInteger nformatstringidx
SQInteger * outlen
SQChar ** output
return:
remarks:

Regular Expessions

sqstd_rex_compile
parameters:
const SQChar * pattern
const SQChar ** error
return:
sqstd_rex_free
parameters:
SQRex * exp
sqstd_rex_match
parameters:
SQRex * exp
const SQChar * text
return:
sqstd_rex_search
parameters:
SQRex * exp
const SQChar * text
const SQChar ** out_begin
const SQChar ** out_end
return:
sqstd_rex_searchrange
parameters:
SQRex * exp
const SQChar * text_begin
const SQChar * text_end
const SQChar ** out_begin
const SQChar ** out_end
return:
sqstd_rex_getsubexpcount
parameters:
SQRex * exp
return:
sqstd_rex_getsubexp
parameters:
SQRex * exp
SQInteger n
SQRexMatch * subexp
return: