OudsAnnotatedString

Base class for annotated strings with rich text formatting support in OUDS components.

This class wraps Compose's AnnotatedString to provide type-safe rich text formatting with support for strong (bold/emphasized) text and clickable links. It serves as the foundation for specialized annotated string types used throughout OUDS components.

This class implements CharSequence, making it compatible with standard string operations.

Inheritors

Types

Link copied to clipboard
interface BaseBuilder

Base interface for all annotated string builders, providing stack management for annotations.

Link copied to clipboard

Builder class for annotated string. Enables construction of an OudsAnnotatedString using methods such as append.

Link copied to clipboard

Interface for builders that support clickable link annotations.

Link copied to clipboard

Interface for builders that support strong (bold/emphasized) text annotations.

Properties

Link copied to clipboard
open override val length: Int
Link copied to clipboard

The plain text content without any formatting annotations.

Functions

Link copied to clipboard
fun capitalize(localeList: LocaleList = LocaleList.current): T

Create capitalized OudsAnnotatedString.

Link copied to clipboard
fun decapitalize(localeList: LocaleList = LocaleList.current): T

Create decapitalized OudsAnnotatedString.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): Char
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun plus(other: T): T

Concatenates this annotated string with another annotated string.

Link copied to clipboard
open override fun subSequence(startIndex: Int, endIndex: Int): CharSequence
Link copied to clipboard
fun toLowerCase(localeList: LocaleList = LocaleList.current): T

Create lower case transformed OudsAnnotatedString.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun toUpperCase(localeList: LocaleList = LocaleList.current): T

Create upper case transformed OudsAnnotatedString.