placeholder

fun placeholder(message: String, map: Map<String, String>): String

Replaces placeholders in the message with corresponding values from the map.

Return

The message with replaced placeholders.

Parameters

message

The message with placeholders.

map

The map of placeholders and values to replace them with.


fun placeholder(message: String, vararg args: Any): String

Replaces placeholders in the message with corresponding values from the arguments.

Return

The message with replaced placeholders.

Parameters

message

The message with placeholders.

args

The arguments to replace the placeholders with.