FluentArgs

FluentArgs wraps arguments passed to message formatting. Supports both named arguments (key-value) and positional arguments. Corresponds to Rust's FluentArgs.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(value: FluentValue)

Add a positional argument.

fun add(value: Any?)

Add a positional argument from any value.

Link copied to clipboard

Check if a named argument exists.

Link copied to clipboard
fun get(key: String): FluentValue?

Get a named argument by key.

Link copied to clipboard

Get a positional argument by index.

Link copied to clipboard

Get all named arguments as map.

Link copied to clipboard

Get the number of named arguments.

Link copied to clipboard

Get all positional arguments.

Link copied to clipboard

Get the number of positional arguments.

Link copied to clipboard
fun set(key: String, value: Any?)

Set a named argument.

Link copied to clipboard

Get all arguments as map (named only).