Lines Matching refs:s

569 problematic_chars (char const *s)  in problematic_chars()  argument
571 size_t length = strcspn (s, "\\\n\r"); in problematic_chars()
572 return s[length] != '\0'; in problematic_chars()
587 filename_unescape (char *s, size_t s_len) in filename_unescape() argument
589 char *dst = s; in filename_unescape()
593 switch (s[i]) in filename_unescape()
602 switch (s[i]) in filename_unescape()
624 *dst++ = s[i]; in filename_unescape()
628 if (dst < s + s_len) in filename_unescape()
631 return s; in filename_unescape()
638 valid_digits (unsigned char const *s, size_t len) in valid_digits() argument
646 if (!isbase64 (*s)) in valid_digits()
648 ++s; in valid_digits()
652 if (*s != '=') in valid_digits()
654 ++s; in valid_digits()
663 if (!isxdigit (*s)) in valid_digits()
665 ++s; in valid_digits()
671 return *s == '\0'; in valid_digits()
680 bsd_split_3 (char *s, size_t s_len, in bsd_split_3() argument
689 while (i && s[i] != ')') in bsd_split_3()
692 if (s[i] != ')') in bsd_split_3()
695 *file_name = s; in bsd_split_3()
697 if (escaped_filename && filename_unescape (s, i) == nullptr) in bsd_split_3()
700 s[i++] = '\0'; in bsd_split_3()
702 while (ISWHITE (s[i])) in bsd_split_3()
705 if (s[i] != '=') in bsd_split_3()
710 while (ISWHITE (s[i])) in bsd_split_3()
713 *digest = (unsigned char *) &s[i]; in bsd_split_3()
724 algorithm_from_tag (char *s) in algorithm_from_tag() argument
741 while (i <= max_tag_len && s[i] && ! ISWHITE (s[i]) in algorithm_from_tag()
742 && s[i] != '-' && s[i] != '(') in algorithm_from_tag()
749 char sep = s[i]; in algorithm_from_tag()
750 s[i] = '\0'; in algorithm_from_tag()
751 ptrdiff_t algo = argmatch_exact (s, algorithm_tags); in algorithm_from_tag()
752 s[i] = sep; in algorithm_from_tag()
764 split_3 (char *s, size_t s_len, in split_3() argument
771 while (ISWHITE (s[i])) in split_3()
774 if (s[i] == '\\') in split_3()
785 ptrdiff_t algo_tag = algorithm_from_tag (s + i); in split_3()
798 if (STREQ_LEN (s + i, DIGEST_TYPE_STRING, algo_name_len)) in split_3()
803 char const *algo_name = &s[i - algo_name_len]; in split_3()
804 bool length_specified = s[i] == '-'; in split_3()
805 bool openssl_format = s[i] == '('; /* and no length_specified */ in split_3()
806 s[i++] = '\0'; in split_3()
810 s[--i] = '('; in split_3()
821 if (! (xstrtoumax (s + i, &siend, 0, &length, nullptr) == LONGINT_OK in split_3()
826 i = siend - s; in split_3()
831 if (s[i] == ' ') in split_3()
833 if (s[i] == '(') in split_3()
837 return bsd_split_3 (s + i, s_len - i, in split_3()
847 if (s_len - i < min_digest_line_length + (s[i] == '\\')) in split_3()
850 *digest = (unsigned char *) &s[i]; in split_3()
872 while (s[i] && !ISWHITE (s[i])) in split_3()
879 *d_len = &s[i] - (char *) *digest; in split_3()
880 s[i++] = '\0'; in split_3()
886 if ((s_len - i == 1) || (s[i] != ' ' && s[i] != '*')) in split_3()
901 *binary = (s[i++] == '*'); in split_3()
906 *file_name = &s[i]; in split_3()
909 return filename_unescape (&s[i], s_len - i) != nullptr; in split_3()