Lines Matching refs:bci
245 public int encodeBCI(int bci) {
246 if (bci <= 0 || bci > getLength()) return bci;
252 i = Arrays.binarySearch(map, (byte)(bci + Byte.MIN_VALUE));
256 i = Arrays.binarySearch(map, (short)(bci + Short.MIN_VALUE));
260 i = Arrays.binarySearch(map, bci);
266 return (i >= 0) ? i : len + bci - (-i-1);
274 // Otherwise, let map[i] be the smallest map[*] larger than bci.
276 // bciCode == len + bci - i
278 // bci-i == bciCode-len
285 // bci == bciCode-len + i
366 int bci = i;
367 int enc = Math.min(-999, bci-1);
370 enc = encodeBCI(bci);
375 if (dec == bci) {
376 //System.out.println("BCI="+bci+(enc<len?"":" ")+" enc="+enc);
382 sb.append("bci "+(q==0?"map":"del")+"["+len+"] = {");
392 System.out.println("*** BCI="+bci+" enc="+enc+" dec="+dec);