Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

dmd.common.charactertables

Character tables related to identifiers.
Supports UAX31, C99, C11 and least restrictive (All).
enum IdentifierTable: int;
UAX31
C99
C11
LR
Least Restrictive aka All
struct IdentifierCharLookup;
bool function(dchar) isStart;
bool function(dchar) isContinue;
static pure nothrow @nogc @safe IdentifierCharLookup forTable(IdentifierTable table);
Lookup the table given the table name
pure nothrow @nogc @safe bool isAnyIdentifierCharacter(dchar c);
Convenience function for use in places where we just don't care, what the identifier ranges are, or if it is start/continue.
Returns:
is character a member of least restrictive of all.
Examples:
assert(isAnyIdentifierCharacter('ğ'));
pure nothrow @nogc @safe bool isAnyStart(dchar c);
Convenience function for use in places where we just don't care, what the identifier ranges are.
Returns:
is character a member of restrictive Start
Examples:
assert(isAnyStart('ğ'));
pure nothrow @nogc @safe bool isAnyContinue(dchar c);
Convenience function for use in places where we just don't care, what the identifier ranges are.
Returns:
is character a member of least restrictive Continue
Examples:
assert(isAnyContinue('ğ'));
enum int LS;
UTF line separator
enum int PS;
UTF paragraph separator
pure nothrow @nogc @safe bool isoctal(const char c);
pure nothrow @nogc @safe bool ishex(const char c);
pure nothrow @nogc @safe bool isidchar(const char c);
pure nothrow @nogc @safe bool isZeroSecond(const char c);
pure nothrow @nogc @safe bool isDigitSecond(const char c);
pure nothrow @nogc @safe bool issinglechar(const char c);
pure nothrow @nogc @safe bool c_isxdigit(const int c);
pure nothrow @nogc @safe bool c_isalnum(const int c);