format

open fun format(@NonNull fstring: String, @Nullable objs: List<Any>): String

Format a string using only '%' placeholders. Differs from String.format() as type can be omitted.

format("Hello %!", "world") ->"Hello world!"

Return

The formatted string

Parameters

fstring

The string to format

objs

The objects to insert into the string


open fun format(@NonNull fstring: String, @Nullable objs: Array<Any>): String

Format a string using only '%' placeholders.

Return

The formatted string

Parameters

fstring

The string to format

objs

The objects to insert into the string