parse

open fun parse(str: String, separators: Array<Char>): Map<String, String>

Extracts a map of name/value pairs from the given string. Names are expected to be unique. Multiple separators may be specified and the earliest found in the input string is used.

Return

a map of name/value pairs

Parameters

str

the string that contains a sequence of name/value pairs

separators

the name/value pairs separators


open fun parse(str: String, separator: Char): Map<String, String>

Extracts a map of name/value pairs from the given string. Names are expected to be unique.

Return

a map of name/value pairs

Parameters

str

the string that contains a sequence of name/value pairs

separator

the name/value pairs separator