System.StringRefCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StringRefCount(const S: UnicodeString): Integer;
function StringRefCount(const S: _RawByteStr): Integer;

C++

extern DELPHI_PACKAGE int __fastcall StringRefCount(const UnicodeString S)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Returns the reference count of a string.

Call StringRefCount to obtain the reference count of a string. Each string has an associated reference count. This value is used to detect how many references a string has.

To ensure that a string has a reference count of one, call UniqueString.

See Also