Home | Info | Community | Development | myReactOS | Contact Us
detect
[inline]
Definition at line 35 of file utf16le.cpp.
: error(none), encoding(enc), fill(0), index(0) { enc_types tmp_enc; inputfile.open(ifname.c_str(), ios::in); if (!inputfile) { error = iopen; return; } outputfile.open(ofname.c_str(), ios::out); if (!outputfile) { error = oopen; return; } tmp_enc = getBOM(); if (enc != detect) { if (enc != tmp_enc) cerr << "Warning: UTF-BOM doesn't match encoding setting, but given encoding forced" << endl; } else encoding = tmp_enc; }