Document.rawText

Returns a read-only view of the text. The text may however be changed by other operations, so this slice should be used directly and not after any context yield or API call potentially modifying the data.

If used on an immutable Document, the text cannot be changed and thus returns a full string instead of a const(char)[] slice.

  1. const(char)[] rawText()
  2. string rawText()
    struct Document
    immutable
    string
    rawText
    ()

Meta