12.06.2015 Views

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

§83 ANNOYANCE-FILTER UTF-8 UNICODE DECODER 71<br />

83. UTF-8 Unicode decoder.<br />

<strong>The</strong> UTF-8 encoding of Unicode is an ASCII-transparent encoding into a stream of 8 bit bytes. <strong>The</strong><br />

length of encoded character is variable and forward-parseable.<br />

〈 Class definitions 10 〉 +≡<br />

class UTF 8 Unicode MBCSdecoder : public Unicode MBCSdecoder {<br />

public:<br />

virtual string name (void)<br />

{<br />

return "UTF_8_Unicode";<br />

}<br />

virtual int getNextDecodedChar (void); /∗ Get next decoded byte ∗/<br />

};

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!