DDocUtils.sanitize

Sanitizes a DDoc comment string.

Leading padding characters are removed from the lines. The various newline types are converted to '\n'.

  1. cstring sanitize(char[] comment, char padding)
  2. cstring sanitize(cstring comment, char padding)
    struct DDocUtils
    static
    sanitize

Parameters

comment
Type: cstring

The string to be sanitized.

padding
Type: char

'/', '+' or '*'

Meta