while (nsCRT::IsAsciiSpace(*port)) port++;  char c; while ((c = *port++) != '\0') {  if (c == '/') break; else if (!nsCRT::IsAsciiDigit(c)) return returnValue; }
ExtractPortFrom(const char* src){    PRInt32 returnValue = -1;    return (0 < PR_sscanf(src, "%d", &returnValue)) ? returnValue : -1;}