Lines Matching refs:rest
544 const char *rest = string; in PR_ParseTimeString() local
551 while (*rest) in PR_ParseTimeString()
559 switch (*rest) in PR_ParseTimeString()
563 (rest[1] == 'p' || rest[1] == 'P') && in PR_ParseTimeString()
564 (rest[2] == 'r' || rest[2] == 'R')) in PR_ParseTimeString()
567 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
568 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
571 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
572 (rest[2] == 'g' || rest[2] == 'G')) in PR_ParseTimeString()
577 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
578 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
583 (rest[1] == 'd' || rest[1] == 'D') && in PR_ParseTimeString()
584 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
587 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
588 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
593 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
594 (rest[2] == 'c' || rest[2] == 'C')) in PR_ParseTimeString()
599 (rest[1] == 'd' || rest[1] == 'D') && in PR_ParseTimeString()
600 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
603 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
604 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
607 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
608 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
613 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
614 (rest[2] == 'b' || rest[2] == 'B')) in PR_ParseTimeString()
617 (rest[1] == 'r' || rest[1] == 'R') && in PR_ParseTimeString()
618 (rest[2] == 'i' || rest[2] == 'I')) in PR_ParseTimeString()
623 (rest[1] == 'm' || rest[1] == 'M') && in PR_ParseTimeString()
624 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
629 (rest[1] == 'a' || rest[1] == 'A') && in PR_ParseTimeString()
630 (rest[2] == 'n' || rest[2] == 'N')) in PR_ParseTimeString()
633 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
634 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
637 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
638 (rest[2] == 'l' || rest[2] == 'L')) in PR_ParseTimeString()
641 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
642 (rest[2] == 'n' || rest[2] == 'N')) in PR_ParseTimeString()
647 (rest[1] == 'a' || rest[1] == 'A') && in PR_ParseTimeString()
648 (rest[2] == 'r' || rest[2] == 'R')) in PR_ParseTimeString()
651 (rest[1] == 'a' || rest[1] == 'A') && in PR_ParseTimeString()
652 (rest[2] == 'y' || rest[2] == 'Y')) in PR_ParseTimeString()
655 (rest[1] == 'd' || rest[1] == 'D') && in PR_ParseTimeString()
656 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
659 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
660 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
663 (rest[1] == 'o' || rest[1] == 'O') && in PR_ParseTimeString()
664 (rest[2] == 'n' || rest[2] == 'N')) in PR_ParseTimeString()
667 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
668 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
673 (rest[1] == 'o' || rest[1] == 'O') && in PR_ParseTimeString()
674 (rest[2] == 'v' || rest[2] == 'V')) in PR_ParseTimeString()
677 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
678 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
683 (rest[1] == 'c' || rest[1] == 'C') && in PR_ParseTimeString()
684 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
689 (rest[1] == 'd' || rest[1] == 'D') && in PR_ParseTimeString()
690 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
693 (rest[1] == 's' || rest[1] == 'S') && in PR_ParseTimeString()
694 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
699 (rest[1] == 'a' || rest[1] == 'A') && in PR_ParseTimeString()
700 (rest[2] == 't' || rest[2] == 'T')) in PR_ParseTimeString()
703 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
704 (rest[2] == 'p' || rest[2] == 'P')) in PR_ParseTimeString()
707 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
708 (rest[2] == 'n' || rest[2] == 'N')) in PR_ParseTimeString()
713 (rest[1] == 'h' || rest[1] == 'H') && in PR_ParseTimeString()
714 (rest[2] == 'u' || rest[2] == 'U')) in PR_ParseTimeString()
717 (rest[1] == 'u' || rest[1] == 'U') && in PR_ParseTimeString()
718 (rest[2] == 'e' || rest[2] == 'E')) in PR_ParseTimeString()
723 (rest[1] == 't' || rest[1] == 'T') && in PR_ParseTimeString()
724 !(rest[2] >= 'A' && rest[2] <= 'Z') && in PR_ParseTimeString()
725 !(rest[2] >= 'a' && rest[2] <= 'z')) in PR_ParseTimeString()
731 (rest[1] == 'e' || rest[1] == 'E') && in PR_ParseTimeString()
732 (rest[2] == 'd' || rest[2] == 'D')) in PR_ParseTimeString()
743 rest++; in PR_ParseTimeString()
749 rest++; in PR_ParseTimeString()
753 sign = ((*rest == '+') ? 1 : -1); in PR_ParseTimeString()
754 rest++; /* move over sign */ in PR_ParseTimeString()
755 end = rest; in PR_ParseTimeString()
758 if (rest == end) /* no digits here */ in PR_ParseTimeString()
761 if ((end - rest) == 4) in PR_ParseTimeString()
763 zone_offset = (((((rest[0]-'0')*10) + (rest[1]-'0')) * 60) + in PR_ParseTimeString()
764 (((rest[2]-'0')*10) + (rest[3]-'0'))); in PR_ParseTimeString()
765 else if ((end - rest) == 2) in PR_ParseTimeString()
767 zone_offset = (((rest[0]-'0')*10) + (rest[1]-'0')) * 60; in PR_ParseTimeString()
768 else if ((end - rest) == 1) in PR_ParseTimeString()
770 zone_offset = (rest[0]-'0') * 60; in PR_ParseTimeString()
787 const char *end = rest + 1; in PR_ParseTimeString()
799 if ((end - rest) > 2) in PR_ParseTimeString()
802 else if ((end - rest) == 2) in PR_ParseTimeString()
803 tmp_hour = ((rest[0]-'0')*10 + in PR_ParseTimeString()
804 (rest[1]-'0')); in PR_ParseTimeString()
806 tmp_hour = (rest[0]-'0'); in PR_ParseTimeString()
810 rest = ++end; in PR_ParseTimeString()
814 if (end == rest) in PR_ParseTimeString()
817 else if ((end - rest) > 2) in PR_ParseTimeString()
820 else if ((end - rest) == 2) in PR_ParseTimeString()
821 tmp_min = ((rest[0]-'0')*10 + in PR_ParseTimeString()
822 (rest[1]-'0')); in PR_ParseTimeString()
824 tmp_min = (rest[0]-'0'); in PR_ParseTimeString()
827 rest = end; in PR_ParseTimeString()
828 if (*rest == ':') in PR_ParseTimeString()
829 rest++; in PR_ParseTimeString()
830 end = rest; in PR_ParseTimeString()
834 if (end == rest) in PR_ParseTimeString()
837 else if ((end - rest) > 2) in PR_ParseTimeString()
840 else if ((end - rest) == 2) in PR_ParseTimeString()
841 tmp_sec = ((rest[0]-'0')*10 + in PR_ParseTimeString()
842 (rest[1]-'0')); in PR_ParseTimeString()
844 tmp_sec = (rest[0]-'0'); in PR_ParseTimeString()
847 rest = end; in PR_ParseTimeString()
848 if (*rest == '.') in PR_ParseTimeString()
850 rest++; in PR_ParseTimeString()
856 if (end - rest < 6) in PR_ParseTimeString()
860 int ndigits = end - rest; in PR_ParseTimeString()
863 rest = end; in PR_ParseTimeString()
866 if (*rest == 'Z') in PR_ParseTimeString()
869 rest++; in PR_ParseTimeString()
896 rest = end; in PR_ParseTimeString()
912 s = rest; in PR_ParseTimeString()
983 rest = s; in PR_ParseTimeString()
989 rest = s; in PR_ParseTimeString()
1012 rest = s; in PR_ParseTimeString()
1018 else if ((end - rest) == 5) /* five digits is a year */ in PR_ParseTimeString()
1020 ? ((rest[0]-'0')*10000L + in PR_ParseTimeString()
1021 (rest[1]-'0')*1000L + in PR_ParseTimeString()
1022 (rest[2]-'0')*100L + in PR_ParseTimeString()
1023 (rest[3]-'0')*10L + in PR_ParseTimeString()
1024 (rest[4]-'0')) in PR_ParseTimeString()
1026 else if ((end - rest) == 4) /* four digits is a year */ in PR_ParseTimeString()
1028 ? ((rest[0]-'0')*1000L + in PR_ParseTimeString()
1029 (rest[1]-'0')*100L + in PR_ParseTimeString()
1030 (rest[2]-'0')*10L + in PR_ParseTimeString()
1031 (rest[3]-'0')) in PR_ParseTimeString()
1033 else if ((end - rest) == 2) /* two digits - date or year */ in PR_ParseTimeString()
1035 int n = ((rest[0]-'0')*10 + in PR_ParseTimeString()
1036 (rest[1]-'0')); in PR_ParseTimeString()
1060 else if ((end - rest) == 1) /* one digit - date */ in PR_ParseTimeString()
1061 date = (date < 0 ? (rest[0]-'0') : date); in PR_ParseTimeString()
1072 while (*rest && in PR_ParseTimeString()
1073 *rest != ' ' && *rest != '\t' && in PR_ParseTimeString()
1074 *rest != ',' && *rest != ';' && in PR_ParseTimeString()
1075 *rest != '-' && *rest != '+' && in PR_ParseTimeString()
1076 *rest != '/' && in PR_ParseTimeString()
1077 *rest != '(' && *rest != ')' && *rest != '[' && *rest != ']' && in PR_ParseTimeString()
1078 !(*rest == 'T' && rest[1] >= '0' && rest[1] <= '9') in PR_ParseTimeString()
1080 rest++; in PR_ParseTimeString()
1083 while (*rest == ' ' || *rest == '\t' || in PR_ParseTimeString()
1084 *rest == ',' || *rest == ';' || *rest == '/' || in PR_ParseTimeString()
1085 *rest == '(' || *rest == ')' || *rest == '[' || *rest == ']') in PR_ParseTimeString()
1086 rest++; in PR_ParseTimeString()
1091 if (*rest == '-' && ((rest > string && in PR_ParseTimeString()
1092 isalpha((unsigned char)rest[-1]) && year < 0) || in PR_ParseTimeString()
1093 rest[1] < '0' || rest[1] > '9')) in PR_ParseTimeString()
1095 rest++; in PR_ParseTimeString()
1100 if (*rest == 'T' && rest[1] >= '0' && rest[1] <= '9') in PR_ParseTimeString()
1101 rest++; in PR_ParseTimeString()