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

jangaroo-runtime.2.0.19.source-code.escape.as Maven / Gradle / Ivy

There is a newer version: 4.1.8
Show newest version
package {

/**
 * Converts the parameter to a string and encodes it in a URL-encoded format, where most nonalphanumeric characters are replaced with % hexadecimal sequences. When used in a URL-encoded string, the percentage symbol (%) is used to introduce escape characters, and is not equivalent to the modulo operator (%).
 * 

The following table shows all characters that are not converted to escape sequences by the escape() function.

* * * * * * * * * *
Characters not encoded
0 1 2 3 4 5 6 7 8 9
a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
@ - _ . * + /
*

Note: Use the encodeURIComponent() function, instead of the escape() function, to treat special separator characters (@ + /) as regular text to encode.

* @param str The expression to convert into a string and encode in a URL-encoded format. * * @return A URL-encoded string. * * @see #unescape() * @see #encodeURIComponent() * */ [Native] public native function escape(str:String):String; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy