| 1848 | } |
| 1849 | |
| 1850 | const XML_LChar * XMLCALL |
| 1851 | XML_ErrorString(enum XML_Error code) |
| 1852 | { |
| 1853 | static const XML_LChar* const message[] = { |
| 1854 | 0, |
| 1855 | XML_L("out of memory"), |
| 1856 | XML_L("syntax error"), |
| 1857 | XML_L("no element found"), |
| 1858 | XML_L("not well-formed (invalid token)"), |
| 1859 | XML_L("unclosed token"), |
| 1860 | XML_L("partial character"), |
| 1861 | XML_L("mismatched tag"), |
| 1862 | XML_L("duplicate attribute"), |
| 1863 | XML_L("junk after document element"), |
| 1864 | XML_L("illegal parameter entity reference"), |
| 1865 | XML_L("undefined entity"), |
| 1866 | XML_L("recursive entity reference"), |
| 1867 | XML_L("asynchronous entity"), |
| 1868 | XML_L("reference to invalid character number"), |
| 1869 | XML_L("reference to binary entity"), |
| 1870 | XML_L("reference to external entity in attribute"), |
| 1871 | XML_L("XML or text declaration not at start of entity"), |
| 1872 | XML_L("unknown encoding"), |
| 1873 | XML_L("encoding specified in XML declaration is incorrect"), |
| 1874 | XML_L("unclosed CDATA section"), |
| 1875 | XML_L("error in processing external entity reference"), |
| 1876 | XML_L("document is not standalone"), |
| 1877 | XML_L("unexpected parser state - please send a bug report"), |
| 1878 | XML_L("entity declared in parameter entity"), |
| 1879 | XML_L("requested feature requires XML_DTD support in Expat"), |
| 1880 | XML_L("cannot change setting once parsing has begun"), |
| 1881 | XML_L("unbound prefix"), |
| 1882 | XML_L("must not undeclare prefix"), |
| 1883 | XML_L("incomplete markup in parameter entity"), |
| 1884 | XML_L("XML declaration not well-formed"), |
| 1885 | XML_L("text declaration not well-formed"), |
| 1886 | XML_L("illegal character(s) in public id"), |
| 1887 | XML_L("parser suspended"), |
| 1888 | XML_L("parser not suspended"), |
| 1889 | XML_L("parsing aborted"), |
| 1890 | XML_L("parsing finished"), |
| 1891 | XML_L("cannot suspend in external parameter entity"), |
| 1892 | XML_L("reserved prefix (xml) must not be undeclared or bound to another namespace name"), |
| 1893 | XML_L("reserved prefix (xmlns) must not be declared or undeclared"), |
| 1894 | XML_L("prefix must not be bound to one of the reserved namespace names") |
| 1895 | }; |
| 1896 | if (code > 0 && code < sizeof(message)/sizeof(message[0])) |
| 1897 | return message[code]; |
| 1898 | return NULL; |
| 1899 | } |
| 1900 | |
| 1901 | const XML_LChar * XMLCALL |
| 1902 | XML_ExpatVersion(void) { |
no outgoing calls
no test coverage detected