PRInt32
nsWindowWatcher::WinHasOption(
const char *aOptions, const char *aName,
PRInt32 aDefault, PRBool *aPresenceFlag)
{
if (!aOptions)
return 0;
char *comma, *equal;
PRInt32 found = 0;
...
while (PR_TRUE) {
comma = PL_strchr(aOptions, ',');
if (comma)
*comma = '\0';
equal = PL_strchr(aOptions, '=');
if (equal)
*equal = '\0';
if (nsCRT::strcasecmp(aOptions, aName) == 0) {
...
|