/* Returns the relative character position of the desired char or -1 if not found  */
int xmlUTF8Strloc(const xmlChar *utf, const xmlChar *utfchar)
/* Returns the relative character position of the desired char or -1 if not found  */
int xmlUTF8Strloc(const xmlChar *utf, const xmlChar *utfchar)
{
            if (xmlStrncmp(utf, utfchar, size)==0)
                return(i);
            utf++;
            if ( ch & 0x80 ) {
                if ( (ch & 0xc0) != 0xc0 )
                    return(-1);
                while ( (ch <<= 1) & 0x80 )
                    if ( (*utf++ & 0xc0) != 0x80 )
                        return(-1);
            }
        }
    return(-1);
}