Sign in Join
FPDoc Onlineexperiment

Strings unit

Null-terminated string (PChar) routines.

This chapter describes the STRINGS unit for Free Pascal. This unit is system independent, and therefore works on all supported platforms.

Procedures and functions

strallocfunctionAllocate memory for a new null-terminated string on the heap.
strcatfunctionConcatenate 2 null-terminated strings.
strcompfunctionCompare 2 null-terminated strings, case sensitive.
strcopyfunctionCopy a null-terminated string.
strdisposeproceduredisposes of a null-terminated string on the heap.
strecopyfunctionCopy a null-terminated string, return a pointer to the end.
strendfunctionReturn a pointer to the end of a null-terminated string.
stricompfunctionCompare 2 null-terminated strings, case insensitive.
striposfunctionReturn the position of a substring in a string, case insensitive.
striscanfunctionScan a string for a character, case-insensitive.
strlcatfunctionConcatenate 2 null-terminated strings, with length boundary.
strlcompfunctionCompare limited number of characters of 2 null-terminated strings.
strlcopyfunctionCopy a null-terminated string, limited in length.
strlenfunctionLength of a null-terminated string.
strlicompfunctionCompare limited number of characters in 2 null-terminated strings, ignoring case.
strlowerfunctionConvert null-terminated string to all-lowercase.
strmovefunctionMove a null-terminated string to new location.
strnewfunctionAllocate room for new null-terminated string.
strpasfunctionConvert a null-terminated string to a shortstring.
strpcopyfunctionCopy a pascal string to a null-terminated string.
strposfunctionSearch for a null-terminated substring in a null-terminated string.
strriscanfunctionScan a string reversely for a character, case-insensitive.
strrscanfunctionFind last occurrence of a character in a null-terminated string.
strscanfunctionFind first occurrence of a character in a null-terminated string.
strupperfunctionConvert null-terminated string to all-uppercase.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.