Java Reference
In-Depth Information
escapeString()
—The
escapeString
Function
escapeString(
string
)
This function computes a new version of a
string
value in which special characters have been
replaced by a hexadecimal escape sequence. The characters to be escaped are
•
Control Characters
—US-ASCII-coded characters 00-1F and 7F
•
Space
—US-ASCII-coded character 20 hexadecimal
•
Reserved
—“;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”
•
Unwise
—“{” | “}” | “|” | “\” | “^” | “[“ | “]” | “`”
•
Delims
—“<” | “>” | “#” | “%” | <”>
•
Non-US-ASCII
—Characters with hex code 8F-FF
The given string is escaped as such; no URL parsing is performed. Non-US-ASCII characters
must be converted with the character codes used in the native character set.
getBase()
—The
getBase
Function
getBase()
Returns the absolute URL of the current WMLScript unit.
getFragment()
—The
getFragment
Function
getFragment(
url
)
Returns the fragment of the indicated
url
.
getHost()
—The
getHost
Function
getHost(
url
)
Returns the host of the indicated
url
.
getParameters()
—The
getParameters
Function
getParameters(
url
)
Returns the parameters used in the indicated
url
.
getPath()
—The
getPath
Function
getPath(
url
)
Returns the path used in the indicated
url
.