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

Method x2c

java/org/apache/tomcat/util/buf/UDecoder.java:367–372  ·  view source on GitHub ↗
(byte b1, byte b2)

Source from the content-addressed store, hash-verified

365
366
367 private static int x2c(byte b1, byte b2) {
368 int digit = (b1 >= 'A') ? ((b1 & 0xDF) - 'A') + 10 : (b1 - '0');
369 digit *= 16;
370 digit += (b2 >= 'A') ? ((b2 & 0xDF) - 'A') + 10 : (b2 - '0');
371 return digit;
372 }
373
374
375 private static int x2c(char b1, char b2) {

Callers 2

convertMethod · 0.95
URLDecodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected