char* intString = ioString.ToNewCString(); intString[colonPos] = 0; if (!isdigit(*intString))
nsAutoCString intString(ioString);  if (!isdigit(intString[0]))
static PRBool CheckOrdinalAndStrip(nsString& ioString, PRInt16& outOrdinal)//----------------------------------------------------------------------------------------{    PRInt32 colonPos = ioString.FindChar(':');    if (colonPos <= 0)        return PR_FALSE;    char* intString = ioString.ToNewCString();    intString[colonPos] = 0;    if (!isdigit(*intString))    {        outOrdinal = 0;        return PR_TRUE;    }    ioString.Cut(0, colonPos + 1);    PR_sscanf(intString, "%hd", &outOrdinal);    delete [] intString;    return PR_TRUE;}