TextBuffer

class TextBuffer

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.

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.

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def append(cs: Seq[Char]): TextBuffer

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

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

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.

Concrete fields

val sb: StringBuilder