Lines Matching defs:in
6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
30 public static byte[] decode(String in) {
32 int limit = in.length();
34 char c = in.charAt(limit - 1);
47 char c = in.charAt(pos);
118 public static String encode(byte[] in) {
119 int length = (in.length + 2) * 4 / 3;
121 int index = 0, end = in.length - in.length % 3;
123 out[index++] = MAP[(in[i] & 0xff) >> 2];
124 out[index++] = MAP[((in[i] & 0x03) << 4) | ((in[i + 1] & 0xff) >> 4)];
125 out[index++] = MAP[((in[i + 1] & 0x0f) << 2) | ((in[i + 2] & 0xff) >> 6)];
126 out[index++] = MAP[(in[i + 2] & 0x3f)];
128 switch (in.length % 3) {
130 out[index++] = MAP[(in[end] & 0xff) >> 2];
131 out[index++] = MAP[(in[end] & 0x03) << 4];
136 out[index++] = MAP[(in[end] & 0xff) >> 2];
137 out[index++] = MAP[((in[end] & 0x03) << 4) | ((in[end + 1] & 0xff) >> 4)];
138 out[index++] = MAP[((in[end + 1] & 0x0f) << 2)];