Skip to content

StringRefCount

Get the reference count of a string.

Declaration

Source position: systemh.inc line 1410

function StringRefCount(const S: RawByteString) : SizeInt;  overload; overload;
function StringRefCount(const S: UnicodeString) : SizeInt;  overload; 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

Name Description
StringCodePage Get the code page of a string.
StringElementSize Get the character size of a string.