Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

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