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

scala.tools.scalap.scalax.util.StringUtil.scala Maven / Gradle / Ivy

There is a newer version: 2.13.16
Show newest version
package scala.tools.scalap
package scalax
package util

import java.beans.Introspector

/**
 * @author ilyas
 */

object StringUtil {

  def trimStart(s: String, prefix: String) = if (s != null && s.startsWith(prefix)) s.substring(prefix.length) else s

  def decapitalize(s: String) = Introspector.decapitalize(s)

  def cutSubstring(dom: String)(s: String) = if (dom != null && s != null) dom.replace(s, "") else dom

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy