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).
Authors:
License:
Source common/charactertables.d
Documentation https://dlang.org/phobos/dmd_common_charactertables.html
- 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
(IdentifierTabletable
); - Lookup the table given the table name
- pure nothrow @nogc @safe bool
isAnyIdentifierCharacter
(dcharc
); - 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
(dcharc
); - Convenience function for use in places where we just don't care, what the identifier ranges are.Returns:is character a member of restrictive StartExamples:
assert(isAnyStart('ğ'));
- pure nothrow @nogc @safe bool
isAnyContinue
(dcharc
); - 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 ContinueExamples:
assert(isAnyContinue('ğ'));
- enum int
LS
; - UTF line separator
- enum int
PS
; - UTF paragraph separator
- pure nothrow @nogc @safe bool
isoctal
(const charc
); - pure nothrow @nogc @safe bool
ishex
(const charc
); - pure nothrow @nogc @safe bool
isidchar
(const charc
); - pure nothrow @nogc @safe bool
isZeroSecond
(const charc
); - pure nothrow @nogc @safe bool
isDigitSecond
(const charc
); - pure nothrow @nogc @safe bool
issinglechar
(const charc
); - pure nothrow @nogc @safe bool
c_isxdigit
(const intc
); - pure nothrow @nogc @safe bool
c_isalnum
(const intc
);
Copyright © 1999-2024 by the D Language Foundation | Page generated by
Ddoc on (no date time)