All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.http.codec.PathCodecPlatformSpecific.scala Maven / Gradle / Ivy

package zio.http.codec

trait PathCodecPlatformSpecific {
  def parseLong(s: CharSequence, beginIndex: Int, endIndex: Int, radix: Int): Long =
    java.lang.Long.parseLong(s.subSequence(beginIndex, endIndex).toString, radix)

  def parseInt(s: CharSequence, beginIndex: Int, endIndex: Int, radix: Int): Int =
    java.lang.Integer.parseInt(s.subSequence(beginIndex, endIndex).toString, radix)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy