Text

class Text

Text and string manipulation utilities.

Author

Lucas Bubner, 2023

Since

1.0.0-pre

Types

Link copied to clipboard
open class Builder : CharSequence
A modified wrapper of StringBuilder that internally calls format on all append calls.
Link copied to clipboard
open class HtmlBuilder
Allows for the building of HTML strings, similar to the DualTelemetry HtmlItem for Driver Station telemetry.

Functions

Link copied to clipboard
open fun builder(capacity: Int): Text.Builder
open fun builder(@NonNull initial: String): Text.Builder
Return a wrapper of StringBuilder that internally calls format on all append calls.
Link copied to clipboard
open fun format(@NonNull fstring: String, @Nullable objs: Array<Any>): String
open fun format(@NonNull fstring: String, @Nullable objs: List<Any>): String
Format a string using only '%' placeholders.
Link copied to clipboard
Begin building an HTML string.
Link copied to clipboard
open fun lower(@NonNull str: String): String
Lowercase a string.
Link copied to clipboard
open fun removeHtml(@NonNull htmlString: String): String
Removes HTML from a string.
Link copied to clipboard
open fun upper(@NonNull str: String): String
Uppercase a string.