Posted: Mon Aug 02, 2010 6:38 pm
Code: Select all
int MatchName(const char* pszText, const char* pszName)
{
assert (*pszText != '\0');
while (true)
{
if (*pszText == '\0')
{
//Ran out of typed text ... return the number of unmatched characters
//in pszName
return strlen(pszName);
}
else if (tolower(*pszText) != tolower(*pszName))
{
//No match
return c_badMatch;
}
pszText++;
pszName++;
}
}OnTab() is quite large, I won't bother to rip it up now. If a ticket gets opened, and Xynth doesn't fix it immediately
However, the powers that be should decide first if it's a wanted feature.