Identifier.isValidIdentifier

Determine if string is a valid Identifier.

  1. bool isValidIdentifier(const(char)* str)
  2. bool isValidIdentifier(const(char)[] str)
    class Identifier
    nothrow extern (D) static
    bool
    isValidIdentifier
    (
    const(char)[] str
    )

Parameters

str const(char)[]

string to check

Return Value

Type: bool

false for invalid

Meta