Lines Matching refs:rest
475 const char *rest = string; in PR_ParseTimeString() local
482 while (*rest) in PR_ParseTimeString()
490 switch (*rest) in PR_ParseTimeString()
494 (rest[1] == 'p' || rest[1] == 'P') && in PR_ParseTimeString()
495 (rest[2] == 'r' || rest[2] == 'R')) in PR_ParseTimeString()
498 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
499 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
502 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
503 (rest[2] == 'g' || rest[2] == 'G')) in PR_ParseTimeString()
508 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
509 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
514 (rest[1] == 'd' || rest[1] == 'D') && in PR_ParseTimeString()
515 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
518 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
519 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
524 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
525 (rest[2] == 'c' || rest[2] == 'C')) in PR_ParseTimeString()
530 (rest[1] == 'd' || rest[1] == 'D') && in PR_ParseTimeString()
531 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
534 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
535 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
538 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
539 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
544 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
545 (rest[2] == 'b' || rest[2] == 'B')) in PR_ParseTimeString()
548 (rest[1] == 'r' || rest[1] == 'R') && in PR_ParseTimeString()
549 (rest[2] == 'i' || rest[2] == 'I')) in PR_ParseTimeString()
554 (rest[1] == 'm' || rest[1] == 'M') && in PR_ParseTimeString()
555 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
560 (rest[1] == 'a' || rest[1] == 'A') && in PR_ParseTimeString()
561 (rest[2] == 'n' || rest[2] == 'N')) in PR_ParseTimeString()
564 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
565 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
568 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
569 (rest[2] == 'l' || rest[2] == 'L')) in PR_ParseTimeString()
572 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
573 (rest[2] == 'n' || rest[2] == 'N')) in PR_ParseTimeString()
578 (rest[1] == 'a' || rest[1] == 'A') && in PR_ParseTimeString()
579 (rest[2] == 'r' || rest[2] == 'R')) in PR_ParseTimeString()
582 (rest[1] == 'a' || rest[1] == 'A') && in PR_ParseTimeString()
583 (rest[2] == 'y' || rest[2] == 'Y')) in PR_ParseTimeString()
586 (rest[1] == 'd' || rest[1] == 'D') && in PR_ParseTimeString()
587 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
590 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
591 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
594 (rest[1] == 'o' || rest[1] == 'O') && in PR_ParseTimeString()
595 (rest[2] == 'n' || rest[2] == 'N')) in PR_ParseTimeString()
598 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
599 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
604 (rest[1] == 'o' || rest[1] == 'O') && in PR_ParseTimeString()
605 (rest[2] == 'v' || rest[2] == 'V')) in PR_ParseTimeString()
608 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
609 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
614 (rest[1] == 'c' || rest[1] == 'C') && in PR_ParseTimeString()
615 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
620 (rest[1] == 'd' || rest[1] == 'D') && in PR_ParseTimeString()
621 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
624 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
625 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
630 (rest[1] == 'a' || rest[1] == 'A') && in PR_ParseTimeString()
631 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
634 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
635 (rest[2] == 'p' || rest[2] == 'P')) in PR_ParseTimeString()
638 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
639 (rest[2] == 'n' || rest[2] == 'N')) in PR_ParseTimeString()
644 (rest[1] == 'h' || rest[1] == 'H') && in PR_ParseTimeString()
645 (rest[2] == 'u' || rest[2] == 'U')) in PR_ParseTimeString()
648 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
649 (rest[2] == 'e' || rest[2] == 'E')) in PR_ParseTimeString()
654 (rest[1] == 't' || rest[1] == 'T') && in PR_ParseTimeString()
655 !(rest[2] >= 'A' && rest[2] <= 'Z') && in PR_ParseTimeString()
656 !(rest[2] >= 'a' && rest[2] <= 'z')) in PR_ParseTimeString()
662 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
663 (rest[2] == 'd' || rest[2] == 'D')) in PR_ParseTimeString()
674 rest++; in PR_ParseTimeString()
680 rest++; in PR_ParseTimeString()
684 sign = ((*rest == '+') ? 1 : -1); in PR_ParseTimeString()
685 rest++; /* move over sign */ in PR_ParseTimeString()
686 end = rest; in PR_ParseTimeString()
689 if (rest == end) /* no digits here */ in PR_ParseTimeString()
692 if ((end - rest) == 4) in PR_ParseTimeString()
694 zone_offset = (((((rest[0]-'0')*10) + (rest[1]-'0')) * 60) + in PR_ParseTimeString()
695 (((rest[2]-'0')*10) + (rest[3]-'0'))); in PR_ParseTimeString()
696 else if ((end - rest) == 2) in PR_ParseTimeString()
698 zone_offset = (((rest[0]-'0')*10) + (rest[1]-'0')) * 60; in PR_ParseTimeString()
699 else if ((end - rest) == 1) in PR_ParseTimeString()
701 zone_offset = (rest[0]-'0') * 60; in PR_ParseTimeString()
718 const char *end = rest + 1; in PR_ParseTimeString()
730 if ((end - rest) > 2) in PR_ParseTimeString()
733 else if ((end - rest) == 2) in PR_ParseTimeString()
734 tmp_hour = ((rest[0]-'0')*10 + in PR_ParseTimeString()
735 (rest[1]-'0')); in PR_ParseTimeString()
737 tmp_hour = (rest[0]-'0'); in PR_ParseTimeString()
741 rest = ++end; in PR_ParseTimeString()
745 if (end == rest) in PR_ParseTimeString()
748 else if ((end - rest) > 2) in PR_ParseTimeString()
751 else if ((end - rest) == 2) in PR_ParseTimeString()
752 tmp_min = ((rest[0]-'0')*10 + in PR_ParseTimeString()
753 (rest[1]-'0')); in PR_ParseTimeString()
755 tmp_min = (rest[0]-'0'); in PR_ParseTimeString()
758 rest = end; in PR_ParseTimeString()
759 if (*rest == ':') in PR_ParseTimeString()
760 rest++; in PR_ParseTimeString()
761 end = rest; in PR_ParseTimeString()
765 if (end == rest) in PR_ParseTimeString()
768 else if ((end - rest) > 2) in PR_ParseTimeString()
771 else if ((end - rest) == 2) in PR_ParseTimeString()
772 tmp_sec = ((rest[0]-'0')*10 + in PR_ParseTimeString()
773 (rest[1]-'0')); in PR_ParseTimeString()
775 tmp_sec = (rest[0]-'0'); in PR_ParseTimeString()
778 rest = end; in PR_ParseTimeString()
779 if (*rest == '.') in PR_ParseTimeString()
781 rest++; in PR_ParseTimeString()
787 if (end - rest < 6) in PR_ParseTimeString()
791 int ndigits = end - rest; in PR_ParseTimeString()
794 rest = end; in PR_ParseTimeString()
797 if (*rest == 'Z') in PR_ParseTimeString()
800 rest++; in PR_ParseTimeString()
827 rest = end; in PR_ParseTimeString()
843 s = rest; in PR_ParseTimeString()
914 rest = s; in PR_ParseTimeString()
920 rest = s; in PR_ParseTimeString()
943 rest = s; in PR_ParseTimeString()
949 else if ((end - rest) == 5) /* five digits is a year */ in PR_ParseTimeString()
951 ? ((rest[0]-'0')*10000L + in PR_ParseTimeString()
952 (rest[1]-'0')*1000L + in PR_ParseTimeString()
953 (rest[2]-'0')*100L + in PR_ParseTimeString()
954 (rest[3]-'0')*10L + in PR_ParseTimeString()
955 (rest[4]-'0')) in PR_ParseTimeString()
957 else if ((end - rest) == 4) /* four digits is a year */ in PR_ParseTimeString()
959 ? ((rest[0]-'0')*1000L + in PR_ParseTimeString()
960 (rest[1]-'0')*100L + in PR_ParseTimeString()
961 (rest[2]-'0')*10L + in PR_ParseTimeString()
962 (rest[3]-'0')) in PR_ParseTimeString()
964 else if ((end - rest) == 2) /* two digits - date or year */ in PR_ParseTimeString()
966 int n = ((rest[0]-'0')*10 + in PR_ParseTimeString()
967 (rest[1]-'0')); in PR_ParseTimeString()
991 else if ((end - rest) == 1) /* one digit - date */ in PR_ParseTimeString()
992 date = (date < 0 ? (rest[0]-'0') : date); in PR_ParseTimeString()
1003 while (*rest && in PR_ParseTimeString()
1004 *rest != ' ' && *rest != '\t' && in PR_ParseTimeString()
1005 *rest != ',' && *rest != ';' && in PR_ParseTimeString()
1006 *rest != '-' && *rest != '+' && in PR_ParseTimeString()
1007 *rest != '/' && in PR_ParseTimeString()
1008 *rest != '(' && *rest != ')' && *rest != '[' && *rest != ']' && in PR_ParseTimeString()
1009 !(*rest == 'T' && rest[1] >= '0' && rest[1] <= '9') in PR_ParseTimeString()
1011 rest++; in PR_ParseTimeString()
1014 while (*rest == ' ' || *rest == '\t' || in PR_ParseTimeString()
1015 *rest == ',' || *rest == ';' || *rest == '/' || in PR_ParseTimeString()
1016 *rest == '(' || *rest == ')' || *rest == '[' || *rest == ']') in PR_ParseTimeString()
1017 rest++; in PR_ParseTimeString()
1022 if (*rest == '-' && ((rest > string && in PR_ParseTimeString()
1023 isalpha((unsigned char)rest[-1]) && year < 0) || in PR_ParseTimeString()
1024 rest[1] < '0' || rest[1] > '9')) in PR_ParseTimeString()
1026 rest++; in PR_ParseTimeString()
1031 if (*rest == 'T' && rest[1] >= '0' && rest[1] <= '9') in PR_ParseTimeString()
1032 rest++; in PR_ParseTimeString()