MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlCtxtCheckString

Function xmlCtxtCheckString

ThirdParty/libxml2/vtklibxml2/debugXML.c:215–225  ·  view source on GitHub ↗

* xmlCtxtCheckString: * @ctxt: the debug context * @str: the string * * Do debugging on the string, currently it just checks the UTF-8 content */

Source from the content-addressed store, hash-verified

213 * Do debugging on the string, currently it just checks the UTF-8 content
214 */
215static void
216xmlCtxtCheckString(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:

Callers 1

xmlCtxtGenericNodeCheckFunction · 0.85

Calls 1

xmlCheckUTF8Function · 0.85

Tested by

no test coverage detected