SAMP Gitlab CI Test
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.

30 lines
1.1 KiB

  1. /* String functions
  2. *
  3. * (c) Copyright 2005, ITB CompuPhase
  4. * This file is provided as is (no warranties).
  5. */
  6. #if defined _string_included
  7. #endinput
  8. #endif
  9. #define _string_included
  10. #pragma library String
  11. native strlen(const string[]);
  12. native strpack(dest[], const source[], maxlength=sizeof dest);
  13. native strunpack(dest[], const source[], maxlength=sizeof dest);
  14. native strcat(dest[], const source[], maxlength=sizeof dest);
  15. native strmid(dest[], const source[], start, end, maxlength=sizeof dest);
  16. native bool: strins(string[], const substr[], pos, maxlength=sizeof string);
  17. native bool: strdel(string[], start, end);
  18. native strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax);
  19. native strfind(const string[], const sub[], bool:ignorecase=false, pos=0);
  20. native strval(const string[]);
  21. native valstr(dest[], value, bool:pack=false);
  22. native bool: ispacked(const string[]);
  23. native uudecode(dest[], const source[], maxlength=sizeof dest);
  24. native uuencode(dest[], const source[], numbytes, maxlength=sizeof dest);
  25. native memcpy(dest[], const source[], index=0, numbytes, maxlength=sizeof dest);