git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1806679 13f79535-47bb-0310-9956-ffa450edef68pull/6/head
} | } | ||||
private static boolean isAlpha(char ch) { | private static boolean isAlpha(char ch) { | ||||
return (ch >= 'A' && ch <= 'Z') || (ch >= 'A' && ch <= 'z'); | |||||
return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); | |||||
} | } | ||||
private static boolean isHexDigit(char ch) { | private static boolean isHexDigit(char ch) { |
actual = URISpecification.escapeURI("http://localhost/test test.pdf#page=6"); | actual = URISpecification.escapeURI("http://localhost/test test.pdf#page=6"); | ||||
assertEquals("http://localhost/test%20test.pdf#page=6", actual); | assertEquals("http://localhost/test%20test.pdf#page=6", actual); | ||||
actual = URISpecification.escapeURI("http://localhost/test^test.pdf"); | |||||
assertEquals("http://localhost/test%5Etest.pdf", actual); | |||||
} | } | ||||
} | } |