Create an empty Text with the specified available space
Create a Text upon the provided content. If said 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 Text methods. This can be useful when wrapping an array "temporarily" with a stack-based Text
Create a Text via the content of another. If said 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 Text methods. This can be useful when wrapping an array temporarily with a stack-based Text
Append text to this Text
Append text to this Text
Append a count of characters to this Text
Append an integer to this Text
Append a long to this Text
Append a double to this Text
Append content from input stream at insertion point. Use tango.io.stream.Utf as a wrapper to perform conversion as necessary
Clear the string content
Set the comparator delegate. Where other is null, we behave as a getter only
Compare this Text start with another. Returns 0 if the content matches, less than zero if this Text is "less" than the other, or greater than zero where this Text is "bigger".
Compare this Text start with an array. Returns 0 if the content matches, less than zero if this Text is "less" than the other, or greater than zero where this Text is "bigger".
Return content from this Text
Append encoded text at the current selection point. The text is converted as necessary to the appropritate utf encoding.
Get the encoding type
Does this Text end with another?
Does this Text end with the specified string?
Is this Text equal to another?
Is this Text equal to the provided text?
Append formatted content to this Text
Compare this Text to another. We compare against other Strings only. Literals and other objects are not supported
Is this Text equal to the text of something else?
Insert characters into this Text
Insert text into this Text
Insert another Text into this Text
Remove the selection from this Text and reset the selection to zero length (at the current position)
Replace a section of this Text with the specified character
Replace a section of this Text with the specified array
Replace a section of this Text with another
Reserve some extra room
Return a search iterator for a given pattern. The iterator sets the current text selection as appropriate. For example:
Explicitly set the current selection to the given start and length. values are pinned to the content extents
Find and select the next occurrence of a BMP code point in a string. Returns true if found, false otherwise
Find and select the next substring occurrence. Returns true if found, false otherwise
Find and select the next substring occurrence. Returns true if found, false otherwise
Find and select a prior occurrence of a BMP code point in a string. Returns true if found, false otherwise
Find and select a prior substring occurrence. Returns true if found, false otherwise
Find and select a prior substring occurrence. Returns true if found, false otherwise
Return the currently selected content
Set the content to the provided array. Parameter 'copy' specifies whether the given array is likely to change. If not, the array is aliased until such time it is altered via this class. This can be useful when wrapping an array "temporarily" with a stack-based Text.
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.
Return an alias to the content of this TextView. Note that you are bound by honour to leave this content wholly unmolested. D surely needs some way to enforce immutability upon array references
Return the index and length of the current selection
Does this Text start with another?
Does this Text start with the specified string?
Remove leading and trailing matches from this Text, and reset the selection to the stripped content
Hash this Text
Convert to the UniText types. The optional argument dst will be resized as required to house the conversion. To minimize heap allocation during subsequent conversions, apply the following pattern:
Convert to the UniText types. The optional argument dst will be resized as required to house the conversion. To minimize heap allocation during subsequent conversions, apply the following pattern:
Remove leading and trailing whitespace from this Text, and reset the selection to the trimmed content
Truncate this string at an optional index. Default behaviour is to truncate at the current append point. Current selection is moved to the truncation point, with length 0
Write content to output stream
Return the length of the valid content
Return the current selection point
Set the current selection point, and resets selection length
Selection span
The mutable Text class actually implements the full API, whereas the superclasses are purely abstract (could be interfaces instead).