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

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

There is a newer version: 4.1.8
Show newest version
/**
 * API and documentation by Adobe?.
 * Licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/
 */
package {

/**
 * Decodes an encoded URI into a string. Returns a string in which all characters previously encoded by the encodeURI function are restored to their unencoded representation.
 * 

The following table shows the set of escape sequences that are not decoded to characters by the decodeURI function. Use decodeURIComponent() to decode the escape sequences in this table.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Escape sequences not decodedCharacter equivalents
%23#
%24$
%26&
%2B+
%2C,
%2F/
%3A:
%3B;
%3D=
%3F?
%40@
* @param uri A string encoded with the encodeURI function. * * @return A string in which all characters previously escaped by the encodeURI function are restored to their unescaped representation. * * @see #decodeURIComponent() * @see #encodeURI() * @see #encodeURIComponent() * * @example *
 * package {
 *     import flash.display.Sprite;
 *
 *     public class DecodeURIExample extends Sprite {
 *         public function DecodeURIExample() {
 *             var uri:String = "http://www.example.com/application.jsp?user=";
 *             var encoded:String = encodeURI(uri);
 *             var decoded:String = decodeURI(encoded);
 *             trace(uri);        // http://www.example.com/application.jsp?user=
 *             trace(encoded);    // http://www.example.com/application.jsp?user=%3Cuser%20name='some%20user'%3E%3C/user%3E
 *             trace(decoded);    // http://www.example.com/application.jsp?user=
 *         }
 *     }
 * }
 * 
*/ [Native] public native function decodeURI(uri : String) : String; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy