isHex

private fun String.isHex(start: Int, length: Int): Boolean

Extension: determines if a section of a String is composed entirely of hex digits

Parameters

start

starting index

length

length of section (if == 0 isHex returns true, if receiver too short isHex returns false)

Sources

jvm source
Link copied to clipboard