MCPcopy Index your code
hub / github.com/apache/tomcat / convert

Method convert

java/org/apache/tomcat/util/buf/UDecoder.java:79–85  ·  view source on GitHub ↗

URLDecode, will modify the source. Assumes source bytes are encoded using a superset of US-ASCII as per RFC 7230. "%5c" will be decoded. "%2f" will be rejected unless the input is a query string. @param mb The URL encoded bytes @param query true if this is a query string. For a query str

(ByteChunk mb, boolean query)

Source from the content-addressed store, hash-verified

77 * @throws IOException Invalid %xx URL encoding
78 */
79 public void convert(ByteChunk mb, boolean query) throws IOException {
80 if (query) {
81 convert(mb, true, EncodedSolidusHandling.DECODE, EncodedSolidusHandling.DECODE);
82 } else {
83 convert(mb, false, EncodedSolidusHandling.REJECT, EncodedSolidusHandling.DECODE);
84 }
85 }
86
87
88 /**

Callers 5

doTestSolidusMethod · 0.95
doTestReverseSolidusMethod · 0.95
urlDecodeMethod · 0.45
getKeepAliveTimeMethod · 0.45
encodeURLMethod · 0.45

Calls 8

findByteMethod · 0.95
isHexDigitMethod · 0.95
x2cMethod · 0.95
setEndMethod · 0.80
equalsMethod · 0.65
getStartMethod · 0.45
getBytesMethod · 0.45
getEndMethod · 0.45

Tested by 2

doTestSolidusMethod · 0.76
doTestReverseSolidusMethod · 0.76