net.sf.saxon.functions
public class EscapeURI extends SystemFunction
| Field Summary | |
|---|---|
| static boolean[] | allowedASCII |
| static int | ENCODE_FOR_URI |
| static int | HTML_URI |
| static int | IRI_TO_URI |
| Method Summary | |
|---|---|
| static void | checkPercentEncoding(String uri)
Check that any percent-encoding within a URI is well-formed. |
| static CharSequence | escape(CharSequence s, String allowedPunctuation)
Escape special characters in a URI. |
| Item | evaluateItem(XPathContext c)
Evaluate the function |
| static CharSequence | iriToUri(CharSequence s)
Escape special characters in a URI. |
Parameters: uri the string to be checked for validity
Throws: XPathException if the string is not validly percent-encoded
Parameters: s the URI to be escaped allowedPunctuation ASCII characters other than letters and digits that should NOT be %HH-encoded
Returns: the %HH-encoded string
Parameters: s the URI to be escaped
Returns: the %HH-encoded string