added xmlByteConsumed() interface updated the benchmark rebuilt the docs

* parserInternals.c xmlIO.c encoding.c include/libxml/parser.h
  include/libxml/xmlIO.h: added xmlByteConsumed() interface
* doc/*: updated the benchmark rebuilt the docs
* python/tests/Makefile.am python/tests/indexes.py: added a
  specific regression test for xmlByteConsumed()
* include/libxml/encoding.h rngparser.c tree.c: small cleanups
Daniel
diff --git a/rngparser.c b/rngparser.c
index bc72f6b..bfc9394 100644
--- a/rngparser.c
+++ b/rngparser.c
@@ -1438,13 +1438,13 @@
     xmlDocPtr ret = NULL;
 
     if (schemas == NULL) return(NULL);
-    if (len <= 5) len = xmlStrlen(schemas);
+    if (len <= 5) len = xmlStrlen((const unsigned char *) schemas);
     if (len <= 0) return(NULL);
 
     memset(&ctxt, 0, sizeof(ctxt));
-    ctxt.compact = schemas;
-    ctxt.cur = schemas;
-    ctxt.end = &schemas[len];
+    ctxt.compact = (const unsigned char *) schemas;
+    ctxt.cur = (const unsigned char *) schemas;
+    ctxt.end = (const unsigned char *) &schemas[len];
     ctxt.dict = xmlDictCreate();
     if (ctxt.dict == NULL)
         return(NULL);