2
0

syspchh.inc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. *********************************************************************
  3. Copyright (C) 1997, 1998 Gertjan Schouten
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. *********************************************************************
  16. System Utilities For Free Pascal
  17. }
  18. { shared with strings unit }
  19. function strlen(p:pchar):sizeint;external name 'FPC_PCHAR_LENGTH';
  20. function strcopy(dest,source : pchar) : pchar;
  21. function strlcopy(dest,source : pchar;maxlen : SizeInt) : pchar;
  22. function strecopy(dest,source : pchar) : pchar;
  23. function strend(p : pchar) : pchar;
  24. function strcat(dest,source : pchar) : pchar;
  25. function strcomp(str1,str2 : pchar) : SizeInt;
  26. function strlcomp(str1,str2 : pchar;l : SizeInt) : SizeInt;
  27. function stricomp(str1,str2 : pchar) : SizeInt;
  28. function strmove(dest,source : pchar;l : SizeInt) : pchar;
  29. function strlcat(dest,source : pchar;l : SizeInt) : pchar;
  30. function strscan(p : pchar;c : char) : pchar;
  31. function strrscan(p : pchar;c : char) : pchar;
  32. function strlower(p : pchar) : pchar;
  33. function strupper(p : pchar) : pchar;
  34. function strlicomp(str1,str2 : pchar;l : SizeInt) : SizeInt;
  35. function strpos(str1,str2 : pchar) : pchar;
  36. function strnew(p : pchar) : pchar;
  37. { Different from strings unit - ansistrings or different behaviour }
  38. function StrPas(Str: PChar): string;
  39. function StrPCopy(Dest: PChar; Source: string): PChar;
  40. function StrPLCopy(Dest: PChar; Source: string; MaxLen: SizeUInt): PChar;
  41. function StrAlloc(Size: cardinal): PChar;
  42. function StrBufSize(Str: PChar): SizeUInt;
  43. procedure StrDispose(Str: PChar);