The following document contains the results of PMD's CPD 4.3.
File | Line |
---|---|
org\apache\commons\codec\language\Caverphone1.java | 62 |
org\apache\commons\codec\language\Caverphone2.java | 65 |
txt = txt.replaceAll("^enough", "enou2f"); txt = txt.replaceAll("^gn", "2n"); // End txt = txt.replaceAll("mb$", "m2"); // 4. Handle replacements txt = txt.replaceAll("cq", "2q"); txt = txt.replaceAll("ci", "si"); txt = txt.replaceAll("ce", "se"); txt = txt.replaceAll("cy", "sy"); txt = txt.replaceAll("tch", "2ch"); txt = txt.replaceAll("c", "k"); txt = txt.replaceAll("q", "k"); txt = txt.replaceAll("x", "k"); txt = txt.replaceAll("v", "f"); txt = txt.replaceAll("dg", "2g"); txt = txt.replaceAll("tio", "sio"); txt = txt.replaceAll("tia", "sia"); txt = txt.replaceAll("d", "t"); txt = txt.replaceAll("ph", "fh"); txt = txt.replaceAll("b", "p"); txt = txt.replaceAll("sh", "s2"); txt = txt.replaceAll("z", "s"); txt = txt.replaceAll("^[aeiou]", "A"); // 3 is a temporary placeholder marking a vowel txt = txt.replaceAll("[aeiou]", "3"); txt = txt.replaceAll("3gh3", "3kh3"); |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 67 |
org\apache\commons\codec\binary\Base32.java | 92 |
private static final byte[] DECODE_TABLE = { // 0 1 2 3 4 5 6 7 8 9 A B C D E F -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 60 |
org\apache\commons\codec\binary\Base64.java | 99 |
private static final byte[] CHUNK_SEPARATOR = {'\r', '\n'}; /** * This array is a lookup table that translates Unicode characters drawn from the "Base32 Alphabet" (as specified * in Table 3 of RFC 2045) into their 5-bit positive integer equivalents. Characters that are not in the Base32 * alphabet but fall within the bounds of the array are translated to -1. */ private static final byte[] DECODE_TABLE = { // 0 1 2 3 4 5 6 7 8 9 A B C D E F -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 92 |
org\apache\commons\codec\binary\Base64.java | 112 |
private static final byte[] HEX_DECODE_TABLE = { // 0 1 2 3 4 5 6 7 8 9 A B C D E F -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base64.java | 80 |
org\apache\commons\codec\binary\Base64.java | 93 |
private static final byte[] STANDARD_ENCODE_TABLE = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 433 |
org\apache\commons\codec\binary\Base64.java | 362 |
break; default: throw new IllegalStateException("Impossible modulus "+context.modulus); } context.currentLinePos += context.pos - savedPos; // keep track of current line position // if currentPos == 0 we are at the start of a line, so don't add CRLF if (lineLength > 0 && context.currentLinePos > 0){ // add chunk separator if required System.arraycopy(lineSeparator, 0, buffer, context.pos, lineSeparator.length); context.pos += lineSeparator.length; } } else { for (int i = 0; i < inAvail; i++) { final byte[] buffer = ensureBufferSize(encodeSize, context); context.modulus = (context.modulus+1) % BYTES_PER_UNENCODED_BLOCK; int b = in[inPos++]; if (b < 0) { b += 256; } context.lbitWorkArea = (context.lbitWorkArea << 8) + b; // BITS_PER_BYTE |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\language\Caverphone1.java | 88 |
org\apache\commons\codec\language\Caverphone2.java | 95 |
txt = txt.replaceAll("[aeiou]", "3"); txt = txt.replaceAll("3gh3", "3kh3"); txt = txt.replaceAll("gh", "22"); txt = txt.replaceAll("g", "k"); txt = txt.replaceAll("s+", "S"); txt = txt.replaceAll("t+", "T"); txt = txt.replaceAll("p+", "P"); txt = txt.replaceAll("k+", "K"); txt = txt.replaceAll("f+", "F"); txt = txt.replaceAll("m+", "M"); txt = txt.replaceAll("n+", "N"); txt = txt.replaceAll("w3", "W3"); txt = txt.replaceAll("wy", "Wy"); // 1.0 only |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 69 |
org\apache\commons\codec\binary\Base32.java | 94 |
org\apache\commons\codec\binary\Base64.java | 113 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 10-1f -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 63, // 20-2f |
File | Line |
---|---|
org\apache\commons\codec\binary\Base32.java | 360 |
org\apache\commons\codec\binary\Base64.java | 303 |
} /** * <p> * Encodes all of the provided data, starting at inPos, for inAvail bytes. Must be called at least twice: once with * the data to encode, and once with inAvail set to "-1" to alert encoder that EOF has been reached, so flush last * remaining bytes (if not multiple of 5). * </p> * * @param in * byte[] array of binary data to Base32 encode. * @param inPos * Position to start reading data from. * @param inAvail * Amount of bytes available from input for encoding. * @param context the context to be used */ @Override void encode(byte[] in, int inPos, int inAvail, Context context) { // package protected for access from I/O streams if (context.eof) { return; } // inAvail < 0 is how we're informed of EOF in the underlying data we're // encoding. if (inAvail < 0) { context.eof = true; if (0 == context.modulus && lineLength == 0) { return; // no leftovers to process and not using chunking } final byte[] buffer = ensureBufferSize(encodeSize, context); final int savedPos = context.pos; switch (context.modulus) { // % 5 case 0 : break; case 1 : // Only 1 octet; take top 5 bits then remainder buffer[context.pos++] = encodeTable[(int)(context.lbitWorkArea >> 3) & MASK_5BITS]; // 8-1*5 = 3 |