stringLen ++;  if (stringLen == stringCap) { stringCap += stringCap; lineBuffer.SetCapacity(stringCap); }
si_ReadLine  (nsInputFileStream strm, nsAutoString& lineBuffer) {  lineBuffer.SetLength(0);  /* read the line */  PRUnichar c;  for (;;) {    c = Wallet_UTF8Get(strm);    /* note that eof is not set until we read past the end of the file */    if (strm.eof()) {      return -1;    }    if (c == '\n') {      break;    }    if (c != '\r') {      lineBuffer += c;    }  }  return 0;}