private def hexValue()

in atlas-core/src/main/scala/com/netflix/atlas/core/util/Strings.scala [323:328]


  private def hexValue(c: Char): Int = c match {
    case v if v >= '0' && v <= '9' => v - '0'
    case v if v >= 'A' && v <= 'F' => v - 'A' + 10
    case v if v >= 'a' && v <= 'f' => v - 'a' + 10
    case _                         => -1
  }