object Punycode extends Object with Punycode
- Annotations
- @native() @JSImport( "punycode" , JSImport.Namespace )
- Alphabetic
- By Inheritance
- Punycode
- Punycode
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @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.
- Definition Classes
- Punycode
-
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.
- Definition Classes
- Punycode
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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
- Definition Classes
- 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
- Definition Classes
- Punycode
-
def
ucs2: UCS2
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.
- Definition Classes
- Punycode
-
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
- @throws( ... ) @native()