[fpc-pascal] IsValidIdent() with dots
Michael Van Canneyt
michael at freepascal.org
Wed Mar 23 09:49:50 CET 2016
On Wed, 23 Mar 2016, Juha Manninen wrote:
> Hi
>
> Is there a function like IsValidIdent but accepting also dots (.),
> as in name "TForm1.Action1Execute"?
>
> While fixing a bug:
> http://bugs.freepascal.org/view.php?id=25954
> I copied and modified IsValidIdent.
> It was easy to do, sure, but I would prefer to reuse an existing
> function especialy because this looks like a common use case.
>
> Codetools has a suitable IsDottedIdentifier() but I need it in IDEIntf
> code which must not depend on Codetools.
IsValidIdent in sysutils handles dots.
Michael.
More information about the fpc-pascal
mailing list