Program: 58371
Project: 58371
Buggy source:
private int encodeGridMatrixBinary(int length,boolean reader){
  int sp, glyph=0;
  gmMode current_mode, next_mode, last_mode;
  int c1, c2;
  boolean done;
  int p=0, ppos;
  int punt=0;
  int number_pad_posn;
  int byte_count_posn=0, byte_count=0;
  int shift, i;
  int[] numbuf=new int[3];
  String temp_binary;
  binary="String_Node_Str";
  sp=0;
  current_mode=gmMode.NULL;
  number_pad_posn=0;
  if (debug) {
    System.out.printf("String_Node_Str");
  }
  if (reader) {
    binary+="String_Node_Str";
    if (debug) {
      System.out.printf("String_Node_Str");
    }
  }
  if ((eciMode != 3) && (eciMode != 29)) {
    binary+="String_Node_Str";
    if ((eciMode >= 0) && (eciMode <= 1023)) {
      binary+="String_Node_Str";
      for (i=0x200; i > 0; i=i >> 1) {
        if ((eciMode & i) != 0) {
          binary+="String_Node_Str";
        }
 else {
          binary+="String_Node_Str";
        }
      }
    }
    if ((eciMode >= 1024) && (eciMode <= 32767)) {
      binary+="String_Node_Str";
      for (i=0x4000; i > 0; i=i >> 1) {
        if ((eciMode & i) != 0) {
          binary+="String_Node_Str";
        }
 else {
          binary+="String_Node_Str";
        }
      }
    }
    if ((eciMode >= 32768) && (eciMode <= 811799)) {
      binary+="String_Node_Str";
      for (i=0x80000; i > 0; i=i >> 1) {
        if ((eciMode & i) != 0) {
          binary+="String_Node_Str";
        }
 else {
          binary+="String_Node_Str";
        }
      }
    }
    if (debug) {
      System.out.printf("String_Node_Str",eciMode);
    }
  }
  do {
    next_mode=seekForward(length,sp,current_mode);
    if (next_mode != current_mode) {
switch (current_mode) {
case NULL:
switch (next_mode) {
case GM_CHINESE:
          binary+="String_Node_Str";
        break;
case GM_NUMBER:
      binary+="String_Node_Str";
    break;
case GM_LOWER:
  binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_CHINESE:
switch (next_mode) {
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_NUMBER:
temp_binary=binary.substring(0,number_pad_posn);
switch (p) {
case 1:
temp_binary+="String_Node_Str";
break;
case 2:
temp_binary+="String_Node_Str";
break;
case 3:
temp_binary+="String_Node_Str";
break;
}
temp_binary+=binary.substring(number_pad_posn,binary.length());
binary=temp_binary;
switch (next_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_LOWER:
binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_LOWER:
case GM_UPPER:
switch (next_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_MIXED:
switch (next_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_BYTE:
addByteCount(byte_count_posn,byte_count);
byte_count=0;
switch (next_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
}
break;
}
if (debug) {
switch (next_mode) {
case GM_CHINESE:
System.out.printf("String_Node_Str");
break;
case GM_NUMBER:
System.out.printf("String_Node_Str");
break;
case GM_LOWER:
System.out.printf("String_Node_Str");
break;
case GM_UPPER:
System.out.printf("String_Node_Str");
break;
case GM_MIXED:
System.out.printf("String_Node_Str");
break;
case GM_BYTE:
System.out.printf("String_Node_Str");
break;
}
}
}
last_mode=current_mode;
current_mode=next_mode;
switch (current_mode) {
case GM_CHINESE:
done=false;
if (inputIntArray[sp] > 0xff) {
c1=(inputIntArray[sp] & 0xff00) >> 8;
c2=inputIntArray[sp] & 0xff;
if ((c1 >= 0xa0) && (c1 <= 0xa9)) {
glyph=(0x60 * (c1 - 0xa1)) + (c2 - 0xa0);
}
if ((c1 >= 0xb0) && (c1 <= 0xf7)) {
glyph=(0x60 * (c1 - 0xb0 + 9)) + (c2 - 0xa0);
}
done=true;
}
if (!(done)) {
if (sp != (length - 1)) {
if ((inputIntArray[sp] == 0x13) && (inputIntArray[sp + 1] == 0x10)) {
glyph=7776;
sp++;
}
done=true;
}
}
if (!(done)) {
if (sp != (length - 1)) {
if (((inputIntArray[sp] >= '0') && (inputIntArray[sp] <= '9')) && ((inputIntArray[sp + 1] >= '0') && (inputIntArray[sp + 1] <= '9'))) {
glyph=8033 + (10 * (inputIntArray[sp] - '0')) + (inputIntArray[sp + 1] - '0');
sp++;
}
}
}
if (!(done)) {
glyph=7777 + inputIntArray[sp];
}
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x1000; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
sp++;
break;
case GM_NUMBER:
if (last_mode != current_mode) {
number_pad_posn=binary.length();
}
p=0;
ppos=-1;
numbuf[0]='0';
numbuf[1]='0';
numbuf[2]='0';
do {
if ((inputIntArray[sp] >= '0') && (inputIntArray[sp] <= '9')) {
numbuf[p]=inputIntArray[sp];
sp++;
p++;
}
switch (inputIntArray[sp]) {
case ' ':
case '+':
case '-':
case '.':
case ',':
punt=inputIntArray[sp];
sp++;
ppos=p;
break;
}
if (sp < (length - 1)) {
if ((inputIntArray[sp] == 0x13) && (inputIntArray[sp + 1] == 0x10)) {
punt=inputIntArray[sp];
sp+=2;
ppos=p;
}
}
}
 while ((p < 3) && (sp < length));
if (ppos != -1) {
switch (punt) {
case ' ':
glyph=0;
break;
case '+':
glyph=3;
break;
case '-':
glyph=6;
break;
case '.':
glyph=9;
break;
case ',':
glyph=12;
break;
case 0x13:
glyph=15;
break;
}
glyph+=ppos;
glyph+=1000;
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x200; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
}
glyph=(100 * (numbuf[0] - '0')) + (10 * (numbuf[1] - '0')) + (numbuf[2] - '0');
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x200; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
break;
case GM_BYTE:
if (last_mode != current_mode) {
byte_count_posn=binary.length();
}
if (byte_count == 512) {
addByteCount(byte_count_posn,byte_count);
binary+="String_Node_Str";
byte_count_posn=binary.length();
byte_count=0;
}
glyph=inputIntArray[sp];
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x80; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
sp++;
byte_count++;
break;
case GM_MIXED:
shift=1;
if ((inputIntArray[sp] >= '0') && (inputIntArray[sp] <= '9')) {
shift=0;
}
if ((inputIntArray[sp] >= 'A') && (inputIntArray[sp] <= 'Z')) {
shift=0;
}
if ((inputIntArray[sp] >= 'a') && (inputIntArray[sp] <= 'z')) {
shift=0;
}
if (inputIntArray[sp] == ' ') {
shift=0;
}
if (shift == 0) {
glyph=positionOf((char)inputIntArray[sp],MIXED_ALPHANUM_SET);
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x20; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
}
 else {
binary+="String_Node_Str";
addShiftCharacter(inputIntArray[sp]);
}
sp++;
break;
case GM_UPPER:
shift=1;
if ((inputIntArray[sp] >= 'A') && (inputIntArray[sp] <= 'Z')) {
shift=0;
}
if (inputIntArray[sp] == ' ') {
shift=0;
}
if (shift == 0) {
glyph=positionOf((char)inputIntArray[sp],MIXED_ALPHANUM_SET) - 10;
if (glyph == 52) {
glyph=26;
}
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x10; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
}
 else {
binary+="String_Node_Str";
addShiftCharacter(inputIntArray[sp]);
}
sp++;
break;
case GM_LOWER:
shift=1;
if ((inputIntArray[sp] >= 'a') && (inputIntArray[sp] <= 'z')) {
shift=0;
}
if (inputIntArray[sp] == ' ') {
shift=0;
}
if (shift == 0) {
glyph=positionOf((char)inputIntArray[sp],MIXED_ALPHANUM_SET) - 36;
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x10; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
}
 else {
binary+="String_Node_Str";
addShiftCharacter(inputIntArray[sp]);
}
sp++;
break;
}
if (binary.length() > 9191) {
return 1;
}
}
 while (sp < length);
if (debug) {
System.out.printf("String_Node_Str");
}
if (current_mode == gmMode.GM_NUMBER) {
temp_binary=binary.substring(0,number_pad_posn);
switch (p) {
case 1:
temp_binary+="String_Node_Str";
break;
case 2:
temp_binary+="String_Node_Str";
break;
case 3:
temp_binary+="String_Node_Str";
break;
}
temp_binary+=binary.substring(number_pad_posn,binary.length());
binary=temp_binary;
}
if (current_mode == gmMode.GM_BYTE) {
addByteCount(byte_count_posn,byte_count);
}
switch (current_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
p=7 - (binary.length() % 7);
if (p == 7) {
p=0;
}
for (i=0; i < p; i++) {
binary+="String_Node_Str";
}
if (binary.length() > 9191) {
return 1;
}
return 0;
}

Fixed version (ground truth):
private int encodeGridMatrixBinary(int length,boolean reader){
  int sp, glyph=0;
  gmMode current_mode, next_mode, last_mode;
  int c1, c2;
  boolean done;
  int p=0, ppos;
  int punt=0;
  int number_pad_posn;
  int byte_count_posn=0, byte_count=0;
  int shift, i;
  int[] numbuf=new int[3];
  String temp_binary;
  binary="String_Node_Str";
  sp=0;
  current_mode=gmMode.NULL;
  number_pad_posn=0;
  if (debug) {
    System.out.printf("String_Node_Str");
  }
  if (reader) {
    binary+="String_Node_Str";
    if (debug) {
      System.out.printf("String_Node_Str");
    }
  }
  if ((eciMode != 3) && (eciMode != 29)) {
    binary+="String_Node_Str";
    if ((eciMode >= 0) && (eciMode <= 1023)) {
      binary+="String_Node_Str";
      for (i=0x200; i > 0; i=i >> 1) {
        if ((eciMode & i) != 0) {
          binary+="String_Node_Str";
        }
 else {
          binary+="String_Node_Str";
        }
      }
    }
    if ((eciMode >= 1024) && (eciMode <= 32767)) {
      binary+="String_Node_Str";
      for (i=0x4000; i > 0; i=i >> 1) {
        if ((eciMode & i) != 0) {
          binary+="String_Node_Str";
        }
 else {
          binary+="String_Node_Str";
        }
      }
    }
    if ((eciMode >= 32768) && (eciMode <= 811799)) {
      binary+="String_Node_Str";
      for (i=0x80000; i > 0; i=i >> 1) {
        if ((eciMode & i) != 0) {
          binary+="String_Node_Str";
        }
 else {
          binary+="String_Node_Str";
        }
      }
    }
    if (debug) {
      System.out.printf("String_Node_Str",eciMode);
    }
  }
  do {
    next_mode=seekForward(length,sp,current_mode);
    if (next_mode != current_mode) {
switch (current_mode) {
case NULL:
switch (next_mode) {
case GM_CHINESE:
          binary+="String_Node_Str";
        break;
case GM_NUMBER:
      binary+="String_Node_Str";
    break;
case GM_LOWER:
  binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_CHINESE:
switch (next_mode) {
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_NUMBER:
temp_binary=binary.substring(0,number_pad_posn);
switch (p) {
case 1:
temp_binary+="String_Node_Str";
break;
case 2:
temp_binary+="String_Node_Str";
break;
case 3:
temp_binary+="String_Node_Str";
break;
}
temp_binary+=binary.substring(number_pad_posn,binary.length());
binary=temp_binary;
switch (next_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_LOWER:
binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_LOWER:
case GM_UPPER:
switch (next_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_MIXED:
switch (next_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
break;
case GM_BYTE:
addByteCount(byte_count_posn,byte_count);
byte_count=0;
switch (next_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
binary+="String_Node_Str";
break;
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
}
break;
}
if (debug) {
switch (next_mode) {
case GM_CHINESE:
System.out.printf("String_Node_Str");
break;
case GM_NUMBER:
System.out.printf("String_Node_Str");
break;
case GM_LOWER:
System.out.printf("String_Node_Str");
break;
case GM_UPPER:
System.out.printf("String_Node_Str");
break;
case GM_MIXED:
System.out.printf("String_Node_Str");
break;
case GM_BYTE:
System.out.printf("String_Node_Str");
break;
}
}
}
last_mode=current_mode;
current_mode=next_mode;
switch (current_mode) {
case GM_CHINESE:
done=false;
if (inputIntArray[sp] > 0xff) {
c1=(inputIntArray[sp] & 0xff00) >> 8;
c2=inputIntArray[sp] & 0xff;
if ((c1 >= 0xa0) && (c1 <= 0xa9)) {
glyph=(0x60 * (c1 - 0xa1)) + (c2 - 0xa0);
}
if ((c1 >= 0xb0) && (c1 <= 0xf7)) {
glyph=(0x60 * (c1 - 0xb0 + 9)) + (c2 - 0xa0);
}
done=true;
}
if (!(done)) {
if (sp != (length - 1)) {
if ((inputIntArray[sp] == 0x13) && (inputIntArray[sp + 1] == 0x10)) {
glyph=7776;
sp++;
}
done=true;
}
}
if (!(done)) {
if (sp != (length - 1)) {
if (((inputIntArray[sp] >= '0') && (inputIntArray[sp] <= '9')) && ((inputIntArray[sp + 1] >= '0') && (inputIntArray[sp + 1] <= '9'))) {
glyph=8033 + (10 * (inputIntArray[sp] - '0')) + (inputIntArray[sp + 1] - '0');
sp++;
}
}
}
if (!(done)) {
glyph=7777 + inputIntArray[sp];
}
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x1000; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
sp++;
break;
case GM_NUMBER:
if (last_mode != current_mode) {
number_pad_posn=binary.length();
}
p=0;
ppos=-1;
numbuf[0]='0';
numbuf[1]='0';
numbuf[2]='0';
do {
if ((inputIntArray[sp] >= '0') && (inputIntArray[sp] <= '9')) {
numbuf[p]=inputIntArray[sp];
p++;
}
switch (inputIntArray[sp]) {
case ' ':
case '+':
case '-':
case '.':
case ',':
punt=inputIntArray[sp];
ppos=p;
break;
}
if (sp < (length - 1)) {
if ((inputIntArray[sp] == 0x13) && (inputIntArray[sp + 1] == 0x10)) {
punt=inputIntArray[sp];
sp++;
ppos=p;
}
}
sp++;
}
 while ((p < 3) && (sp < length));
if (ppos != -1) {
switch (punt) {
case ' ':
glyph=0;
break;
case '+':
glyph=3;
break;
case '-':
glyph=6;
break;
case '.':
glyph=9;
break;
case ',':
glyph=12;
break;
case 0x13:
glyph=15;
break;
}
glyph+=ppos;
glyph+=1000;
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x200; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
}
glyph=(100 * (numbuf[0] - '0')) + (10 * (numbuf[1] - '0')) + (numbuf[2] - '0');
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x200; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
break;
case GM_BYTE:
if (last_mode != current_mode) {
byte_count_posn=binary.length();
}
if (byte_count == 512) {
addByteCount(byte_count_posn,byte_count);
binary+="String_Node_Str";
byte_count_posn=binary.length();
byte_count=0;
}
glyph=inputIntArray[sp];
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x80; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
sp++;
byte_count++;
break;
case GM_MIXED:
shift=1;
if ((inputIntArray[sp] >= '0') && (inputIntArray[sp] <= '9')) {
shift=0;
}
if ((inputIntArray[sp] >= 'A') && (inputIntArray[sp] <= 'Z')) {
shift=0;
}
if ((inputIntArray[sp] >= 'a') && (inputIntArray[sp] <= 'z')) {
shift=0;
}
if (inputIntArray[sp] == ' ') {
shift=0;
}
if (shift == 0) {
glyph=positionOf((char)inputIntArray[sp],MIXED_ALPHANUM_SET);
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x20; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
}
 else {
binary+="String_Node_Str";
addShiftCharacter(inputIntArray[sp]);
}
sp++;
break;
case GM_UPPER:
shift=1;
if ((inputIntArray[sp] >= 'A') && (inputIntArray[sp] <= 'Z')) {
shift=0;
}
if (inputIntArray[sp] == ' ') {
shift=0;
}
if (shift == 0) {
glyph=positionOf((char)inputIntArray[sp],MIXED_ALPHANUM_SET) - 10;
if (glyph == 52) {
glyph=26;
}
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x10; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
}
 else {
binary+="String_Node_Str";
addShiftCharacter(inputIntArray[sp]);
}
sp++;
break;
case GM_LOWER:
shift=1;
if ((inputIntArray[sp] >= 'a') && (inputIntArray[sp] <= 'z')) {
shift=0;
}
if (inputIntArray[sp] == ' ') {
shift=0;
}
if (shift == 0) {
glyph=positionOf((char)inputIntArray[sp],MIXED_ALPHANUM_SET) - 36;
if (debug) {
System.out.printf("String_Node_Str",glyph);
}
for (i=0x10; i > 0; i=i >> 1) {
if ((glyph & i) != 0) {
binary+="String_Node_Str";
}
 else {
binary+="String_Node_Str";
}
}
}
 else {
binary+="String_Node_Str";
addShiftCharacter(inputIntArray[sp]);
}
sp++;
break;
}
if (binary.length() > 9191) {
return 1;
}
}
 while (sp < length);
if (debug) {
System.out.printf("String_Node_Str");
}
if (current_mode == gmMode.GM_NUMBER) {
temp_binary=binary.substring(0,number_pad_posn);
switch (p) {
case 1:
temp_binary+="String_Node_Str";
break;
case 2:
temp_binary+="String_Node_Str";
break;
case 3:
temp_binary+="String_Node_Str";
break;
}
temp_binary+=binary.substring(number_pad_posn,binary.length());
binary=temp_binary;
}
if (current_mode == gmMode.GM_BYTE) {
addByteCount(byte_count_posn,byte_count);
}
switch (current_mode) {
case GM_CHINESE:
binary+="String_Node_Str";
break;
case GM_NUMBER:
binary+="String_Node_Str";
break;
case GM_LOWER:
case GM_UPPER:
binary+="String_Node_Str";
break;
case GM_MIXED:
binary+="String_Node_Str";
break;
case GM_BYTE:
binary+="String_Node_Str";
break;
}
p=7 - (binary.length() % 7);
if (p == 7) {
p=0;
}
for (i=0; i < p; i++) {
binary+="String_Node_Str";
}
if (binary.length() > 9191) {
return 1;
}
return 0;
}