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.


Compiler implementation of the D programming language.

Source: tokens.d

struct Token;
final void setString(const(char)* ptr, size_t length);
Set to contents of ptr[0..length]
const(char)* ptr pointer to string
size_t length length of string
final void setString(ref const OutBuffer buf);
Set to contents of buf
OutBuffer buf string (not zero terminated)
final void setString();
Set to empty string