dmd.doc - D Programming Language

Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Calendar
  - Forums
  - IRC
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
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.doc

Compiler implementation of the D programming language.
Authors:
Walter Bright
License:
Boost License 1.0

Source doc.d

Documentation https://dlang.org/phobos/dmd_doc.html

Coverage https://codecov.io/gh/dlang/dmd/src/master/src/dmd/doc.d

void `gendocfile`(Module `m`);
void `escapeDdocString`(OutBuffer* `buf`, size_t `start`);
  Having unmatched parentheses can hose the output of Ddoc, as the macros depend on properly nested parentheses. This function replaces all ( with ( and ) with ) to preserve text literally. This also means macros in the text won't be expanded.
struct `DocComment`;
  static void `parseMacros`(Escape** `pescapetable`, Macro** `pmacrotable`, const(char)* `m`, size_t `mlen`);
    Parse macros out of Macros: section. Macros are of the form: name1 = value1
    name2 = value2
  static void `parseEscapes`(Escape** `pescapetable`, const(char)* `textstart`, size_t `textlen`);
    Parse escapes of the form: /c/string/ where c is a single character. Multiple escapes can be separated by whitespace and/or commas.
  void `parseSections`(const(char)* `comment`);
    Parse next paragraph out of *pcomment. Update *pcomment to point past paragraph. Returns NULL if no more paragraphs. If paragraph ends in 'identifier:', then (*pcomment)[0 .. idlen] is the identifier.
size_t `skiptoident`(OutBuffer* `buf`, size_t `i`);
  Scan forward to one of: start of identifier beginning of next line end of buf
bool `isIdStart`(const(char)* `p`);
  Determine if p points to the start of an identifier.
bool `isIdTail`(const(char)* `p`);
  Determine if p points to the rest of an identifier.
int `utfStride`(const(char)* `p`);
  Return number of bytes in UTF character.

Copyright © 1999-2018 by the D Language Foundation | Page generated by Ddoc on Tue Oct 30 16:27:39 2018