TEIRTF::TEIRTF() { setTokenStart("<"); setTokenEnd(">"); setEscapeStart("&"); setEscapeEnd(";"); setEscapeStringCaseSensitive(true); addEscapeStringSubstitute("amp", "&"); addEscapeStringSubstitute("apos", "'"); addEscapeStringSubstitute("lt", "<"); addEscapeStringSubstitute("gt", ">"); addEscapeStringSubstitute("quot", "\""); setTokenCaseSensitive(true); }
SWORD_NAMESPACE_START TEIPlain::TEIPlain() { setTokenStart("<"); setTokenEnd(">"); setEscapeStart("&"); setEscapeEnd(";"); setEscapeStringCaseSensitive(true); addEscapeStringSubstitute("amp", "&"); addEscapeStringSubstitute("apos", "'"); addEscapeStringSubstitute("lt", "<"); addEscapeStringSubstitute("gt", ">"); addEscapeStringSubstitute("quot", "\""); setTokenCaseSensitive(true); }
cpu_banks_t mca_allbanks; /* Handle unconfigured int18 (should never happen) */ static void unexpected_machine_check(struct cpu_user_regs *regs, long error_code) { printk(XENLOG_ERR "CPU#%d: Unexpected int18 (Machine Check).\n", smp_processor_id()); } static x86_mce_vector_t _machine_check_vector = unexpected_machine_check; void x86_mce_vector_register(x86_mce_vector_t hdlr) { _machine_check_vector = hdlr; wmb(); } /* Call the installed machine check handler for this CPU setup. */ void machine_check_vector(struct cpu_user_regs *regs, long error_code) {
SWORD_NAMESPACE_START ThMLRTF::ThMLRTF() { setTokenStart("<"); setTokenEnd(">"); setEscapeStart("&"); setEscapeEnd(";"); setEscapeStringCaseSensitive(true); addEscapeStringSubstitute("nbsp", "\302\240"); addEscapeStringSubstitute("apos", "'"); addEscapeStringSubstitute("quot", "\""); addEscapeStringSubstitute("amp", "&"); addEscapeStringSubstitute("lt", "<"); addEscapeStringSubstitute("gt", ">"); addEscapeStringSubstitute("brvbar", "І"); addEscapeStringSubstitute("sect", "Ї"); addEscapeStringSubstitute("copy", "Љ"); addEscapeStringSubstitute("laquo", "Ћ"); addEscapeStringSubstitute("reg", "Ў"); addEscapeStringSubstitute("acute", "Д"); addEscapeStringSubstitute("para", "Ж"); addEscapeStringSubstitute("raquo", "Л"); addEscapeStringSubstitute("Aacute", "С"); addEscapeStringSubstitute("Agrave", "Р"); addEscapeStringSubstitute("Acirc", "Т"); addEscapeStringSubstitute("Auml", "Ф"); addEscapeStringSubstitute("Atilde", "У"); addEscapeStringSubstitute("Aring", "Х"); addEscapeStringSubstitute("aacute", "с"); addEscapeStringSubstitute("agrave", "р"); addEscapeStringSubstitute("acirc", "т"); addEscapeStringSubstitute("auml", "ф"); addEscapeStringSubstitute("atilde", "у"); addEscapeStringSubstitute("aring", "х"); addEscapeStringSubstitute("Eacute", "Щ"); addEscapeStringSubstitute("Egrave", "Ш"); addEscapeStringSubstitute("Ecirc", "Ъ"); addEscapeStringSubstitute("Euml", "Ы"); addEscapeStringSubstitute("eacute", "щ"); addEscapeStringSubstitute("egrave", "ш"); addEscapeStringSubstitute("ecirc", "ъ"); addEscapeStringSubstitute("euml", "ы"); addEscapeStringSubstitute("Iacute", "Э"); addEscapeStringSubstitute("Igrave", "Ь"); addEscapeStringSubstitute("Icirc", "Ю"); addEscapeStringSubstitute("Iuml", "Я"); addEscapeStringSubstitute("iacute", "э"); addEscapeStringSubstitute("igrave", "ь"); addEscapeStringSubstitute("icirc", "ю"); addEscapeStringSubstitute("iuml", "я"); addEscapeStringSubstitute("Oacute", "г"); addEscapeStringSubstitute("Ograve", "в"); addEscapeStringSubstitute("Ocirc", "д"); addEscapeStringSubstitute("Ouml", "ж"); addEscapeStringSubstitute("Otilde", "е"); addEscapeStringSubstitute("oacute", "ѓ"); addEscapeStringSubstitute("ograve", "ђ"); addEscapeStringSubstitute("ocirc", "є"); addEscapeStringSubstitute("ouml", "і"); addEscapeStringSubstitute("otilde", "ѕ"); addEscapeStringSubstitute("Uacute", "к"); addEscapeStringSubstitute("Ugrave", "й"); addEscapeStringSubstitute("Ucirc", "л"); addEscapeStringSubstitute("Uuml", "м"); addEscapeStringSubstitute("uacute", "њ"); addEscapeStringSubstitute("ugrave", "љ"); addEscapeStringSubstitute("ucirc", "ћ"); addEscapeStringSubstitute("uuml", "ќ"); addEscapeStringSubstitute("Yacute", "н"); addEscapeStringSubstitute("yacute", "§"); addEscapeStringSubstitute("yuml", "џ"); addEscapeStringSubstitute("deg", "А"); addEscapeStringSubstitute("plusmn", "Б"); addEscapeStringSubstitute("sup2", "В"); addEscapeStringSubstitute("sup3", "Г"); addEscapeStringSubstitute("sup1", "Й"); addEscapeStringSubstitute("nbsp", "К"); addEscapeStringSubstitute("pound", "Ѓ"); addEscapeStringSubstitute("cent", "Ђ"); addEscapeStringSubstitute("frac14", "М"); addEscapeStringSubstitute("frac12", "Н"); addEscapeStringSubstitute("frac34", "О"); addEscapeStringSubstitute("iquest", "П"); addEscapeStringSubstitute("iexcl", "Ё"); addEscapeStringSubstitute("ETH", "а"); addEscapeStringSubstitute("eth", "№"); addEscapeStringSubstitute("THORN", "о"); addEscapeStringSubstitute("thorn", "ў"); addEscapeStringSubstitute("AElig", "Ц"); addEscapeStringSubstitute("aelig", "ц"); addEscapeStringSubstitute("Oslash", "и"); addEscapeStringSubstitute("curren", "Є"); addEscapeStringSubstitute("Ccedil", "Ч"); addEscapeStringSubstitute("ccedil", "ч"); addEscapeStringSubstitute("szlig", "п"); addEscapeStringSubstitute("Ntilde", "б"); addEscapeStringSubstitute("ntilde", "ё"); addEscapeStringSubstitute("yen", "Ѕ"); addEscapeStringSubstitute("not", "Ќ"); addEscapeStringSubstitute("ordf", "Њ"); addEscapeStringSubstitute("uml", "Ј"); addEscapeStringSubstitute("shy", ""); addEscapeStringSubstitute("macr", "Џ"); addEscapeStringSubstitute("micro", "Е"); addEscapeStringSubstitute("middot", "З"); addEscapeStringSubstitute("cedil", "И"); addEscapeStringSubstitute("ordm", "К"); addEscapeStringSubstitute("times", "з"); addEscapeStringSubstitute("divide", "ї"); addEscapeStringSubstitute("oslash", "ј"); setTokenCaseSensitive(true); addTokenSubstitute("br", "\\line "); addTokenSubstitute("br /", "\\line "); addTokenSubstitute("i", "{\\i1 "); addTokenSubstitute("/i", "}"); addTokenSubstitute("b", "{\\b1 "); addTokenSubstitute("/b", "}"); addTokenSubstitute("p", "{\\fi200\\par}"); addTokenSubstitute("p /", "\\pard\\par\\par "); //we need uppercase forms for the moment to support a few early ThML modules that aren't XHTML compliant addTokenSubstitute("BR", "\\line "); addTokenSubstitute("I", "{\\i1 "); addTokenSubstitute("/I", "}"); addTokenSubstitute("B", "{\\b1 "); addTokenSubstitute("/B", "}"); addTokenSubstitute("P", "\\par "); addTokenSubstitute("scripture", "{\\i1 "); addTokenSubstitute("/scripture", "}"); addTokenSubstitute("center", "\\qc "); addTokenSubstitute("/center", "\\pard "); }