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