syspchh.inc 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. *********************************************************************
  3. $Id$
  4. Copyright (C) 1997, 1998 Gertjan Schouten
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. *********************************************************************
  17. System Utilities For Free Pascal
  18. }
  19. { shared with strings unit }
  20. function strlen(p:pchar):sizeint;external name 'FPC_PCHAR_LENGTH';
  21. function strcopy(dest,source : pchar) : pchar;
  22. function strlcopy(dest,source : pchar;maxlen : SizeInt) : pchar;
  23. function strecopy(dest,source : pchar) : pchar;
  24. function strend(p : pchar) : pchar;
  25. function strcat(dest,source : pchar) : pchar;
  26. function strcomp(str1,str2 : pchar) : SizeInt;
  27. function strlcomp(str1,str2 : pchar;l : SizeInt) : SizeInt;
  28. function stricomp(str1,str2 : pchar) : SizeInt;
  29. function strmove(dest,source : pchar;l : SizeInt) : pchar;
  30. function strlcat(dest,source : pchar;l : SizeInt) : pchar;
  31. function strscan(p : pchar;c : char) : pchar;
  32. function strrscan(p : pchar;c : char) : pchar;
  33. function strlower(p : pchar) : pchar;
  34. function strupper(p : pchar) : pchar;
  35. function strlicomp(str1,str2 : pchar;l : SizeInt) : SizeInt;
  36. function strpos(str1,str2 : pchar) : pchar;
  37. function strnew(p : pchar) : pchar;
  38. { Different from strings unit - ansistrings or different behaviour }
  39. function StrPas(Str: PChar): string;
  40. function StrPCopy(Dest: PChar; Source: string): PChar;
  41. function StrPLCopy(Dest: PChar; Source: string; MaxLen: SizeUInt): PChar;
  42. function StrAlloc(Size: cardinal): PChar;
  43. function StrBufSize(Str: PChar): SizeUInt;
  44. procedure StrDispose(Str: PChar);
  45. {
  46. $Log$
  47. Revision 1.4 2004-11-21 15:35:23 peter
  48. * float routines all use internproc and compilerproc helpers
  49. Revision 1.3 2004/05/01 23:55:18 peter
  50. * replace strlenint with sizeint
  51. Revision 1.2 2004/02/20 22:15:16 florian
  52. + x86_64 dependend sysutils part added
  53. * some 64 bit adaptions
  54. Revision 1.1 2003/10/06 21:01:06 peter
  55. * moved classes unit to rtl
  56. Revision 1.3 2002/09/07 16:01:22 peter
  57. * old logs removed and tabs fixed
  58. }