cats.xml.xpath.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cats-xml-xpath_3 Show documentation
Show all versions of cats-xml-xpath_3 Show documentation
A purely functional XML library
The newest version!
package cats.xml
import eu.cdevreeze.xpathparser.ast.EQName
package object xpath {
private[xpath] object EmptySeq {
def unapply(io: Iterable[?]): Boolean = io.isEmpty
}
private[xpath] object UnSeq {
def unapplySeq(io: Iterable[?]): Option[Seq[?]] = Some(io.toSeq)
}
private[xpath] object EQNameEx {
def unapply(eqn: EQName): Some[String] =
eqn match {
case EQName.QName(qname) => Some(qname.localPart)
case EQName.URIQualifiedName(ename) => Some(ename.localPart)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy