// Path: src/main/java/uk/org/okapibarcode/util/Arrays.java
// public static int positionOf(char value, char[] array) {
//     for (int i = 0; i < array.length; i++) {
//         if (value == array[i]) {
//             return i;
//         }
//     }
//     throw new OkapiException("Unable to find character '" + value + "' in character array.");
// }


import static uk.org.okapibarcode.util.Arrays.positionOf;
import java.io.UnsupportedEncodingException;
                for (i = 0; i < blockLength; i++) {
                    int lbyte = content.charAt(position + i);
                    binary.append(toBinary(lbyte, 0x80));
                    infoSpace(lbyte);
                }

                break;
            case ALPHANUM:
                /* Alphanumeric mode */
                /* Mode indicator */
                switch (version) {
                case 1:
                    binary.append("1");
                    break;
                case 2:
                    binary.append("01");
                    break;
                case 3:
                    binary.append("001");
                    break;
                }

                /* Character count indicator */
                binary.append(toBinary(blockLength, 2 << version)); /* version = 1..3 */

                info("ALPH (" + blockLength + ") ");

                /* Character representation */
                i = 0;
                while (i < blockLength) {
// Path: src/main/java/uk/org/okapibarcode/util/Arrays.java
// public static int positionOf(char value, char[] array) {
//     for (int i = 0; i < array.length; i++) {
//         if (value == array[i]) {
//             return i;
//         }
//     }
//     throw new OkapiException("Unable to find character '" + value + "' in character array.");
// }


// Path: src/main/java/uk/org/okapibarcode/backend/MicroQrCode.java
import static uk.org.okapibarcode.util.Arrays.positionOf;
import java.io.UnsupportedEncodingException;

                for (i = 0; i < blockLength; i++) {
                    int lbyte = content.charAt(position + i);
                    binary.append(toBinary(lbyte, 0x80));
                    infoSpace(lbyte);
                }

                break;
            case ALPHANUM:
                /* Alphanumeric mode */
                /* Mode indicator */
                switch (version) {
                case 1:
                    binary.append("1");
                    break;
                case 2:
                    binary.append("01");
                    break;
                case 3:
                    binary.append("001");
                    break;
                }

                /* Character count indicator */
                binary.append(toBinary(blockLength, 2 << version)); /* version = 1..3 */

                info("ALPH (" + blockLength + ") ");

                /* Character representation */
                i = 0;
                while (i < blockLength) {
                    first = positionOf(content.charAt(position + i), RHODIUM);