final class IDN extends Ordered[IDN]
Internationalized domain name, as specified by RFC3490 and RFC5891.
This type models internationalized hostnames. An IDN provides unicode labels, a unicode string form, and an ASCII hostname form.
A well formed IDN consists of one or more labels separated by dots. Each label may contain unicode characters as long as the converted ASCII form meets the requirements of RFC1123 (e.g., 63 or fewer characters and no leading or trailing dash). A dot is represented as an ASCII period or one of the unicode dots: full stop, ideographic full stop, fullwidth full stop, halfwidth ideographic full stop.
The toString method returns the IDN in the form in which it was constructed. Sometimes it is useful to
normalize the IDN -- converting all dots to an ASCII period and converting all labels to lowercase.
Note: equality and comparison of IDNs is case-sensitive. Consider comparing normalized toString values for a more lenient notion of equality.
- Source
- IDN.scala
- Alphabetic
- By Inheritance
- IDN
- Ordered
- Comparable
- AnyRef
- Any
- by orderingToOrdered
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (IDN, B)
-
def
<(that: IDN): Boolean
- Definition Classes
- Ordered
-
def
<=(that: IDN): Boolean
- Definition Classes
- Ordered
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
>(that: IDN): Boolean
- Definition Classes
- Ordered
-
def
>=(that: IDN): Boolean
- Definition Classes
- Ordered
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
compare(that: IDN): Int
- Definition Classes
- IDN → Ordered
-
def
compareTo(that: IDN): Int
- Definition Classes
- Ordered → Comparable
- def ensuring(cond: (IDN) ⇒ Boolean, msg: ⇒ Any): IDN
- def ensuring(cond: (IDN) ⇒ Boolean): IDN
- def ensuring(cond: Boolean, msg: ⇒ Any): IDN
- def ensuring(cond: Boolean): IDN
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- IDN → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- IDN → AnyRef → Any
- val hostname: Hostname
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val labels: NonEmptyList[Label]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
normalized: IDN
Converts this IDN to lower case and replaces dots with ASCII periods.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
toString: String
- Definition Classes
- IDN → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def →[B](y: B): (IDN, B)
Shadowed Implicit Value Members
-
def
<(that: IDN): Boolean
- Implicit
- This member is added by an implicit conversion from IDN to Ordered[IDN] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(iDN: Ordered[IDN]).<(that)
- Definition Classes
- Ordered
-
def
<=(that: IDN): Boolean
- Implicit
- This member is added by an implicit conversion from IDN to Ordered[IDN] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(iDN: Ordered[IDN]).<=(that)
- Definition Classes
- Ordered
-
def
>(that: IDN): Boolean
- Implicit
- This member is added by an implicit conversion from IDN to Ordered[IDN] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(iDN: Ordered[IDN]).>(that)
- Definition Classes
- Ordered
-
def
>=(that: IDN): Boolean
- Implicit
- This member is added by an implicit conversion from IDN to Ordered[IDN] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(iDN: Ordered[IDN]).>=(that)
- Definition Classes
- Ordered
-
def
compare(that: IDN): Int
- Implicit
- This member is added by an implicit conversion from IDN to Ordered[IDN] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(iDN: Ordered[IDN]).compare(that)
- Definition Classes
- Ordered
-
def
compareTo(that: IDN): Int
- Implicit
- This member is added by an implicit conversion from IDN to Ordered[IDN] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(iDN: Ordered[IDN]).compareTo(that)
- Definition Classes
- Ordered → Comparable