12.06.2015 Views

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

§91 ANNOYANCE-FILTER GB2312 INTERPRETER CLASS 77<br />

91. GB2312 Interpreter class.<br />

This interpreter class parses GB2312 ideographs into tokens which downstream parsers can comprehend.<br />

〈 Class definitions 10 〉 +≡<br />

class GB2312 MBCSinterpreter : public MBCSinterpreter {<br />

public:<br />

GB2312 MBCSinterpreter( )<br />

{<br />

setPrefixSuffix ("␣", "␣");<br />

}<br />

virtual string name (void)<br />

{<br />

return "GB2312";<br />

}<br />

};<br />

92. Big5 Interpreter class.<br />

This interpreter class parses Big5 ideographs into tokens which downstream parsers can comprehend.<br />

〈 Class definitions 10 〉 +≡<br />

class Big5 MBCSinterpreter : public MBCSinterpreter {<br />

public:<br />

Big5 MBCSinterpreter( )<br />

{<br />

setPrefixSuffix ("␣", "␣");<br />

}<br />

virtual string name (void)<br />

{<br />

return "Big5";<br />

}<br />

};<br />

93. Shift-JIS Interpreter class.<br />

This interpreter class parses Shift-JIS ideographs into tokens which downstream parsers can comprehend.<br />

〈 Class definitions 10 〉 +≡<br />

class Shift JIS MBCSinterpreter : public MBCSinterpreter {<br />

public:<br />

Shift JIS MBCSinterpreter( )<br />

{<br />

setPrefixSuffix ("␣", "␣");<br />

}<br />

virtual string name (void)<br />

{<br />

return "Shift_JIS";<br />

}<br />

string getNextDecodedChar (void);<br />

};

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

Saved successfully!

Ooh no, something went wrong!