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.
- Alphabetic
- By Inheritance
- TextBuffer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TextBuffer()
Value Members
- def append(cs: collection.Seq[Char]): TextBuffer.this.type
Appends this string to the text buffer, trimming whitespaces as needed.
- val sb: collection.mutable.StringBuilder
- def toText: collection.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.