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)
    struct DDocUtils
    static
    sanitize
    (
    char[] comment
    ,
    char padding
    )
  2. cstring sanitize(cstring comment, char padding)

Parameters

comment
Type: char[]

The string to be sanitized.

padding
Type: char

'/', '+' or '*'

Meta