/* Equivalent to ARDI's call: ROMlib_RelString(s1+1, s2+1, true, false, (s1<<16) | s2)  */
int hfs_strcmp(const unsigned char *s1, unsigned int len1, const unsigned char *s2, unsigned int len2)
/* Equivalent to ARDI's call: ROMlib_RelString(s1+1, s2+1, true, false, (s1<<16) | s2)  */
int hfs_strcmp(const unsigned char *s1, unsigned int len1, const unsigned char *s2, unsigned int len2)
{
	int len, tmp;
	len = (len1 > len2) ? len2 : len1;
	while (len--) {
		tmp = (int)caseorder[*(s1++)] - (int)caseorder[*(s2++)];
		if (tmp)
			return tmp;
	}
	return len1 - len2;
}