Packages

class TextBuffer extends AnyRef

The class TextBuffer is for creating text nodes without surplus whitespace. All occurrences of one or more whitespace in strings appended with the append method will be replaced by a single space character, and leading and trailing space will be removed completely.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TextBuffer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TextBuffer()

Value Members

  1. def append(cs: Seq[Char]): TextBuffer.this.type

    Appends this string to the text buffer, trimming whitespaces as needed.

  2. val sb: collection.mutable.StringBuilder
  3. def toText: Seq[Text]

    Returns an empty sequence if text is only whitespace.

    Returns an empty sequence if text is only whitespace.

    returns

    the text without whitespaces.