System.UnicodeString.ThrowIfOutOfRange

From RAD Studio API Documentation
Jump to: navigation, search

C++

void  __cdecl ThrowIfOutOfRange(int idx) const;

Properties

Type Visibility Source Unit Parent
function protected ustring.h System UnicodeString

Description

Throws an exception if the index is out of range in UnicodeString.

ThrowIfOutOfRange throws an ERangeError exception if the given 1-based character index is out of range for a UnicodeString instance. Specifically, it throws an exception if the index is less than 1 or greater than the character length of the string.