parse

fun parse(value: String): Long?

Parses a single key id from value, accepting an optional 0x prefix.

Hexadecimal is attempted first, then decimal.

Return

the parsed key id, or null when value is empty or malformed.