Lines Matching refs:ch
343 char ch; in ParseFtpPortCommand() local
361 ch = sptr[i]; in ParseFtpPortCommand()
364 if (isspace(ch)) in ParseFtpPortCommand()
374 if (isdigit(ch)) { in ParseFtpPortCommand()
375 octet = ch - '0'; in ParseFtpPortCommand()
384 if (isdigit(ch)) in ParseFtpPortCommand()
385 octet = 10 * octet + ch - '0'; in ParseFtpPortCommand()
386 else if (ch == ',') { in ParseFtpPortCommand()
394 if (isdigit(ch)) in ParseFtpPortCommand()
395 octet = 10 * octet + ch - '0'; in ParseFtpPortCommand()
396 else if (ch == ',' || state == 12) { in ParseFtpPortCommand()
416 char ch, delim; in ParseFtpEprtCommand() local
435 ch = sptr[i]; in ParseFtpEprtCommand()
438 if (!isspace(ch)) { in ParseFtpEprtCommand()
439 delim = ch; in ParseFtpEprtCommand()
444 if (ch == '1') /* IPv4 address */ in ParseFtpEprtCommand()
450 if (ch == delim) in ParseFtpEprtCommand()
459 if (isdigit(ch)) { in ParseFtpEprtCommand()
460 octet = ch - '0'; in ParseFtpEprtCommand()
469 if (isdigit(ch)) in ParseFtpEprtCommand()
470 octet = 10 * octet + ch - '0'; in ParseFtpEprtCommand()
471 else if (ch == '.' || state == 10) { in ParseFtpEprtCommand()
478 if (isdigit(ch)) { in ParseFtpEprtCommand()
479 port = ch - '0'; in ParseFtpEprtCommand()
485 if (isdigit(ch)) in ParseFtpEprtCommand()
486 port = 10 * port + ch - '0'; in ParseFtpEprtCommand()
487 else if (ch == delim) in ParseFtpEprtCommand()
506 char ch; in ParseFtp227Reply() local
525 ch = sptr[i]; in ParseFtp227Reply()
528 if (ch == '(') in ParseFtp227Reply()
537 if (isdigit(ch)) { in ParseFtp227Reply()
538 octet = ch - '0'; in ParseFtp227Reply()
547 if (isdigit(ch)) in ParseFtp227Reply()
548 octet = 10 * octet + ch - '0'; in ParseFtp227Reply()
549 else if (ch == ',') { in ParseFtp227Reply()
557 if (isdigit(ch)) in ParseFtp227Reply()
558 octet = 10 * octet + ch - '0'; in ParseFtp227Reply()
559 else if (ch == ',' || (state == 12 && ch == ')')) { in ParseFtp227Reply()
579 char ch, delim; in ParseFtp229Reply() local
597 ch = sptr[i]; in ParseFtp229Reply()
600 if (ch == '(') in ParseFtp229Reply()
604 delim = ch; in ParseFtp229Reply()
609 if (ch == delim) in ParseFtp229Reply()
615 if (isdigit(ch)) { in ParseFtp229Reply()
616 port = ch - '0'; in ParseFtp229Reply()
622 if (isdigit(ch)) in ParseFtp229Reply()
623 port = 10 * port + ch - '0'; in ParseFtp229Reply()
624 else if (ch == delim) in ParseFtp229Reply()
630 if (ch == ')') in ParseFtp229Reply()