Skip to main content
Table of Contents

TTMSFNCUtils.FirstChar Method

Finds the first character from a character set in a string.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class function FirstChar(ACharset: TTMSFNCUtilsCharSet; AValue: string; var spos: Integer): char;
__classmethod System::WideChar __fastcall FirstChar(TTMSFNCUtilsCharSet ACharset, System::UnicodeString AValue, int &spos);

Parameters

Name Description
ACharset Character set to search for.
AValue String to inspect.
spos Receives the 1-based position where the character was found.

Returns

First matching character, or #0 when no match is found.