/* Returns the storage size of the first 'len' characters of ARRAY  */
int xmlUTF8Strsize(const xmlChar *utf, int len)
/* Returns the storage size of the first 'len' characters of ARRAY  */
int xmlUTF8Strsize(const xmlChar *utf, int len)
{
        if ( !*ptr )
            break;
        if ( (ch = *ptr++) & 0x80)
            while ((ch<<=1) & 0x80 ) {
                ptr++;
		if (*ptr == 0) break;
	    }
    }
    return (ptr - utf);
}