Text.set

Replace the content of this Text. If the new content is immutable (read-only) then you might consider setting the 'copy' parameter to false. Doing so will avoid allocating heap-space for the content until it is modified via one of these methods. This can be useful when wrapping an array "temporarily" with a stack-based Text.

Also resets the curent selection to null

  1. Text set(T[] chars, bool copy)
  2. Text set(const(T)[] chars)
  3. Text set(TextViewT other, bool copy)
    class Text(T)
    final
    static if(DMDFE_Version != 2061)
    set
    (
    TextViewT other
    ,
    bool copy = true
    )

Meta