* xmlCtxtCheckString: * @ctxt: the debug context * @str: the string * * Do debugging on the string, currently it just checks the UTF-8 content */
| 213 | * Do debugging on the string, currently it just checks the UTF-8 content |
| 214 | */ |
| 215 | static void |
| 216 | xmlCtxtCheckString(xmlDebugCtxtPtr ctxt, const xmlChar * str) |
| 217 | { |
| 218 | if (str == NULL) return; |
| 219 | if (ctxt->check) { |
| 220 | if (!xmlCheckUTF8(str)) { |
| 221 | xmlDebugErr3(ctxt, XML_CHECK_NOT_UTF8, |
| 222 | "String is not UTF-8 %s", (const char *) str); |
| 223 | } |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | /** |
| 228 | * xmlCtxtCheckName: |
no test coverage detected