| 883 | */ |
| 884 | |
| 885 | int |
| 886 | xmlStringCurrentChar(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED, |
| 887 | const xmlChar *cur, int *len) { |
| 888 | int c; |
| 889 | |
| 890 | if ((cur == NULL) || (len == NULL)) |
| 891 | return(0); |
| 892 | |
| 893 | /* cur is zero-terminated, so we can lie about its length. */ |
| 894 | *len = 4; |
| 895 | c = xmlGetUTF8Char(cur, len); |
| 896 | |
| 897 | return((c < 0) ? 0 : c); |
| 898 | } |
| 899 | |
| 900 | /** |
| 901 | * xmlCopyCharMultiByte: |
no test coverage detected