Guest User

string.inc

a guest
Apr 21st, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.13 KB | None | 0 0
  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.  
  12. native strlen(const string[]);
  13. native strpack(dest[], const source[], maxlength=sizeof dest);
  14. native strunpack(dest[], const source[], maxlength=sizeof dest);
  15. native strcat(dest[], const source[], maxlength=sizeof dest);
  16.  
  17. native strmid(dest[], const source[], start, end, maxlength=sizeof dest);
  18. native bool: strins(string[], const substr[], pos, maxlength=sizeof string);
  19. native bool: strdel(string[], start, end);
  20.  
  21. native strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax);
  22. native strfind(const string[], const sub[], bool:ignorecase=false, pos=0);
  23.  
  24. native strval(const string[]);
  25. native valstr(dest[], value, bool:pack=false);
  26. native bool: ispacked(const string[]);
  27.  
  28. native uudecode(dest[], const source[], maxlength=sizeof dest);
  29. native uuencode(dest[], const source[], numbytes, maxlength=sizeof dest);
  30. native memcpy(dest[], const source[], index=0, numbytes, maxlength=sizeof dest);
Advertisement
Add Comment
Please, Sign In to add comment