replaceTokens

abstract fun replaceTokens(sequence: String, tokenMap: TokenMap): String

Replaces tokens in a given sequence using a token map.

Return

The sequence with replaced tokens.

Parameters

sequence

The input sequence containing tokens.

tokenMap

A map of tokens to their replacement values.