trait Punycode extends Object
The version of the punycode module bundled in Node.js is being deprecated. In a future major version of Node.js this module will be removed. Users currently depending on the punycode module should switch to using the userland-provided Punycode.js module instead.
- Annotations
- @JSType() @native()
- See also
https://nodejs.org/dist/latest-v7.x/docs/api/punycode.html
- Alphabetic
- By Inheritance
- Punycode
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decode(string: String): String
The punycode.decode() method converts a Punycode string of ASCII-only characters to the equivalent string of Unicode codepoints.
The punycode.decode() method converts a Punycode string of ASCII-only characters to the equivalent string of Unicode codepoints.
- string
a Punycode string of ASCII-only characters
- returns
the equivalent string of Unicode codepoints.
- def encode(codePoints: String): String
The punycode.encode() method converts a string of Unicode codepoints to a Punycode string of ASCII-only characters.
The punycode.encode() method converts a string of Unicode codepoints to a Punycode string of ASCII-only characters.
- codePoints
a string of Unicode codepoints
- returns
a Punycode string of ASCII-only characters.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toASCII(domain: String): String
The punycode.toASCII() method converts a Unicode string representing an Internationalized Domain Name to Punycode.
The punycode.toASCII() method converts a Unicode string representing an Internationalized Domain Name to Punycode. Only the non-ASCII parts of the domain name will be converted. Calling punycode.toASCII() on a string that already only contains ASCII characters will have no effect.
- domain
the domain name
- returns
a Unicode string representing an Internationalized Domain Name as Punycode
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toUnicode(domain: String): String
The punycode.toUnicode() method converts a string representing a domain name containing Punycode encoded characters into Unicode.
The punycode.toUnicode() method converts a string representing a domain name containing Punycode encoded characters into Unicode. Only the Punycode encoded parts of the domain name are be converted.
- domain
a string representing a domain name containing Punycode encoded characters
- returns
the Unicode string
- def ucs2: UCS2
The UCS2 object
The UCS2 object
- returns
The UCS2 object
- def valueOf(): Any
- Definition Classes
- Object
- def version: String
Returns a string identifying the current Punycode.js version number.
Returns a string identifying the current Punycode.js version number.
- returns
a string identifying the current Punycode.js version number.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()