Sign in Join
FPDoc Onlineexperiment

StringRefCount function

In unit System

Get the reference count of a string.

Declaration

pascal
function StringRefCount(const S: RawByteString): SizeInt; overload

Description

StringRefCount returns the reference count of a string ( S), regardless of the string type. It accesses the internal structures of the string to retrieve this information. For an empty string, 0 is returned.

See also

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