parse

fun parse(string: String): Name

Convert a String to name parsing it and extracting name tokens and index syntax. This operation is rather heavy so it should be used with care in high performance code.