formatString

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

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

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

Return

The formatted string

Parameters

fstring

The string to format

objs

The objects to insert into the string


open fun formatString(@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