Skip to content

StringRefCount

Get the reference count of a string

Declaration

Source position: systemh.inc line 1322

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

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