System.SysUtils.IsValidIdent
Delphi
function IsValidIdent(const Ident: string; AllowDots: Boolean): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsValidIdent(const System::UnicodeString Ident, bool AllowDots = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Determines whether a string conforms to Delphi identifier rules.
Call IsValidIdent to determine whether the passed Ident is valid for use as an identifier, such as the name of a component.
An identifier is a sequence of letters, digits, or underscores. Only the first 63 characters are used uniquely. Letters are limited to A-Z and a-z, although the case is ignored. The first character cannot be a digit.