Wallet_UTF8Get(nsInputFileStream strm) {
Wallet_UTF8Get(nsInputFileStream& strm) {
Wallet_UTF8Get(nsInputFileStream strm) {  PRUnichar c = (strm.get() & 0xFF);  if ((c & 0x80) == 0x00) {    return c;  } else if ((c & 0xE0) == 0xC0) {    return (((c & 0x1F)<<6) + (strm.get() & 0x3F));  } else if ((c & 0xF0) == 0xE0) {    return (((c & 0x0F)<<12) + ((strm.get() & 0x3F)<<6) + (strm.get() & 0x3F));  } else {    return 0; /* this is an error, input was not utf8 */  }}